adva_cms 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/NOTES +132 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/adva_cms.gemspec +22 -0
- data/app/assets/images/adva_cms/admin/header_bg.png +0 -0
- data/app/assets/images/adva_cms/admin/section_menu_bg.png +0 -0
- data/app/assets/images/adva_cms/admin/tab_action_active.png +0 -0
- data/app/assets/images/adva_cms/admin/tab_main_active.png +0 -0
- data/app/assets/images/adva_cms/admin/tab_sidebar_active.png +0 -0
- data/app/assets/images/adva_cms/admin/tab_top_active.png +0 -0
- data/app/assets/images/adva_cms/asset_selected.png +0 -0
- data/app/assets/images/adva_cms/avatar.gif +0 -0
- data/app/assets/images/adva_cms/filter-bg.png +0 -0
- data/app/assets/images/adva_cms/icons/accept.png +0 -0
- data/app/assets/images/adva_cms/icons/add.png +0 -0
- data/app/assets/images/adva_cms/icons/arrow_cross.png +0 -0
- data/app/assets/images/adva_cms/icons/arrow_cross_2.png +0 -0
- data/app/assets/images/adva_cms/icons/arrow_cross_3.png +0 -0
- data/app/assets/images/adva_cms/icons/arrow_up_down.png +0 -0
- data/app/assets/images/adva_cms/icons/assets/audio.png +0 -0
- data/app/assets/images/adva_cms/icons/assets/doc.png +0 -0
- data/app/assets/images/adva_cms/icons/assets/pdf.png +0 -0
- data/app/assets/images/adva_cms/icons/assets/video.png +0 -0
- data/app/assets/images/adva_cms/icons/attach.png +0 -0
- data/app/assets/images/adva_cms/icons/bin.png +0 -0
- data/app/assets/images/adva_cms/icons/bin_closed.png +0 -0
- data/app/assets/images/adva_cms/icons/bin_empty.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_black.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_delete.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_error.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_go.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_red.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_white.png +0 -0
- data/app/assets/images/adva_cms/icons/bullet_yellow.png +0 -0
- data/app/assets/images/adva_cms/icons/cancel.png +0 -0
- data/app/assets/images/adva_cms/icons/comment.gif +0 -0
- data/app/assets/images/adva_cms/icons/comment.png +0 -0
- data/app/assets/images/adva_cms/icons/comment_add.png +0 -0
- data/app/assets/images/adva_cms/icons/comment_blue.gif +0 -0
- data/app/assets/images/adva_cms/icons/comment_delete.png +0 -0
- data/app/assets/images/adva_cms/icons/comment_edit.png +0 -0
- data/app/assets/images/adva_cms/icons/comment_yellow.gif +0 -0
- data/app/assets/images/adva_cms/icons/cross.png +0 -0
- data/app/assets/images/adva_cms/icons/delete.png +0 -0
- data/app/assets/images/adva_cms/icons/eye.png +0 -0
- data/app/assets/images/adva_cms/icons/favorites.png +0 -0
- data/app/assets/images/adva_cms/icons/help.png +0 -0
- data/app/assets/images/adva_cms/icons/hourglass.png +0 -0
- data/app/assets/images/adva_cms/icons/icon_attachment.gif +0 -0
- data/app/assets/images/adva_cms/icons/icon_padlock.gif +0 -0
- data/app/assets/images/adva_cms/icons/link.png +0 -0
- data/app/assets/images/adva_cms/icons/lock.png +0 -0
- data/app/assets/images/adva_cms/icons/magnifier.png +0 -0
- data/app/assets/images/adva_cms/icons/minus.gif +0 -0
- data/app/assets/images/adva_cms/icons/page_add.png +0 -0
- data/app/assets/images/adva_cms/icons/page_delete.png +0 -0
- data/app/assets/images/adva_cms/icons/page_edit.png +0 -0
- data/app/assets/images/adva_cms/icons/page_favorites.png +0 -0
- data/app/assets/images/adva_cms/icons/page_go.png +0 -0
- data/app/assets/images/adva_cms/icons/page_green.png +0 -0
- data/app/assets/images/adva_cms/icons/page_red.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_add.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_delete.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_edit.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_go.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_link.png +0 -0
- data/app/assets/images/adva_cms/icons/page_white_magnify.png +0 -0
- data/app/assets/images/adva_cms/icons/pencil.png +0 -0
- data/app/assets/images/adva_cms/icons/star.png +0 -0
- data/app/assets/images/adva_cms/icons/stop.png +0 -0
- data/app/assets/images/adva_cms/icons/tag_green.png +0 -0
- data/app/assets/images/adva_cms/icons/tick.png +0 -0
- data/app/assets/images/adva_cms/icons/zoom.png +0 -0
- data/app/assets/images/adva_cms/indicator.gif +0 -0
- data/app/assets/images/adva_cms/preview.png +0 -0
- data/app/assets/images/adva_cms/rails.png +0 -0
- data/app/assets/images/adva_cms/sortable_tree/drag.png +0 -0
- data/app/assets/images/adva_cms/theme_selected.png +0 -0
- data/app/assets/javascripts/admin.js +1 -0
- data/app/assets/javascripts/adva_cms/admin/jquery.admin.js +23 -0
- data/app/assets/javascripts/adva_cms/admin/jquery.article.js +22 -0
- data/app/assets/javascripts/adva_cms/admin/jquery.cached_pages.js +14 -0
- data/app/assets/javascripts/adva_cms/admin/jquery.table_tree.js +7 -0
- data/app/assets/javascripts/adva_cms/application.js +14 -0
- data/app/assets/javascripts/adva_cms/base.js +4 -0
- data/app/assets/javascripts/adva_cms/cookie.js +49 -0
- data/app/assets/javascripts/adva_cms/jquery.common.js +41 -0
- data/app/assets/javascripts/adva_cms/jquery.dates.js +51 -0
- data/app/assets/javascripts/adva_cms/jquery.flash.js +57 -0
- data/app/assets/javascripts/adva_cms/jquery.roles.js +25 -0
- data/app/assets/javascripts/adva_cms/jquery/jquery-lowpro.js +224 -0
- data/app/assets/javascripts/adva_cms/jquery/jquery.qtip.js +2085 -0
- data/app/assets/javascripts/adva_cms/jquery/jquery.table_tree.js +307 -0
- data/app/assets/javascripts/adva_cms/jquery/jquery.tablednd_0_5.js +386 -0
- data/app/assets/javascripts/adva_cms/json.js +139 -0
- data/app/assets/stylesheets/admin.css +1 -0
- data/app/assets/stylesheets/adva_cms/admin.css +16 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/common.css +76 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/forms.css +121 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/header.css +125 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/layout.css +103 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/lists.css +153 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/sidebar.css +65 -0
- data/app/assets/stylesheets/adva_cms/admin/alternate/top.css +123 -0
- data/app/assets/stylesheets/adva_cms/admin/common.css +76 -0
- data/app/assets/stylesheets/adva_cms/admin/content.css +11 -0
- data/app/assets/stylesheets/adva_cms/admin/forms.css +116 -0
- data/app/assets/stylesheets/adva_cms/admin/header.css +114 -0
- data/app/assets/stylesheets/adva_cms/admin/helptip.css +35 -0
- data/app/assets/stylesheets/adva_cms/admin/layout.css +56 -0
- data/app/assets/stylesheets/adva_cms/admin/lists.css +152 -0
- data/app/assets/stylesheets/adva_cms/admin/projection.css +118 -0
- data/app/assets/stylesheets/adva_cms/admin/reset.css +25 -0
- data/app/assets/stylesheets/adva_cms/admin/screen/top.css +8 -0
- data/app/assets/stylesheets/adva_cms/admin/sidebar.css +67 -0
- data/app/assets/stylesheets/adva_cms/admin/themes.css +49 -0
- data/app/assets/stylesheets/adva_cms/admin/top.css +83 -0
- data/app/assets/stylesheets/adva_cms/admin/users.css +40 -0
- data/app/assets/stylesheets/adva_cms/common.css +49 -0
- data/app/assets/stylesheets/adva_cms/default.css +201 -0
- data/app/assets/stylesheets/adva_cms/forms.css +60 -0
- data/app/assets/stylesheets/adva_cms/jquery/alternate/jquery.tooltip.css +13 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-icons_888888_256x240.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/stylesheets/adva_cms/jquery/jquery-ui.css +406 -0
- data/app/assets/stylesheets/adva_cms/jquery/jquery.tooltip.css +10 -0
- data/app/assets/stylesheets/adva_cms/layout/login.css +8 -0
- data/app/assets/stylesheets/adva_cms/layout/simple.css +8 -0
- data/app/assets/stylesheets/adva_cms/menu.css +129 -0
- data/app/assets/stylesheets/adva_cms/reset.css +25 -0
- data/app/controllers/admin/base_controller.rb +101 -0
- data/app/controllers/admin/categories_controller.rb +3 -0
- data/app/controllers/admin/install_controller.rb +61 -0
- data/app/controllers/admin/page/articles_controller.rb +150 -0
- data/app/controllers/admin/page/categories_controller.rb +62 -0
- data/app/controllers/admin/page/contents_controller.rb +52 -0
- data/app/controllers/admin/page/links_controller.rb +69 -0
- data/app/controllers/admin/pages_controller.rb +2 -0
- data/app/controllers/admin/plugins_controller.rb +40 -0
- data/app/controllers/admin/sections_controller.rb +91 -0
- data/app/controllers/admin/sites_controller.rb +99 -0
- data/app/controllers/articles_controller.rb +81 -0
- data/app/controllers/base_controller.rb +82 -0
- data/app/helpers/admin/base_helper.rb +106 -0
- data/app/helpers/base_helper.rb +56 -0
- data/app/helpers/content_helper.rb +90 -0
- data/app/helpers/resource_helper.rb +127 -0
- data/app/models/article.rb +40 -0
- data/app/models/categorization.rb +4 -0
- data/app/models/category.rb +60 -0
- data/app/models/content.rb +155 -0
- data/app/models/event.rb +34 -0
- data/app/models/link.rb +4 -0
- data/app/models/page.rb +36 -0
- data/app/models/section.rb +126 -0
- data/app/models/site.rb +104 -0
- data/app/views/admin/cached_pages/_filter.html.erb +8 -0
- data/app/views/admin/cached_pages/destroy.js.erb +18 -0
- data/app/views/admin/cached_pages/index.html.erb +26 -0
- data/app/views/admin/install/confirmation.html.erb +10 -0
- data/app/views/admin/install/index.html.erb +38 -0
- data/app/views/admin/page/articles/_form.html.erb +40 -0
- data/app/views/admin/page/articles/_options.html.erb +20 -0
- data/app/views/admin/page/articles/edit.html.erb +15 -0
- data/app/views/admin/page/articles/new.html.erb +12 -0
- data/app/views/admin/page/categories/edit.html.erb +22 -0
- data/app/views/admin/page/categories/index.html.erb +23 -0
- data/app/views/admin/page/categories/new.html.erb +19 -0
- data/app/views/admin/page/contents/index.html.erb +40 -0
- data/app/views/admin/page/links/_form.html.erb +26 -0
- data/app/views/admin/page/links/_options.html.erb +23 -0
- data/app/views/admin/page/links/edit.html.erb +12 -0
- data/app/views/admin/page/links/new.html.erb +12 -0
- data/app/views/admin/plugins/_form.html.erb +11 -0
- data/app/views/admin/plugins/index.html.erb +16 -0
- data/app/views/admin/plugins/show.html.erb +43 -0
- data/app/views/admin/sections/_form.html.haml +20 -0
- data/app/views/admin/sections/edit.html.haml +6 -0
- data/app/views/admin/sections/index.html.erb +27 -0
- data/app/views/admin/sections/new.html.erb +29 -0
- data/app/views/admin/sections/settings/_page.html.haml +10 -0
- data/app/views/admin/shared/_header.html.erb +18 -0
- data/app/views/admin/shared/_language_select.html.erb +6 -0
- data/app/views/admin/shared/_section.html.erb +8 -0
- data/app/views/admin/shared/_section_summary.html.erb +23 -0
- data/app/views/admin/shared/_section_tree.html.erb +23 -0
- data/app/views/admin/sites/_email_notifications.html.erb +9 -0
- data/app/views/admin/sites/_form.html.erb +15 -0
- data/app/views/admin/sites/_recent_users.html.erb +11 -0
- data/app/views/admin/sites/_sections.html.erb +10 -0
- data/app/views/admin/sites/_unapproved_comments.html.erb +10 -0
- data/app/views/admin/sites/edit.html.erb +4 -0
- data/app/views/admin/sites/index.html.erb +21 -0
- data/app/views/admin/sites/multi_sites_disabled.html.erb +11 -0
- data/app/views/admin/sites/new.html.erb +21 -0
- data/app/views/admin/sites/show.html.erb +16 -0
- data/app/views/categories/_checkboxes.html.erb +12 -0
- data/app/views/layouts/admin.html.haml +50 -0
- data/app/views/layouts/default.html.erb +38 -0
- data/app/views/layouts/simple.html.erb +22 -0
- data/app/views/pages/articles/index.html.erb +10 -0
- data/app/views/pages/articles/show.html.erb +17 -0
- data/app/views/shared/_flash.html.erb +3 -0
- data/app/views/shared/_footer.html.erb +4 -0
- data/app/views/shared/_menu.html.erb +10 -0
- data/app/views/shared/_sidebar.html.erb +19 -0
- data/app/views/shared/messages/insufficient_permissions.html.erb +4 -0
- data/config/environment.rb +21 -0
- data/config/initializers/has_options.rb +2 -0
- data/config/initializers/has_permalink.rb +27 -0
- data/config/initializers/mailer.rb +12 -0
- data/config/initializers/menus.rb +184 -0
- data/config/initializers/roles.rb +91 -0
- data/config/initializers/settings.rb +26 -0
- data/config/initializers/site.rb +5 -0
- data/config/initializers/translations_are_a_pain.rb +9 -0
- data/config/locales/en.yml +1295 -0
- data/config/routes.rb +47 -0
- data/db/migrate/20080401000001_create_sites_table.rb +28 -0
- data/db/migrate/20080401000002_create_sections_table.rb +25 -0
- data/db/migrate/20080401000003_create_contents_table.rb +35 -0
- data/db/migrate/20080401000004_create_categories_table.rb +17 -0
- data/db/migrate/20080401000005_create_category_assignments.rb +12 -0
- data/db/migrate/20080401000006_create_taggable_tables.rb +26 -0
- data/db/migrate/20080710000000_create_plugin_configs.rb +13 -0
- data/db/migrate/20080715131051_plugin_owner_column.rb +13 -0
- data/db/migrate/20081208161500_add_content_type_to_join_tables.rb +10 -0
- data/db/migrate/20090216114034_rename_category_assignment_to_categorization.rb +13 -0
- data/db/migrate/20090305123429_move_sections_to_pages.rb +9 -0
- data/db/migrate/20090519132700_add_published_at_to_sections.rb +10 -0
- data/db/migrate/20090702085459_create_section_translations.rb +9 -0
- data/db/migrate/20090702200226_create_category_translations.rb +9 -0
- data/db/migrate/20090707171100_upgrade_paperclip_paths.rb +31 -0
- data/db/migrate/20090709111934_add_email_notification_to_site.rb +12 -0
- data/db/migrate/20091026000906_add_nesting_to_articles.rb +26 -0
- data/db/migrate/20140721000000_add_title_to_contents.rb +7 -0
- data/lib/adva_cms.rb +50 -0
- data/lib/adva_cms/version.rb +3 -0
- data/lib/core_ext.rb +7 -0
- data/lib/extensible_forms.rb +283 -0
- data/lib/has_options.rb +46 -0
- data/lib/html_diff.rb +48 -0
- data/lib/rails_ext.rb +15 -0
- data/lib/rails_ext/action_controller/cacheable_flash.rb +30 -0
- data/lib/rails_ext/action_controller/content_for_assignments.rb +105 -0
- data/lib/rails_ext/action_controller/default_params.rb +19 -0
- data/lib/rails_ext/action_controller/event_helper.rb +18 -0
- data/lib/rails_ext/action_controller/page_caching.rb +23 -0
- data/lib/rails_ext/action_controller/render_with_error_proc.rb +46 -0
- data/lib/rails_ext/action_controller/responds_to_parent.rb +46 -0
- data/lib/rails_ext/action_controller/url_for_returning.rb +12 -0
- data/lib/rails_ext/active_record/exists.rb +5 -0
- data/lib/rails_ext/active_record/sti_instantiation.rb +35 -0
- data/lib/rails_ext/active_record/sticky_changes.rb +30 -0
- data/lib/rails_ext/railties/plugin.rb +58 -0
- data/lib/rails_ext/railties/plugin_configuration.rb +72 -0
- data/lib/rails_ext/railties/plugin_initializers.rb +25 -0
- data/lib/registry.rb +49 -0
- data/lib/tasks/adva_cms.rake +178 -0
- data/lib/tasks/translation.rake +69 -0
- data/lib/time_hacks.rb +57 -0
- data/lib/webrat_patch.rb +11 -0
- data/locale/rails/fr.yml +123 -0
- data/test/NOTES +56 -0
- data/test/contexts.rb +365 -0
- data/test/fixtures.rb +190 -0
- data/test/fixtures/templates/alternative_templates/index.html.erb +1 -0
- data/test/fixtures/templates/context_templates_test/index.html.erb +1 -0
- data/test/fixtures/templates/context_templates_test/show.html.erb +0 -0
- data/test/fixtures/templates/layouts/alternative.html.erb +0 -0
- data/test/fixtures/templates/layouts/default.html.erb +0 -0
- data/test/fixtures/templates/menu/shared/_menu.html.erb +8 -0
- data/test/functional/admin/articles_controller_test.rb +329 -0
- data/test/functional/admin/base_controller_test.rb +68 -0
- data/test/functional/admin/cached_pages_controller_test.rb +66 -0
- data/test/functional/admin/categories_controller_test.rb +164 -0
- data/test/functional/admin/cells_controller_spec.rb +32 -0
- data/test/functional/admin/install_controller_test.rb +89 -0
- data/test/functional/admin/plugins_controller_test.rb +93 -0
- data/test/functional/admin/sections_controller_test.rb +201 -0
- data/test/functional/admin/sites_controller_test.rb +240 -0
- data/test/functional/asset_tag_expansions_test.rb +82 -0
- data/test/functional/base_controller_test.rb +73 -0
- data/test/functional/page_articles_controller_test.rb +168 -0
- data/test/functional/page_articles_routes_test.rb +73 -0
- data/test/integration/admin/cached_pages_test.rb +43 -0
- data/test/integration/admin/categories_test.rb +66 -0
- data/test/integration/admin/custom_templates_test.rb +42 -0
- data/test/integration/admin/filtering_articles_test.rb +32 -0
- data/test/integration/admin/plugins.rb +32 -0
- data/test/integration/admin/section_article_test.rb +150 -0
- data/test/integration/admin/section_test.rb +88 -0
- data/test/integration/admin/sites_test.rb +48 -0
- data/test/integration/installation_test.rb +109 -0
- data/test/integration/page_article_comment_test.rb +51 -0
- data/test/integration/page_article_test.rb +87 -0
- data/test/integration/section_index_test.rb +37 -0
- data/test/javascript/assets/jquery-lowpro.js +224 -0
- data/test/javascript/assets/jquery-ui.js +298 -0
- data/test/javascript/assets/jquery.js +4376 -0
- data/test/javascript/assets/testrunner.js +815 -0
- data/test/javascript/assets/testsuite.css +120 -0
- data/test/javascript/lib/jstest.rb +588 -0
- data/test/javascript/templates/test_case.erb +33 -0
- data/test/plugins/adva_context_templates/context_templates_test.rb +138 -0
- data/test/plugins/adva_post_ping/controller/integration_test.rb +78 -0
- data/test/plugins/adva_post_ping/post_ping_test.rb +94 -0
- data/test/plugins/adva_url_history/article_test.rb +94 -0
- data/test/plugins/adva_url_history/init_url_history.rb +18 -0
- data/test/plugins/adva_url_history/section_test.rb +49 -0
- data/test/test_helper.rb +75 -0
- data/test/test_helper/clear_directories.rb +16 -0
- data/test/test_helper/ensure_single_site_mode.rb +10 -0
- data/test/test_helper/extensions/cacheable_flash.rb +14 -0
- data/test/test_helper/extensions/cronjob.rb +11 -0
- data/test/test_helper/extensions/even_test_log.rb +21 -0
- data/test/test_helper/extensions/integration_test.rb +78 -0
- data/test/test_helper/extensions/matchy.rb +365 -0
- data/test/test_helper/extensions/matchy_adva_cms.rb +441 -0
- data/test/test_helper/extensions/rails_patch.rb +40 -0
- data/test/test_helper/extensions/rr.rb +7 -0
- data/test/test_helper/extensions/test_unit.rb +35 -0
- data/test/test_helper/extensions/with_sugar.rb +166 -0
- data/test/test_helper/parse_options.rb +18 -0
- data/test/test_helper/setup_db_transaction.rb +15 -0
- data/test/test_helper/setup_webrat.rb +9 -0
- data/test/test_helper/test_server/init.rb +15 -0
- data/test/unit/helpers/admin/base_helper_test.rb +139 -0
- data/test/unit/helpers/base_helper_spec.rb +54 -0
- data/test/unit/helpers/base_helper_test.rb +165 -0
- data/test/unit/helpers/content_helper_test.rb +127 -0
- data/test/unit/helpers/resource_helper_test.rb +180 -0
- data/test/unit/i18n_test.rb +22 -0
- data/test/unit/lib/cells_ext_spec.rb +96 -0
- data/test/unit/lib/extensible_forms_test.rb +362 -0
- data/test/unit/lib/menu_test.rb +119 -0
- data/test/unit/lib/rails_ext/content_for_assignments_test.rb +75 -0
- data/test/unit/lib/rails_ext/plugin_configuration_test.rb +40 -0
- data/test/unit/lib/rails_ext/sticky_changes_test.rb +33 -0
- data/test/unit/lib/registry_test.rb +91 -0
- data/test/unit/lib/routing_filter/routing_filter_categories_spec.rb +63 -0
- data/test/unit/lib/routing_filter/routing_filter_categories_test.rb +159 -0
- data/test/unit/lib/routing_filter/routing_filter_locale_spec.rb +73 -0
- data/test/unit/lib/routing_filter/routing_filter_root_blog_archive_spec.rb +40 -0
- data/test/unit/lib/routing_filter/routing_filter_root_section_articles_spec.rb +48 -0
- data/test/unit/lib/routing_filter/routing_filter_root_wikipages_spec.rb +40 -0
- data/test/unit/lib/routing_filter/routing_filter_sections_spec.rb +143 -0
- data/test/unit/lib/routing_filter/routing_filter_sections_test.rb +32 -0
- data/test/unit/lib/routing_filter/routing_filter_sets_test.rb +86 -0
- data/test/unit/models/article_test.rb +191 -0
- data/test/unit/models/category_test.rb +68 -0
- data/test/unit/models/content_test.rb +409 -0
- data/test/unit/models/counter_test.rb +43 -0
- data/test/unit/models/event_test.rb +41 -0
- data/test/unit/models/nested_categories_test.rb +34 -0
- data/test/unit/models/page_test.rb +63 -0
- data/test/unit/models/section_test.rb +315 -0
- data/test/unit/models/site_test.rb +199 -0
- data/test/unit/observers/activities_article_observer_test.rb +42 -0
- data/vendor/gems/belongs_to_cacheable/.gitignore +17 -0
- data/vendor/gems/belongs_to_cacheable/Gemfile +4 -0
- data/vendor/gems/belongs_to_cacheable/LICENSE +22 -0
- data/vendor/gems/belongs_to_cacheable/README.md +29 -0
- data/vendor/gems/belongs_to_cacheable/Rakefile +2 -0
- data/vendor/gems/belongs_to_cacheable/belongs_to_cacheable.gemspec +22 -0
- data/vendor/gems/belongs_to_cacheable/init.rb +1 -0
- data/vendor/gems/belongs_to_cacheable/lib/active_record/belongs_to_cacheable.rb +77 -0
- data/vendor/gems/belongs_to_cacheable/lib/belongs_to_cacheable.rb +3 -0
- data/vendor/gems/belongs_to_cacheable/lib/belongs_to_cacheable/version.rb +3 -0
- data/vendor/gems/belongs_to_cacheable/spec/belongs_to_cacheable_spec.rb +52 -0
- data/vendor/gems/belongs_to_cacheable/spec/spec_helper.rb +50 -0
- data/vendor/gems/filtered_column/.gitignore +17 -0
- data/vendor/gems/filtered_column/Gemfile +4 -0
- data/vendor/gems/filtered_column/LICENSE +22 -0
- data/vendor/gems/filtered_column/README +4 -0
- data/vendor/gems/filtered_column/README.md +29 -0
- data/vendor/gems/filtered_column/Rakefile +23 -0
- data/vendor/gems/filtered_column/filtered_column.gemspec +17 -0
- data/vendor/gems/filtered_column/lib/filtered_column.rb +17 -0
- data/vendor/gems/filtered_column/lib/filtered_column/filters/base.rb +28 -0
- data/vendor/gems/filtered_column/lib/filtered_column/filters/smartypants_filter.rb +14 -0
- data/vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb +13 -0
- data/vendor/gems/filtered_column/lib/filtered_column/macros/base.rb +25 -0
- data/vendor/gems/filtered_column/lib/filtered_column/mixin.rb +46 -0
- data/vendor/gems/filtered_column/lib/filtered_column/processor.rb +52 -0
- data/vendor/gems/filtered_column/lib/filtered_column/version.rb +3 -0
- data/vendor/gems/filtered_column/tasks/filtered_column_tasks.rake +4 -0
- data/vendor/gems/filtered_column/test/abstract_unit.rb +73 -0
- data/vendor/gems/filtered_column/test/filtered_column_test.rb +53 -0
- data/vendor/gems/filtered_column/test/macro_filter_test.rb +23 -0
- data/vendor/gems/has_counter/.gitignore +17 -0
- data/vendor/gems/has_counter/Gemfile +4 -0
- data/vendor/gems/has_counter/LICENSE +22 -0
- data/vendor/gems/has_counter/MIT-LICENSE +20 -0
- data/vendor/gems/has_counter/README.markdown +64 -0
- data/vendor/gems/has_counter/README.md +29 -0
- data/vendor/gems/has_counter/Rakefile +2 -0
- data/vendor/gems/has_counter/db/migrate/20080601194338_create_counters_table.rb.rb +13 -0
- data/vendor/gems/has_counter/has_counter.gemspec +17 -0
- data/vendor/gems/has_counter/lib/active_record/has_counter.rb +64 -0
- data/vendor/gems/has_counter/lib/counter.rb +23 -0
- data/vendor/gems/has_counter/lib/has_counter.rb +4 -0
- data/vendor/gems/has_counter/lib/has_counter/version.rb +3 -0
- data/vendor/gems/has_counter/spec/has_counter.spec.log +0 -0
- data/vendor/gems/has_counter/spec/has_counter.sqlite3.db +0 -0
- data/vendor/gems/has_counter/spec/has_counter_spec.rb +55 -0
- data/vendor/gems/has_counter/spec/spec_helper.rb +117 -0
- data/vendor/gems/has_filter/.gitignore +17 -0
- data/vendor/gems/has_filter/Gemfile +4 -0
- data/vendor/gems/has_filter/LICENSE +22 -0
- data/vendor/gems/has_filter/README.md +29 -0
- data/vendor/gems/has_filter/Rakefile +2 -0
- data/vendor/gems/has_filter/app/assets/images/has_filter/filter_add.png +0 -0
- data/vendor/gems/has_filter/app/assets/images/has_filter/filter_button_left.png +0 -0
- data/vendor/gems/has_filter/app/assets/images/has_filter/filter_button_right.png +0 -0
- data/vendor/gems/has_filter/app/assets/images/has_filter/filter_remove.png +0 -0
- data/vendor/gems/has_filter/app/assets/javascripts/has_filter/filter.js +35 -0
- data/vendor/gems/has_filter/app/assets/javascripts/has_filter/jquery.filter.js +23 -0
- data/vendor/gems/has_filter/app/assets/stylesheets/has_filter/alternate/filter.css +102 -0
- data/vendor/gems/has_filter/app/assets/stylesheets/has_filter/filter.css +100 -0
- data/vendor/gems/has_filter/app/helpers/filter_helper.rb +3 -0
- data/vendor/gems/has_filter/has_filter.gemspec +17 -0
- data/vendor/gems/has_filter/init.rb +3 -0
- data/vendor/gems/has_filter/lib/has_filter.rb +22 -0
- data/vendor/gems/has_filter/lib/has_filter/active_record/act_macro.rb +102 -0
- data/vendor/gems/has_filter/lib/has_filter/filter.rb +17 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/base.rb +67 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/categorized.rb +24 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/chain.rb +45 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/set.rb +80 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/state.rb +25 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/tagged.rb +22 -0
- data/vendor/gems/has_filter/lib/has_filter/filter/text.rb +55 -0
- data/vendor/gems/has_filter/lib/has_filter/version.rb +3 -0
- data/vendor/gems/has_filter/test/db/setup.rb +45 -0
- data/vendor/gems/has_filter/test/db/test.sqlite3.db +0 -0
- data/vendor/gems/has_filter/test/fixtures.rb +15 -0
- data/vendor/gems/has_filter/test/has_filter/filter_chain_test.rb +41 -0
- data/vendor/gems/has_filter/test/has_filter/filter_scopes_test.rb +102 -0
- data/vendor/gems/has_filter/test/has_filter/filter_tags_test.rb +113 -0
- data/vendor/gems/has_filter/test/has_filter/integration.rb +15 -0
- data/vendor/gems/has_filter/test/has_filter/scopes_test.rb +48 -0
- data/vendor/gems/has_filter/test/log/test.log +34346 -0
- data/vendor/gems/has_filter/test/models.rb +23 -0
- data/vendor/gems/has_filter/test/templates/has_filter/test/index.html.erb +5 -0
- data/vendor/gems/has_filter/test/test_helper.rb +66 -0
- data/vendor/gems/simple_taggable/.gitignore +17 -0
- data/vendor/gems/simple_taggable/Gemfile +4 -0
- data/vendor/gems/simple_taggable/LICENSE +22 -0
- data/vendor/gems/simple_taggable/README +24 -0
- data/vendor/gems/simple_taggable/README.md +29 -0
- data/vendor/gems/simple_taggable/Rakefile +2 -0
- data/vendor/gems/simple_taggable/lib/simple_taggable.rb +153 -0
- data/vendor/gems/simple_taggable/lib/simple_taggable/version.rb +3 -0
- data/vendor/gems/simple_taggable/lib/tag.rb +31 -0
- data/vendor/gems/simple_taggable/lib/tag_list.rb +90 -0
- data/vendor/gems/simple_taggable/lib/tagging.rb +8 -0
- data/vendor/gems/simple_taggable/simple_taggable.gemspec +17 -0
- data/vendor/gems/simple_taggable/test/db/schema.rb +41 -0
- data/vendor/gems/simple_taggable/test/db/simple_taggable.sqlite3.db +0 -0
- data/vendor/gems/simple_taggable/test/fixtures/magazine.rb +3 -0
- data/vendor/gems/simple_taggable/test/fixtures/magazines.yml +2 -0
- data/vendor/gems/simple_taggable/test/fixtures/photo.rb +8 -0
- data/vendor/gems/simple_taggable/test/fixtures/photos.yml +19 -0
- data/vendor/gems/simple_taggable/test/fixtures/post.rb +5 -0
- data/vendor/gems/simple_taggable/test/fixtures/posts.yml +27 -0
- data/vendor/gems/simple_taggable/test/fixtures/subscription.rb +4 -0
- data/vendor/gems/simple_taggable/test/fixtures/subscriptions.yml +3 -0
- data/vendor/gems/simple_taggable/test/fixtures/taggings.yml +112 -0
- data/vendor/gems/simple_taggable/test/fixtures/tags.yml +14 -0
- data/vendor/gems/simple_taggable/test/fixtures/user.rb +6 -0
- data/vendor/gems/simple_taggable/test/fixtures/users.yml +5 -0
- data/vendor/gems/simple_taggable/test/log/simple_taggable.log +1614 -0
- data/vendor/gems/simple_taggable/test/simple_taggable_test.rb +226 -0
- data/vendor/gems/simple_taggable/test/tag_list_test.rb +105 -0
- data/vendor/gems/simple_taggable/test/test_helper.rb +80 -0
- data/vendor/gems/table_builder/.gitignore +17 -0
- data/vendor/gems/table_builder/Gemfile +4 -0
- data/vendor/gems/table_builder/LICENSE +22 -0
- data/vendor/gems/table_builder/README.md +29 -0
- data/vendor/gems/table_builder/Rakefile +2 -0
- data/vendor/gems/table_builder/lib/table_builder.rb +27 -0
- data/vendor/gems/table_builder/lib/table_builder/body.rb +28 -0
- data/vendor/gems/table_builder/lib/table_builder/cell.rb +21 -0
- data/vendor/gems/table_builder/lib/table_builder/column.rb +26 -0
- data/vendor/gems/table_builder/lib/table_builder/foot.rb +6 -0
- data/vendor/gems/table_builder/lib/table_builder/head.rb +16 -0
- data/vendor/gems/table_builder/lib/table_builder/row.rb +40 -0
- data/vendor/gems/table_builder/lib/table_builder/rows.rb +26 -0
- data/vendor/gems/table_builder/lib/table_builder/table.rb +75 -0
- data/vendor/gems/table_builder/lib/table_builder/tag.rb +58 -0
- data/vendor/gems/table_builder/lib/table_builder/version.rb +3 -0
- data/vendor/gems/table_builder/table_builder.gemspec +17 -0
- data/vendor/gems/table_builder/test/fixtures/templates/table_all.html.erb +20 -0
- data/vendor/gems/table_builder/test/fixtures/templates/table_auto_body.html.erb +3 -0
- data/vendor/gems/table_builder/test/fixtures/templates/table_auto_columns.html.erb +1 -0
- data/vendor/gems/table_builder/test/fixtures/templates/table_simple.html.erb +7 -0
- data/vendor/gems/table_builder/test/table_builder/table_test.rb +230 -0
- data/vendor/gems/table_builder/test/test_helper.rb +49 -0
- data/vendor/gems/tags/.gitignore +17 -0
- data/vendor/gems/tags/Gemfile +4 -0
- data/vendor/gems/tags/LICENSE +22 -0
- data/vendor/gems/tags/README.md +29 -0
- data/vendor/gems/tags/Rakefile +2 -0
- data/vendor/gems/tags/lib/breadcrumbs.rb +13 -0
- data/vendor/gems/tags/lib/menu.rb +179 -0
- data/vendor/gems/tags/lib/menu/builder.rb +74 -0
- data/vendor/gems/tags/lib/tags.rb +7 -0
- data/vendor/gems/tags/lib/tags/tag.rb +125 -0
- data/vendor/gems/tags/lib/tags/version.rb +3 -0
- data/vendor/gems/tags/tags.gemspec +17 -0
- data/vendor/gems/tags/test/tags/menu_test.rb +173 -0
- data/vendor/gems/tags/test/tags/tag_test.rb +13 -0
- data/vendor/gems/tags/test/test_helper.rb +18 -0
- data/vendor/gems/xss_terminate/.gitignore +17 -0
- data/vendor/gems/xss_terminate/Gemfile +4 -0
- data/vendor/gems/xss_terminate/LICENSE +22 -0
- data/vendor/gems/xss_terminate/MIT-LICENSE +20 -0
- data/vendor/gems/xss_terminate/README +94 -0
- data/vendor/gems/xss_terminate/README.md +29 -0
- data/vendor/gems/xss_terminate/Rakefile +23 -0
- data/vendor/gems/xss_terminate/lib/html5lib_sanitize.rb +2453 -0
- data/vendor/gems/xss_terminate/lib/rails_sanitize.rb +8 -0
- data/vendor/gems/xss_terminate/lib/xss_terminate.rb +141 -0
- data/vendor/gems/xss_terminate/lib/xss_terminate/version.rb +3 -0
- data/vendor/gems/xss_terminate/tasks/xss_terminate_tasks.rake +7 -0
- data/vendor/gems/xss_terminate/test/models/comment.rb +5 -0
- data/vendor/gems/xss_terminate/test/models/entry.rb +7 -0
- data/vendor/gems/xss_terminate/test/models/message.rb +3 -0
- data/vendor/gems/xss_terminate/test/models/person.rb +5 -0
- data/vendor/gems/xss_terminate/test/models/review.rb +5 -0
- data/vendor/gems/xss_terminate/test/schema.rb +34 -0
- data/vendor/gems/xss_terminate/test/setup_test.rb +16 -0
- data/vendor/gems/xss_terminate/test/xss_terminate_test.rb +50 -0
- data/vendor/gems/xss_terminate/xss_terminate.gemspec +17 -0
- metadata +744 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/simple_taggable/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Micah Geisel"]
|
6
|
+
gem.email = ["micah@botandrose.com"]
|
7
|
+
gem.description = %q{TODO: Write a gem description}
|
8
|
+
gem.summary = %q{TODO: Write a gem summary}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "simple_taggable"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = SimpleTaggable::VERSION
|
17
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
ActiveRecord::Migration.verbose = false
|
2
|
+
|
3
|
+
ActiveRecord::Schema.define :version => 0 do
|
4
|
+
create_table :magazines, :force => true do |t|
|
5
|
+
t.column :name, :string
|
6
|
+
t.column :cached_tag_list, :string
|
7
|
+
end
|
8
|
+
|
9
|
+
create_table :posts, :force => true do |t|
|
10
|
+
t.column :text, :text
|
11
|
+
t.column :user_id, :integer
|
12
|
+
t.column :type, :string
|
13
|
+
t.column :cached_tag_list, :string
|
14
|
+
end
|
15
|
+
|
16
|
+
create_table :photos, :force => true do |t|
|
17
|
+
t.column :title, :string
|
18
|
+
t.column :user_id, :integer
|
19
|
+
t.column :cached_tag_list, :string
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table :subscriptions, :force => true do |t|
|
23
|
+
t.column :user_id, :integer
|
24
|
+
t.column :magazine_id, :integer
|
25
|
+
end
|
26
|
+
|
27
|
+
create_table :tags, :force => true do |t|
|
28
|
+
t.column :name, :string
|
29
|
+
end
|
30
|
+
|
31
|
+
create_table :taggings, :force => true do |t|
|
32
|
+
t.column :tag_id, :integer
|
33
|
+
t.column :taggable_id, :integer
|
34
|
+
t.column :taggable_type, :string
|
35
|
+
t.column :created_at, :datetime
|
36
|
+
end
|
37
|
+
|
38
|
+
create_table :users, :force => true do |t|
|
39
|
+
t.column :name, :string
|
40
|
+
end
|
41
|
+
end
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
blue_sky:
|
2
|
+
user: john
|
3
|
+
text: The sky is particularly blue today
|
4
|
+
|
5
|
+
grass:
|
6
|
+
user: john
|
7
|
+
text: The grass seems very green
|
8
|
+
|
9
|
+
rain:
|
10
|
+
user: john
|
11
|
+
text: Why does the rain fall?
|
12
|
+
|
13
|
+
cloudy:
|
14
|
+
user: john
|
15
|
+
text: Is it cloudy?
|
16
|
+
|
17
|
+
still_cloudy:
|
18
|
+
user: john
|
19
|
+
text: Is it still cloudy?
|
20
|
+
|
21
|
+
ground:
|
22
|
+
user: jane
|
23
|
+
text: The ground is looking too brown
|
24
|
+
|
25
|
+
flowers:
|
26
|
+
user: jane
|
27
|
+
text: Why are the flowers dead?
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# Photos
|
2
|
+
small_dog_tagged_animal:
|
3
|
+
taggable: small_dog
|
4
|
+
taggable_type: Photo
|
5
|
+
tag: animal
|
6
|
+
|
7
|
+
small_dog_tagged_nature:
|
8
|
+
taggable: small_dog
|
9
|
+
taggable_type: Photo
|
10
|
+
tag: nature
|
11
|
+
|
12
|
+
small_dog_tagged_great:
|
13
|
+
taggable: small_dog
|
14
|
+
taggable_type: Photo
|
15
|
+
tag: great
|
16
|
+
|
17
|
+
big_dog_tagged_animal:
|
18
|
+
taggable: big_dog
|
19
|
+
taggable_type: Photo
|
20
|
+
tag: animal
|
21
|
+
|
22
|
+
bad_cat_tagged_sucks:
|
23
|
+
taggable: bad_cat
|
24
|
+
taggable_type: Photo
|
25
|
+
tag: sucks
|
26
|
+
|
27
|
+
bad_cat_tagged_animal:
|
28
|
+
taggable: bad_cat
|
29
|
+
taggable_type: Photo
|
30
|
+
tag: animal
|
31
|
+
|
32
|
+
bad_cat_tagged_crazy_animal:
|
33
|
+
taggable: bad_cat
|
34
|
+
taggable_type: Photo
|
35
|
+
tag: crazy_animal
|
36
|
+
|
37
|
+
flower_tagged_nature:
|
38
|
+
taggable: flower
|
39
|
+
taggable_type: Photo
|
40
|
+
tag: nature
|
41
|
+
|
42
|
+
flower_tagged_great:
|
43
|
+
taggable: flower
|
44
|
+
taggable_type: Photo
|
45
|
+
tag: great
|
46
|
+
|
47
|
+
sky_tagged_nature:
|
48
|
+
taggable: sky
|
49
|
+
taggable_type: Photo
|
50
|
+
tag: nature
|
51
|
+
|
52
|
+
# Posts
|
53
|
+
blue_sky_tagged_good:
|
54
|
+
tag: great
|
55
|
+
taggable: blue_sky
|
56
|
+
taggable_type: Post
|
57
|
+
|
58
|
+
blue_sky_tagged_nature:
|
59
|
+
tag: nature
|
60
|
+
taggable: blue_sky
|
61
|
+
taggable_type: Post
|
62
|
+
|
63
|
+
grass_tagged_nature:
|
64
|
+
tag: nature
|
65
|
+
taggable: grass
|
66
|
+
taggable_type: Post
|
67
|
+
|
68
|
+
rain_tagged_sucks:
|
69
|
+
tag: sucks
|
70
|
+
taggable: rain
|
71
|
+
taggable_type: Post
|
72
|
+
|
73
|
+
rain_tagged_nature:
|
74
|
+
tag: nature
|
75
|
+
taggable: rain
|
76
|
+
taggable_type: Post
|
77
|
+
|
78
|
+
cloudy_tagged_nature:
|
79
|
+
tag: nature
|
80
|
+
taggable: cloudy
|
81
|
+
taggable_type: Post
|
82
|
+
|
83
|
+
still_cloudy_tagged_nature:
|
84
|
+
tag: nature
|
85
|
+
taggable: still_cloudy
|
86
|
+
taggable_type: Post
|
87
|
+
|
88
|
+
ground_tagged_nature:
|
89
|
+
tag: nature
|
90
|
+
taggable: ground
|
91
|
+
taggable_type: Post
|
92
|
+
|
93
|
+
ground_tagged_sucks:
|
94
|
+
tag: sucks
|
95
|
+
taggable: ground
|
96
|
+
taggable_type: Post
|
97
|
+
|
98
|
+
flowers_tagged_good:
|
99
|
+
tag: great
|
100
|
+
taggable: flowers
|
101
|
+
taggable_type: Post
|
102
|
+
|
103
|
+
flowers_tagged_nature:
|
104
|
+
tag: nature
|
105
|
+
taggable: flowers
|
106
|
+
taggable_type: Post
|
107
|
+
|
108
|
+
# Magazines
|
109
|
+
ruby_tagged_great:
|
110
|
+
tag: great
|
111
|
+
taggable: ruby
|
112
|
+
taggable_type: Magazine
|
@@ -0,0 +1,1614 @@
|
|
1
|
+
# Logfile created on Sun Mar 08 19:37:40 +0100 2009 by /
|
2
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
3
|
+
FROM sqlite_master
|
4
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5
|
+
[0m
|
6
|
+
[4;35;1mSQL (0.3ms)[0m [0mselect sqlite_version(*)[0m
|
7
|
+
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
8
|
+
FROM sqlite_master
|
9
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
10
|
+
[0m
|
11
|
+
[4;35;1mSQL (3.9ms)[0m [0mCREATE TABLE "magazines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cached_tag_list" varchar(255)) [0m
|
12
|
+
[4;36;1mSQL (0.6ms)[0m [0;1m SELECT name
|
13
|
+
FROM sqlite_master
|
14
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
15
|
+
[0m
|
16
|
+
[4;35;1mSQL (2.4ms)[0m [0mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "user_id" integer, "type" varchar(255), "cached_tag_list" varchar(255)) [0m
|
17
|
+
[4;36;1mSQL (0.8ms)[0m [0;1m SELECT name
|
18
|
+
FROM sqlite_master
|
19
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
20
|
+
[0m
|
21
|
+
[4;35;1mSQL (2.0ms)[0m [0mCREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "user_id" integer, "cached_tag_list" varchar(255)) [0m
|
22
|
+
[4;36;1mSQL (0.7ms)[0m [0;1m SELECT name
|
23
|
+
FROM sqlite_master
|
24
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
25
|
+
[0m
|
26
|
+
[4;35;1mSQL (2.2ms)[0m [0mCREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "magazine_id" integer) [0m
|
27
|
+
[4;36;1mSQL (0.9ms)[0m [0;1m SELECT name
|
28
|
+
FROM sqlite_master
|
29
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
30
|
+
[0m
|
31
|
+
[4;35;1mSQL (2.1ms)[0m [0mCREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
32
|
+
[4;36;1mSQL (0.8ms)[0m [0;1m SELECT name
|
33
|
+
FROM sqlite_master
|
34
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
35
|
+
[0m
|
36
|
+
[4;35;1mSQL (2.2ms)[0m [0mCREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar(255), "created_at" datetime) [0m
|
37
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
38
|
+
FROM sqlite_master
|
39
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
40
|
+
[0m
|
41
|
+
[4;35;1mSQL (2.8ms)[0m [0mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
42
|
+
[4;36;1mSQL (1.5ms)[0m [0;1m SELECT name
|
43
|
+
FROM sqlite_master
|
44
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
45
|
+
[0m
|
46
|
+
[4;35;1mSQL (2.7ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
47
|
+
[4;36;1mSQL (2.8ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
48
|
+
[4;35;1mSQL (1.7ms)[0m [0m SELECT name
|
49
|
+
FROM sqlite_master
|
50
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
51
|
+
[0m
|
52
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
53
|
+
[4;35;1mSQL (2.3ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
54
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
55
|
+
[4;35;1mTag Load (1.1ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
56
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
57
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
58
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
59
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
60
|
+
[4;36;1mTag Load (1.4ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
61
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
62
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
63
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
64
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
65
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
66
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
67
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
68
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
69
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
70
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
71
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
72
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
73
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
74
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
75
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
76
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
77
|
+
[4;35;1mTag Load (1.1ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
78
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
79
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
80
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
81
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
82
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
83
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
84
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
85
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
86
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
87
|
+
[4;35;1mTag Load (1.2ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
88
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
89
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
90
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
91
|
+
FROM sqlite_master
|
92
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
93
|
+
[0m
|
94
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
95
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
96
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
97
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
98
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
99
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
100
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
101
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
102
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
103
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
104
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
105
|
+
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
106
|
+
ON taggings.taggable_id = posts.id AND
|
107
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
108
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
109
|
+
ON taggings.taggable_id = photos.id AND
|
110
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
111
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
112
|
+
ON taggings.taggable_id = photos.id AND
|
113
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
114
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
115
|
+
ON taggings.taggable_id = photos.id AND
|
116
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
117
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
118
|
+
ON taggings.taggable_id = photos.id AND
|
119
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
120
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
121
|
+
ON taggings.taggable_id = photos.id AND
|
122
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
123
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
124
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
125
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
126
|
+
ON taggings.taggable_id = photos.id AND
|
127
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
128
|
+
[4;35;1mPhoto Load (1.1ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
129
|
+
ON taggings.taggable_id = photos.id AND
|
130
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
131
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
132
|
+
ON taggings.taggable_id = photos.id AND
|
133
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
134
|
+
[4;35;1mPost Load (0.9ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
135
|
+
ON taggings.taggable_id = posts.id AND
|
136
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
137
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
138
|
+
ON taggings.taggable_id = photos.id AND
|
139
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
140
|
+
(SELECT taggings.taggable_id FROM taggings
|
141
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
142
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
143
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
144
|
+
ON taggings.taggable_id = photos.id AND
|
145
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
146
|
+
[4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
147
|
+
ON taggings.taggable_id = photos.id AND
|
148
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
149
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
150
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
151
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
152
|
+
ON taggings.taggable_id = photos.id AND
|
153
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
154
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
155
|
+
ON taggings.taggable_id = photos.id AND
|
156
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
157
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
158
|
+
ON taggings.taggable_id = photos.id AND
|
159
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
160
|
+
(SELECT taggings.taggable_id FROM taggings
|
161
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
162
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
163
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
164
|
+
ON taggings.taggable_id = photos.id AND
|
165
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
166
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
167
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
168
|
+
[4;35;1mTag Load (0.4ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
169
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
170
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
171
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
172
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
173
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
174
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
175
|
+
[4;36;1mPhoto Update (0.1ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
176
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
177
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
178
|
+
[4;35;1mTagging Destroy (0.2ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
179
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
180
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
181
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
182
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
183
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
184
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
185
|
+
[4;36;1mPhoto Create (0.3ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
186
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
187
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
188
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
189
|
+
[4;36;1mTagging Load (1.3ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
190
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
191
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
192
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
193
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
194
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
195
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
196
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
197
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
198
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
199
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
200
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
201
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
202
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
203
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
204
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
205
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
206
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
207
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
208
|
+
[4;35;1mTag Load (1.3ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
209
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
210
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
211
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
212
|
+
[4;35;1mTag Load (0.7ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
213
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
214
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
215
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
216
|
+
[4;35;1mTag Load (1.4ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
217
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
218
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
219
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
220
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
221
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
222
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
223
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
224
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
225
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
226
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
227
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
228
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
229
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
230
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
231
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
232
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
233
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
234
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
235
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
236
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
237
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
238
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
239
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
240
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
241
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
242
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
243
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
244
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
245
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
246
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
247
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
248
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
249
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
250
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
251
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
252
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
253
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
254
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
255
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
256
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
257
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
258
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
259
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
260
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
261
|
+
[4;36;1mSpecialPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
262
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
263
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
264
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
265
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
266
|
+
[4;35;1mTagging Load (0.7ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
267
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
268
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
269
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
270
|
+
[4;35;1mTag Destroy (0.2ms)[0m [0mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
271
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
272
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
273
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
274
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
275
|
+
[4;36;1mTagging Load (0.8ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
276
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
277
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
278
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
279
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
280
|
+
FROM sqlite_master
|
281
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
282
|
+
[0m
|
283
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
284
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
285
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
286
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
287
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
288
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
289
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
290
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
291
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
292
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
293
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
294
|
+
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
295
|
+
ON taggings.taggable_id = posts.id AND
|
296
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
297
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
298
|
+
ON taggings.taggable_id = photos.id AND
|
299
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
300
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
301
|
+
ON taggings.taggable_id = photos.id AND
|
302
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
303
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
304
|
+
ON taggings.taggable_id = photos.id AND
|
305
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
306
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
307
|
+
ON taggings.taggable_id = photos.id AND
|
308
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
309
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
310
|
+
ON taggings.taggable_id = photos.id AND
|
311
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
312
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
313
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
314
|
+
[4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
315
|
+
ON taggings.taggable_id = photos.id AND
|
316
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
317
|
+
[4;35;1mPhoto Load (1.1ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
318
|
+
ON taggings.taggable_id = photos.id AND
|
319
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
320
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
321
|
+
ON taggings.taggable_id = photos.id AND
|
322
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
323
|
+
[4;35;1mPost Load (0.9ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
324
|
+
ON taggings.taggable_id = posts.id AND
|
325
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
326
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
327
|
+
ON taggings.taggable_id = photos.id AND
|
328
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
329
|
+
(SELECT taggings.taggable_id FROM taggings
|
330
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
331
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
332
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
333
|
+
ON taggings.taggable_id = photos.id AND
|
334
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
335
|
+
[4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
336
|
+
ON taggings.taggable_id = photos.id AND
|
337
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
338
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
339
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
340
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
341
|
+
ON taggings.taggable_id = photos.id AND
|
342
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
343
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
344
|
+
ON taggings.taggable_id = photos.id AND
|
345
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
346
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
347
|
+
ON taggings.taggable_id = photos.id AND
|
348
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
349
|
+
(SELECT taggings.taggable_id FROM taggings
|
350
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
351
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
352
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
353
|
+
ON taggings.taggable_id = photos.id AND
|
354
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
355
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
356
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
357
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
358
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
359
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
360
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
361
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
362
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
363
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
364
|
+
[4;36;1mPhoto Update (0.1ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
365
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
366
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
367
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
368
|
+
[4;36;1mSQL (0.5ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
369
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
370
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
371
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
372
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
373
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
374
|
+
[4;36;1mPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
375
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
376
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
377
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
378
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
379
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
380
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
381
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
382
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
383
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
384
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
385
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
386
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
387
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
388
|
+
[4;36;1mTagging Load (0.8ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
389
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
390
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
391
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
392
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
393
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
394
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
395
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
396
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
397
|
+
[4;35;1mTag Load (1.2ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
398
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
399
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
400
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
401
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
402
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
403
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
404
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
405
|
+
[4;35;1mTag Load (1.3ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
406
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
407
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
408
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
409
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
410
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
411
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
412
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
413
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
414
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
415
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
416
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
417
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
418
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
419
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
420
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
421
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
422
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
423
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
424
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
425
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
426
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
427
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
428
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
429
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
430
|
+
[4;36;1mTagging Load (1.2ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
431
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
432
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
433
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
434
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
435
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
436
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
437
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
438
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
439
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
440
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
441
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
442
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
443
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
444
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
445
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
446
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
447
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
448
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
449
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
450
|
+
[4;36;1mSpecialPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
451
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
452
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
453
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
454
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
455
|
+
[4;35;1mTagging Load (0.7ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
456
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
457
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
458
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
459
|
+
[4;35;1mTag Destroy (0.2ms)[0m [0mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
460
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
461
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
462
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
463
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
464
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
465
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
466
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
467
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
468
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
469
|
+
FROM sqlite_master
|
470
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
471
|
+
[0m
|
472
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
473
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
474
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
475
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
476
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
477
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
478
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
479
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
480
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
481
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
482
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
483
|
+
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
484
|
+
ON taggings.taggable_id = posts.id AND
|
485
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
486
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
487
|
+
ON taggings.taggable_id = photos.id AND
|
488
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
489
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
490
|
+
ON taggings.taggable_id = photos.id AND
|
491
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
492
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
493
|
+
ON taggings.taggable_id = photos.id AND
|
494
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
495
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
496
|
+
ON taggings.taggable_id = photos.id AND
|
497
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
498
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
499
|
+
ON taggings.taggable_id = photos.id AND
|
500
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
501
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
502
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
503
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
504
|
+
ON taggings.taggable_id = photos.id AND
|
505
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
506
|
+
[4;35;1mPhoto Load (1.1ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
507
|
+
ON taggings.taggable_id = photos.id AND
|
508
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
509
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
510
|
+
ON taggings.taggable_id = photos.id AND
|
511
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
512
|
+
[4;35;1mPost Load (0.9ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
513
|
+
ON taggings.taggable_id = posts.id AND
|
514
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
515
|
+
[4;36;1mPhoto Load (1.2ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
516
|
+
ON taggings.taggable_id = photos.id AND
|
517
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
518
|
+
(SELECT taggings.taggable_id FROM taggings
|
519
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
520
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
521
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
522
|
+
ON taggings.taggable_id = photos.id AND
|
523
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
524
|
+
[4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
525
|
+
ON taggings.taggable_id = photos.id AND
|
526
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
527
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
528
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
529
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
530
|
+
ON taggings.taggable_id = photos.id AND
|
531
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
532
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
533
|
+
ON taggings.taggable_id = photos.id AND
|
534
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
535
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
536
|
+
ON taggings.taggable_id = photos.id AND
|
537
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
538
|
+
(SELECT taggings.taggable_id FROM taggings
|
539
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
540
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
541
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
542
|
+
ON taggings.taggable_id = photos.id AND
|
543
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
544
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
545
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
546
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
547
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
548
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
549
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
550
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
551
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
552
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
553
|
+
[4;36;1mPhoto Update (0.1ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
554
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
555
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
556
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
557
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
558
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
559
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
560
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
561
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
562
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
563
|
+
[4;36;1mPhoto Create (0.3ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
564
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
565
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
566
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
567
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
568
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
569
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
570
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
571
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
572
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
573
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
574
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
575
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
576
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
577
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
578
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
579
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
580
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
581
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
582
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
583
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
584
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
585
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
586
|
+
[4;35;1mTag Load (1.2ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
587
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
588
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
589
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
590
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
591
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
592
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
593
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
594
|
+
[4;35;1mTag Load (1.4ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
595
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
596
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
597
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
598
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
599
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
600
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
601
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
602
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
603
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
604
|
+
[4;35;1mTag Load (1.1ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
605
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
606
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
607
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
608
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
609
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
610
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
611
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
612
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
613
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
614
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
615
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
616
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
617
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
618
|
+
[4;35;1mTag Load (1.2ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
619
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
620
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
621
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
622
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
623
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
624
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
625
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
626
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
627
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
628
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
629
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
630
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
631
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
632
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
633
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
634
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
635
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
636
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
637
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
638
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
639
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
640
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
641
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
642
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
643
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
644
|
+
[4;35;1mSpecialPhoto Create (0.4ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
645
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
646
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
647
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
648
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
649
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
650
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
651
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
652
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
653
|
+
[4;36;1mTag Destroy (0.2ms)[0m [0;1mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
654
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
655
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
656
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
657
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
658
|
+
[4;35;1mTagging Load (0.7ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
659
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
660
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
661
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
662
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
663
|
+
FROM sqlite_master
|
664
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
665
|
+
[0m
|
666
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
667
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
668
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
669
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
670
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
671
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
672
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
673
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
674
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
675
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'New') LIMIT 1[0m
|
676
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
677
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
678
|
+
[4;35;1mPost Load (0.5ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
679
|
+
ON taggings.taggable_id = posts.id AND
|
680
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
681
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
682
|
+
ON taggings.taggable_id = photos.id AND
|
683
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
684
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
685
|
+
ON taggings.taggable_id = photos.id AND
|
686
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
687
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
688
|
+
ON taggings.taggable_id = photos.id AND
|
689
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
690
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
691
|
+
ON taggings.taggable_id = photos.id AND
|
692
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
693
|
+
[4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
694
|
+
ON taggings.taggable_id = photos.id AND
|
695
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
696
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
697
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
698
|
+
[4;35;1mPhoto Load (1.3ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
699
|
+
ON taggings.taggable_id = photos.id AND
|
700
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
701
|
+
[4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
702
|
+
ON taggings.taggable_id = photos.id AND
|
703
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
704
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
705
|
+
ON taggings.taggable_id = photos.id AND
|
706
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
707
|
+
[4;36;1mPost Load (0.9ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
708
|
+
ON taggings.taggable_id = posts.id AND
|
709
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
710
|
+
[4;35;1mPhoto Load (1.3ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
711
|
+
ON taggings.taggable_id = photos.id AND
|
712
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
713
|
+
(SELECT taggings.taggable_id FROM taggings
|
714
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
715
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
716
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
717
|
+
ON taggings.taggable_id = photos.id AND
|
718
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
719
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
720
|
+
ON taggings.taggable_id = photos.id AND
|
721
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
722
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
723
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
724
|
+
[4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
725
|
+
ON taggings.taggable_id = photos.id AND
|
726
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
727
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
728
|
+
ON taggings.taggable_id = photos.id AND
|
729
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
730
|
+
[4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
731
|
+
ON taggings.taggable_id = photos.id AND
|
732
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
733
|
+
(SELECT taggings.taggable_id FROM taggings
|
734
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
735
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
736
|
+
[4;35;1mPhoto Load (0.6ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
737
|
+
ON taggings.taggable_id = photos.id AND
|
738
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
739
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
740
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
741
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
742
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
743
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'One') LIMIT 1[0m
|
744
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
745
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
746
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
747
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
748
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
749
|
+
[4;36;1mPhoto Update (0.1ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
750
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
751
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
752
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
753
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
754
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
755
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
756
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
757
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
758
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Foo') LIMIT 1[0m
|
759
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
760
|
+
[4;35;1mPhoto Create (0.3ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
761
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
762
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'baz') LIMIT 1[0m
|
763
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
764
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
765
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
766
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
767
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
768
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
769
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
770
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
771
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
772
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
773
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'NATURE') LIMIT 1[0m
|
774
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:17', 257805810, 527483711, 'Photo')[0m
|
775
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'ANIMAL') LIMIT 1[0m
|
776
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:17', 523709510, 527483711, 'Photo')[0m
|
777
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'GREAT') LIMIT 1[0m
|
778
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:17', 1070438446, 527483711, 'Photo')[0m
|
779
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
780
|
+
[4;35;1mTag Load (0.4ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
781
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
782
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
783
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
784
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
785
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
786
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
787
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
788
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
789
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
790
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
791
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
792
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
793
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
794
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
795
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
796
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
797
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
798
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
799
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
800
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
801
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
802
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
803
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
804
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
805
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
806
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
807
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
808
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
809
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
810
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
811
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
812
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
813
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
814
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
815
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
816
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
817
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
818
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
819
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
820
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
821
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
822
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
823
|
+
[4;36;1mTag Load (1.2ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
824
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
825
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
826
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
827
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
828
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
829
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
830
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
831
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
832
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
833
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
834
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
835
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
836
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
837
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
838
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
839
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
840
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
841
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
842
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
843
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
844
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
845
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
846
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
847
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
848
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
849
|
+
[4;36;1mSpecialPhoto Create (0.3ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
850
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
851
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'STI') LIMIT 1[0m
|
852
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
853
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
854
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
855
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
856
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
857
|
+
[4;36;1mTagging Destroy (0.2ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
858
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
859
|
+
[4;36;1mTag Destroy (0.2ms)[0m [0;1mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
860
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
861
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
862
|
+
[4;35;1mTag Load (0.4ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
863
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
864
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
865
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
866
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
867
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
868
|
+
[4;36;1mSQL (1.3ms)[0m [0;1m SELECT name
|
869
|
+
FROM sqlite_master
|
870
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
871
|
+
[0m
|
872
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
873
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
874
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
875
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
876
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
877
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
878
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
879
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
880
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
881
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'New') LIMIT 1[0m
|
882
|
+
[4;35;1mTag Exists (0.2ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
883
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('New')[0m
|
884
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:31', 1070438447, 527483711, 'Photo')[0m
|
885
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
886
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
887
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
888
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
889
|
+
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
890
|
+
ON taggings.taggable_id = posts.id AND
|
891
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
892
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
893
|
+
ON taggings.taggable_id = photos.id AND
|
894
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
895
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
896
|
+
ON taggings.taggable_id = photos.id AND
|
897
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
898
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
899
|
+
ON taggings.taggable_id = photos.id AND
|
900
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
901
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
902
|
+
ON taggings.taggable_id = photos.id AND
|
903
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
904
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
905
|
+
ON taggings.taggable_id = photos.id AND
|
906
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
907
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
908
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
909
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
910
|
+
ON taggings.taggable_id = photos.id AND
|
911
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
912
|
+
[4;35;1mPhoto Load (1.1ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
913
|
+
ON taggings.taggable_id = photos.id AND
|
914
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
915
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
916
|
+
ON taggings.taggable_id = photos.id AND
|
917
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
918
|
+
[4;35;1mPost Load (0.9ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
919
|
+
ON taggings.taggable_id = posts.id AND
|
920
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
921
|
+
[4;36;1mPhoto Load (1.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
922
|
+
ON taggings.taggable_id = photos.id AND
|
923
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
924
|
+
(SELECT taggings.taggable_id FROM taggings
|
925
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
926
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
927
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
928
|
+
ON taggings.taggable_id = photos.id AND
|
929
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
930
|
+
[4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
931
|
+
ON taggings.taggable_id = photos.id AND
|
932
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
933
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
934
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
935
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
936
|
+
ON taggings.taggable_id = photos.id AND
|
937
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
938
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
939
|
+
ON taggings.taggable_id = photos.id AND
|
940
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
941
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
942
|
+
ON taggings.taggable_id = photos.id AND
|
943
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
944
|
+
(SELECT taggings.taggable_id FROM taggings
|
945
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
946
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
947
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
948
|
+
ON taggings.taggable_id = photos.id AND
|
949
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
950
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
951
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
952
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
953
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
954
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'One') LIMIT 1[0m
|
955
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'One') LIMIT 1[0m
|
956
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('One')[0m
|
957
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:31', 1070438447, 987001423, 'Photo')[0m
|
958
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Two') LIMIT 1[0m
|
959
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Two') LIMIT 1[0m
|
960
|
+
[4;35;1mTag Create (0.1ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Two')[0m
|
961
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:31', 1070438448, 987001423, 'Photo')[0m
|
962
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
963
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
964
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
965
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
966
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
967
|
+
[4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
968
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
969
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
970
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
971
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
972
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
973
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
974
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
975
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
976
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Foo') LIMIT 1[0m
|
977
|
+
[4;36;1mTag Exists (0.2ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Foo') LIMIT 1[0m
|
978
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Foo')[0m
|
979
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:31', 1070438447, 527483711, 'Photo')[0m
|
980
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
981
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
982
|
+
[4;35;1mPhoto Create (0.3ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
983
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
984
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'baz') LIMIT 1[0m
|
985
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'baz') LIMIT 1[0m
|
986
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('baz')[0m
|
987
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 1070438447, 987001424, 'Photo')[0m
|
988
|
+
[4;35;1mPhoto Create (0.1ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('Baz', 'Bar', NULL)[0m
|
989
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001425) AND ("taggings".taggable_type = 'Photo')) [0m
|
990
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Baz') LIMIT 1[0m
|
991
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 1070438447, 987001425, 'Photo')[0m
|
992
|
+
[4;35;1mPhoto Create (0.1ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('BAZ', 'Bar', NULL)[0m
|
993
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001426) AND ("taggings".taggable_type = 'Photo')) [0m
|
994
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'BAZ') LIMIT 1[0m
|
995
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 1070438447, 987001426, 'Photo')[0m
|
996
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
997
|
+
[4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
998
|
+
ON taggings.taggable_id = photos.id AND
|
999
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'baz')) [0m
|
1000
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1001
|
+
ON taggings.taggable_id = photos.id AND
|
1002
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'BAZ')) [0m
|
1003
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1004
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
1005
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1006
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1007
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1008
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1009
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1010
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1011
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1012
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1013
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'NATURE') LIMIT 1[0m
|
1014
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 257805810, 527483711, 'Photo')[0m
|
1015
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'ANIMAL') LIMIT 1[0m
|
1016
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 523709510, 527483711, 'Photo')[0m
|
1017
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'GREAT') LIMIT 1[0m
|
1018
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:32', 1070438446, 527483711, 'Photo')[0m
|
1019
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1020
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
1021
|
+
[4;36;1mPhoto Update (0.5ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
1022
|
+
[4;35;1mTagging Load (0.9ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
1023
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1024
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
1025
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1026
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1027
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1028
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1029
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1030
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1031
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1032
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1033
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1034
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1035
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1036
|
+
[4;35;1mTag Load (1.6ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
1037
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1038
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1039
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1040
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1041
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1042
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1043
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1044
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1045
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1046
|
+
[4;35;1mTag Load (0.7ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1047
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1048
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1049
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1050
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1051
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1052
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1053
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1054
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1055
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1056
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1057
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
1058
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1059
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1060
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1061
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1062
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1063
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
1064
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1065
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1066
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1067
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1068
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1069
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1070
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1071
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1072
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1073
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1074
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1075
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1076
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1077
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1078
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1079
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1080
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1081
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1082
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1083
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1084
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1085
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1086
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1087
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1088
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1089
|
+
[4;36;1mSpecialPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
1090
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
1091
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'STI') LIMIT 1[0m
|
1092
|
+
[4;35;1mTag Exists (0.2ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'STI') LIMIT 1[0m
|
1093
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('STI')[0m
|
1094
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:41:33', 1070438447, 987001424, 'Photo')[0m
|
1095
|
+
[4;36;1mSpecialPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1096
|
+
ON taggings.taggable_id = photos.id AND
|
1097
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1098
|
+
[4;35;1mPhoto Load (0.8ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1099
|
+
ON taggings.taggable_id = photos.id AND
|
1100
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1101
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1102
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
1103
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
1104
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
1105
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1106
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
1107
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
1108
|
+
[4;35;1mTag Destroy (0.2ms)[0m [0mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
1109
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1110
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1111
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
1112
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
1113
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
1114
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1115
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
1116
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1117
|
+
[4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
|
1118
|
+
FROM sqlite_master
|
1119
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
1120
|
+
[0m
|
1121
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1122
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
1123
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
1124
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1125
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1126
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1127
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1128
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1129
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
1130
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'New') LIMIT 1[0m
|
1131
|
+
[4;35;1mTag Exists (0.2ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
1132
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('New')[0m
|
1133
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:22', 1070438447, 527483711, 'Photo')[0m
|
1134
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
1135
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1136
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1137
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
1138
|
+
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
1139
|
+
ON taggings.taggable_id = posts.id AND
|
1140
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
1141
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1142
|
+
ON taggings.taggable_id = photos.id AND
|
1143
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
1144
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1145
|
+
ON taggings.taggable_id = photos.id AND
|
1146
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
1147
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1148
|
+
ON taggings.taggable_id = photos.id AND
|
1149
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
1150
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1151
|
+
ON taggings.taggable_id = photos.id AND
|
1152
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
1153
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1154
|
+
ON taggings.taggable_id = photos.id AND
|
1155
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1156
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1157
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
1158
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1159
|
+
ON taggings.taggable_id = photos.id AND
|
1160
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
1161
|
+
[4;35;1mPhoto Load (1.1ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1162
|
+
ON taggings.taggable_id = photos.id AND
|
1163
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
1164
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1165
|
+
ON taggings.taggable_id = photos.id AND
|
1166
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
1167
|
+
[4;35;1mPost Load (1.1ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
1168
|
+
ON taggings.taggable_id = posts.id AND
|
1169
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
1170
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1171
|
+
ON taggings.taggable_id = photos.id AND
|
1172
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
1173
|
+
(SELECT taggings.taggable_id FROM taggings
|
1174
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
1175
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
1176
|
+
[4;35;1mPhoto Load (0.6ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1177
|
+
ON taggings.taggable_id = photos.id AND
|
1178
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
1179
|
+
[4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1180
|
+
ON taggings.taggable_id = photos.id AND
|
1181
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1182
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1183
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
1184
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1185
|
+
ON taggings.taggable_id = photos.id AND
|
1186
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
1187
|
+
[4;36;1mPhoto Load (0.8ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1188
|
+
ON taggings.taggable_id = photos.id AND
|
1189
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
1190
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1191
|
+
ON taggings.taggable_id = photos.id AND
|
1192
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
1193
|
+
(SELECT taggings.taggable_id FROM taggings
|
1194
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
1195
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
1196
|
+
[4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1197
|
+
ON taggings.taggable_id = photos.id AND
|
1198
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1199
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1200
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
1201
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
1202
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
1203
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'One') LIMIT 1[0m
|
1204
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'One') LIMIT 1[0m
|
1205
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('One')[0m
|
1206
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438447, 987001423, 'Photo')[0m
|
1207
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Two') LIMIT 1[0m
|
1208
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Two') LIMIT 1[0m
|
1209
|
+
[4;35;1mTag Create (0.1ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Two')[0m
|
1210
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438448, 987001423, 'Photo')[0m
|
1211
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1212
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
1213
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1214
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1215
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
1216
|
+
[4;36;1mPhoto Update (0.2ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
1217
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1218
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1219
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1220
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1221
|
+
[4;35;1mTagging Destroy (0.2ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1222
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1223
|
+
[4;35;1mTagging Destroy (0.2ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1224
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1225
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Foo') LIMIT 1[0m
|
1226
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Foo') LIMIT 1[0m
|
1227
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Foo')[0m
|
1228
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438447, 527483711, 'Photo')[0m
|
1229
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1230
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1231
|
+
[4;35;1mPhoto Create (0.3ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
1232
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
1233
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'baz') LIMIT 1[0m
|
1234
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'baz') LIMIT 1[0m
|
1235
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('baz')[0m
|
1236
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438447, 987001424, 'Photo')[0m
|
1237
|
+
[4;35;1mPhoto Create (0.1ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('Baz', 'Bar', NULL)[0m
|
1238
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001425) AND ("taggings".taggable_type = 'Photo')) [0m
|
1239
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Baz') LIMIT 1[0m
|
1240
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438447, 987001425, 'Photo')[0m
|
1241
|
+
[4;35;1mPhoto Create (0.2ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('BAZ', 'Bar', NULL)[0m
|
1242
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001426) AND ("taggings".taggable_type = 'Photo')) [0m
|
1243
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'BAZ') LIMIT 1[0m
|
1244
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438447, 987001426, 'Photo')[0m
|
1245
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1246
|
+
[4;36;1mPhoto Load (1.1ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1247
|
+
ON taggings.taggable_id = photos.id AND
|
1248
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'baz')) [0m
|
1249
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1250
|
+
ON taggings.taggable_id = photos.id AND
|
1251
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'BAZ')) [0m
|
1252
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1253
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
1254
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1255
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1256
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1257
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1258
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1259
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1260
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1261
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1262
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'NATURE') LIMIT 1[0m
|
1263
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 257805810, 527483711, 'Photo')[0m
|
1264
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'ANIMAL') LIMIT 1[0m
|
1265
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 523709510, 527483711, 'Photo')[0m
|
1266
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'GREAT') LIMIT 1[0m
|
1267
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:23', 1070438446, 527483711, 'Photo')[0m
|
1268
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1269
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
1270
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
1271
|
+
[4;35;1mTagging Load (0.9ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
1272
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1273
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
1274
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1275
|
+
[4;35;1mTag Load (1.2ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1276
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1277
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1278
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1279
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1280
|
+
[4;36;1mTag Load (1.5ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1281
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1282
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1283
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1284
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1285
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
1286
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1287
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1288
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1289
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1290
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1291
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1292
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1293
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1294
|
+
[4;36;1mTag Load (0.9ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1295
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1296
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1297
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1298
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1299
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1300
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1301
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1302
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1303
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1304
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1305
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1306
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
1307
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1308
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1309
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1310
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1311
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1312
|
+
[4;36;1mTag Load (1.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
1313
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1314
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1315
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1316
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1317
|
+
[4;35;1mPhoto Update (0.4ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1318
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1319
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1320
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1321
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1322
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1323
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1324
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1325
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1326
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1327
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1328
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1329
|
+
[4;35;1mTagging Load (1.2ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1330
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1331
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1332
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1333
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1334
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1335
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1336
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1337
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1338
|
+
[4;36;1mSpecialPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
1339
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
1340
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'STI') LIMIT 1[0m
|
1341
|
+
[4;35;1mTag Exists (0.1ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'STI') LIMIT 1[0m
|
1342
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('STI')[0m
|
1343
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:42:24', 1070438447, 987001424, 'Photo')[0m
|
1344
|
+
[4;36;1mSpecialPhoto Load (0.8ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1345
|
+
ON taggings.taggable_id = photos.id AND
|
1346
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1347
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1348
|
+
ON taggings.taggable_id = photos.id AND
|
1349
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1350
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1351
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
1352
|
+
[4;36;1mPhoto Update (0.4ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
1353
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
1354
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1355
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
1356
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
1357
|
+
[4;35;1mTag Destroy (0.2ms)[0m [0mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
1358
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1359
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1360
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
1361
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
1362
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
1363
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1364
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
1365
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1366
|
+
[4;36;1mSQL (1.3ms)[0m [0;1m SELECT name
|
1367
|
+
FROM sqlite_master
|
1368
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
1369
|
+
[0m
|
1370
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1371
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal' WHERE "id" = 527483711[0m
|
1372
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (1070438446))) [0m
|
1373
|
+
[4;36;1mTag Load (0.4ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1374
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1375
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1376
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1377
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1378
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great New' WHERE "id" = 527483711[0m
|
1379
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'New') LIMIT 1[0m
|
1380
|
+
[4;35;1mTag Exists (0.2ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
1381
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('New')[0m
|
1382
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:05', 1070438447, 527483711, 'Photo')[0m
|
1383
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."name" = 'New') LIMIT 1[0m
|
1384
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1385
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1386
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
1387
|
+
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
1388
|
+
ON taggings.taggable_id = posts.id AND
|
1389
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
1390
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1391
|
+
ON taggings.taggable_id = photos.id AND
|
1392
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'doesnotexist')) [0m
|
1393
|
+
[4;36;1mPhoto Load (0.5ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1394
|
+
ON taggings.taggable_id = photos.id AND
|
1395
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'unsaved' OR tags.name LIKE 'tag')) [0m
|
1396
|
+
[4;35;1mPhoto Load (0.5ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1397
|
+
ON taggings.taggable_id = photos.id AND
|
1398
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
1399
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1400
|
+
ON taggings.taggable_id = photos.id AND
|
1401
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (0 = 1) [0m
|
1402
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1403
|
+
ON taggings.taggable_id = photos.id AND
|
1404
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1405
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1406
|
+
taggable_id = photos.id AND (tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) = 2) [0m
|
1407
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1408
|
+
ON taggings.taggable_id = photos.id AND
|
1409
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) [0m
|
1410
|
+
[4;35;1mPhoto Load (1.2ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1411
|
+
ON taggings.taggable_id = photos.id AND
|
1412
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Animal')) [0m
|
1413
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1414
|
+
ON taggings.taggable_id = photos.id AND
|
1415
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Crazy animal')) [0m
|
1416
|
+
[4;35;1mPost Load (0.9ms)[0m [0mSELECT DISTINCT posts.* FROM "posts" INNER JOIN taggings
|
1417
|
+
ON taggings.taggable_id = posts.id AND
|
1418
|
+
taggings.taggable_type = 'Post' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'sucks')) [0m
|
1419
|
+
[4;36;1mPhoto Load (1.3ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1420
|
+
ON taggings.taggable_id = photos.id AND
|
1421
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
1422
|
+
(SELECT taggings.taggable_id FROM taggings
|
1423
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
1424
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
1425
|
+
[4;35;1mPhoto Load (0.6ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1426
|
+
ON taggings.taggable_id = photos.id AND
|
1427
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE (1 = 0 AND (tags.name LIKE 'Great' OR tags.name LIKE 'Nature')) [0m
|
1428
|
+
[4;36;1mPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1429
|
+
ON taggings.taggable_id = photos.id AND
|
1430
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'Great' OR tags.name LIKE 'Animal') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1431
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1432
|
+
taggable_id = photos.id AND (tags.name LIKE 'Great' OR tags.name LIKE 'Animal')) = 2) [0m
|
1433
|
+
[4;35;1mPhoto Load (0.9ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1434
|
+
ON taggings.taggable_id = photos.id AND
|
1435
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 140210751) AND ((tags.name LIKE 'Nature')) [0m
|
1436
|
+
[4;36;1mPhoto Load (0.7ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1437
|
+
ON taggings.taggable_id = photos.id AND
|
1438
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature')) [0m
|
1439
|
+
[4;35;1mPhoto Load (0.8ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1440
|
+
ON taggings.taggable_id = photos.id AND
|
1441
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature') AND photos.id NOT IN
|
1442
|
+
(SELECT taggings.taggable_id FROM taggings
|
1443
|
+
INNER JOIN tags ON taggings.tag_id = tags.id
|
1444
|
+
WHERE (tags.name LIKE 'Animal') AND taggings.taggable_type = 'Photo') ) [0m
|
1445
|
+
[4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1446
|
+
ON taggings.taggable_id = photos.id AND
|
1447
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ("photos".user_id = 21341157) AND ((tags.name LIKE 'Nature' OR tags.name LIKE 'Bad') AND (SELECT COUNT(*) FROM taggings INNER JOIN tags ON taggings.tag_id = tags.id
|
1448
|
+
WHERE taggings.taggable_type = 'Photo' AND
|
1449
|
+
taggable_id = photos.id AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Bad')) = 2) [0m
|
1450
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
1451
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature One Two' WHERE "id" = 987001423[0m
|
1452
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'One') LIMIT 1[0m
|
1453
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'One') LIMIT 1[0m
|
1454
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('One')[0m
|
1455
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438447, 987001423, 'Photo')[0m
|
1456
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Two') LIMIT 1[0m
|
1457
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Two') LIMIT 1[0m
|
1458
|
+
[4;35;1mTag Create (0.1ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Two')[0m
|
1459
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438448, 987001423, 'Photo')[0m
|
1460
|
+
[4;35;1mTag Load (0.6ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1461
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
1462
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1463
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1464
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'Nature Animal Great' WHERE "id" = 527483711[0m
|
1465
|
+
[4;36;1mPhoto Update (0.1ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Foo' WHERE "id" = 527483711[0m
|
1466
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1467
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1468
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1469
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1470
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1471
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1472
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1473
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1474
|
+
[4;35;1mTag Load (0.1ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Foo') LIMIT 1[0m
|
1475
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'Foo') LIMIT 1[0m
|
1476
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('Foo')[0m
|
1477
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438447, 527483711, 'Photo')[0m
|
1478
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1479
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1480
|
+
[4;35;1mPhoto Create (0.4ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('baz', 'Foo', NULL)[0m
|
1481
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
1482
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'baz') LIMIT 1[0m
|
1483
|
+
[4;36;1mTag Exists (0.1ms)[0m [0;1mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'baz') LIMIT 1[0m
|
1484
|
+
[4;35;1mTag Create (0.2ms)[0m [0mINSERT INTO "tags" ("name") VALUES('baz')[0m
|
1485
|
+
[4;36;1mTagging Create (0.2ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438447, 987001424, 'Photo')[0m
|
1486
|
+
[4;35;1mPhoto Create (0.1ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('Baz', 'Bar', NULL)[0m
|
1487
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001425) AND ("taggings".taggable_type = 'Photo')) [0m
|
1488
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'Baz') LIMIT 1[0m
|
1489
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438447, 987001425, 'Photo')[0m
|
1490
|
+
[4;35;1mPhoto Create (0.1ms)[0m [0mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('BAZ', 'Bar', NULL)[0m
|
1491
|
+
[4;36;1mTag Load (0.2ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001426) AND ("taggings".taggable_type = 'Photo')) [0m
|
1492
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE (name LIKE 'BAZ') LIMIT 1[0m
|
1493
|
+
[4;36;1mTagging Create (0.1ms)[0m [0;1mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438447, 987001426, 'Photo')[0m
|
1494
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1495
|
+
[4;36;1mPhoto Load (1.0ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1496
|
+
ON taggings.taggable_id = photos.id AND
|
1497
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'baz')) [0m
|
1498
|
+
[4;35;1mPhoto Load (1.0ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1499
|
+
ON taggings.taggable_id = photos.id AND
|
1500
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'BAZ')) [0m
|
1501
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1502
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = 'NATURE ANIMAL GREAT' WHERE "id" = 527483711[0m
|
1503
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1504
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1505
|
+
[4;36;1mTagging Destroy (0.2ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1506
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1507
|
+
[4;36;1mTagging Destroy (0.2ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1508
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1509
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1510
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1511
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'NATURE') LIMIT 1[0m
|
1512
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 257805810, 527483711, 'Photo')[0m
|
1513
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'ANIMAL') LIMIT 1[0m
|
1514
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 523709510, 527483711, 'Photo')[0m
|
1515
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'GREAT') LIMIT 1[0m
|
1516
|
+
[4;35;1mTagging Create (0.1ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:06', 1070438446, 527483711, 'Photo')[0m
|
1517
|
+
[4;36;1mPhoto Load (0.6ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1518
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001423) AND ("taggings".taggable_type = 'Photo')) [0m
|
1519
|
+
[4;36;1mPhoto Update (0.5ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 987001423[0m
|
1520
|
+
[4;35;1mTagging Load (0.8ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 987001423 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810))) [0m
|
1521
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1522
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1022900741[0m
|
1523
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1524
|
+
[4;35;1mTag Load (1.1ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1525
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1526
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1527
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1528
|
+
[4;35;1mTag Load (0.9ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1529
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1530
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1531
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1532
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND "photos".user_id = 140210751) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1533
|
+
[4;36;1mTag Load (0.6ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND 1 = 0 AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1534
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post' AND "posts".user_id = 21341157) GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 2[0m
|
1535
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1536
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1537
|
+
[4;36;1mTag Load (1.3ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1538
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1539
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1540
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1541
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1542
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1543
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1544
|
+
[4;35;1mTag Load (0.7ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN "subscriptions" ON "magazines".id = "subscriptions".magazine_id INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN magazines ON magazines.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Magazine' AND ("subscriptions".user_id = 21341157)) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1545
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1546
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1547
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND (tags.name LIKE 'Nature' OR tags.name LIKE 'Animal' OR tags.name LIKE 'Great')) GROUP BY tags.id, tags.name HAVING count > 0[0m
|
1548
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1549
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1550
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1551
|
+
[4;36;1mTag Load (1.0ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1552
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1553
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 1070438446) [0m
|
1554
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1555
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) <= 1[0m
|
1556
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 139008036) [0m
|
1557
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1558
|
+
[4;35;1mTag Load (1.0ms)[0m [0mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN photos ON photos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Photo' AND tags.name LIKE '%n%') GROUP BY tags.id, tags.name HAVING count > 0 AND COUNT(*) >= 2[0m
|
1559
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 257805810) [0m
|
1560
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1561
|
+
[4;36;1mTag Load (1.1ms)[0m [0;1mSELECT tags.*, COUNT(*) AS count FROM "tags" INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN posts ON posts.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Post') GROUP BY tags.id, tags.name HAVING count > 0 ORDER BY count DESC, name LIMIT 2[0m
|
1562
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1563
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1564
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1565
|
+
[4;36;1mTag Load (0.5ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1566
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1567
|
+
[4;36;1mTagging Load (1.1ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1568
|
+
[4;35;1mTag Load (0.8ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1569
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1570
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1571
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1572
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1573
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1574
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1575
|
+
[4;36;1mPhoto Load (0.4ms)[0m [0;1mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1576
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 527483711) AND ("taggings".taggable_type = 'Photo')) [0m
|
1577
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 527483711[0m
|
1578
|
+
[4;35;1mTagging Load (1.1ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 527483711 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (257805810,523709510,1070438446))) [0m
|
1579
|
+
[4;36;1mTag Load (0.8ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" IN (257805810,1070438446,523709510)) [0m
|
1580
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 61007463[0m
|
1581
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 257805810) [0m
|
1582
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 842522782[0m
|
1583
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 523709510) [0m
|
1584
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1019147834[0m
|
1585
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 1070438446) [0m
|
1586
|
+
[4;35;1mPhoto Load (0.4ms)[0m [0mSELECT * FROM "photos" WHERE ("photos"."id" = 527483711) [0m
|
1587
|
+
[4;36;1mSpecialPhoto Create (0.4ms)[0m [0;1mINSERT INTO "photos" ("cached_tag_list", "title", "user_id") VALUES('STI', 'Foo', NULL)[0m
|
1588
|
+
[4;35;1mTag Load (0.2ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 987001424) AND ("taggings".taggable_type = 'Photo')) [0m
|
1589
|
+
[4;36;1mTag Load (0.1ms)[0m [0;1mSELECT * FROM "tags" WHERE (name LIKE 'STI') LIMIT 1[0m
|
1590
|
+
[4;35;1mTag Exists (0.1ms)[0m [0mSELECT "tags".id FROM "tags" WHERE ("tags"."name" = 'STI') LIMIT 1[0m
|
1591
|
+
[4;36;1mTag Create (0.2ms)[0m [0;1mINSERT INTO "tags" ("name") VALUES('STI')[0m
|
1592
|
+
[4;35;1mTagging Create (0.2ms)[0m [0mINSERT INTO "taggings" ("created_at", "tag_id", "taggable_id", "taggable_type") VALUES('2009-03-08 19:43:07', 1070438447, 987001424, 'Photo')[0m
|
1593
|
+
[4;36;1mSpecialPhoto Load (0.9ms)[0m [0;1mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1594
|
+
ON taggings.taggable_id = photos.id AND
|
1595
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1596
|
+
[4;35;1mPhoto Load (0.7ms)[0m [0mSELECT DISTINCT photos.* FROM "photos" INNER JOIN taggings
|
1597
|
+
ON taggings.taggable_id = photos.id AND
|
1598
|
+
taggings.taggable_type = 'Photo' INNER JOIN tags ON tags.id = taggings.tag_id WHERE ((tags.name LIKE 'STI')) [0m
|
1599
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1600
|
+
[4;35;1mTag Load (0.5ms)[0m [0mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 473710783) AND ("taggings".taggable_type = 'Photo')) [0m
|
1601
|
+
[4;36;1mPhoto Update (0.3ms)[0m [0;1mUPDATE "photos" SET "cached_tag_list" = 'Sucks Animal' WHERE "id" = 473710783[0m
|
1602
|
+
[4;35;1mTagging Load (0.7ms)[0m [0mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 473710783 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (54072833))) [0m
|
1603
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT * FROM "tags" WHERE ("tags"."id" = 54072833) [0m
|
1604
|
+
[4;35;1mTagging Destroy (0.1ms)[0m [0mDELETE FROM "taggings" WHERE "id" = 1044552505[0m
|
1605
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT count(*) AS count_all FROM "taggings" WHERE ("taggings".tag_id = 54072833) [0m
|
1606
|
+
[4;35;1mTag Destroy (0.2ms)[0m [0mDELETE FROM "tags" WHERE "id" = 54072833[0m
|
1607
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mSELECT count(*) AS count_all FROM "tags" [0m
|
1608
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|
1609
|
+
[4;36;1mTag Load (0.3ms)[0m [0;1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 580543759) AND ("taggings".taggable_type = 'Photo')) [0m
|
1610
|
+
[4;35;1mPhoto Update (0.3ms)[0m [0mUPDATE "photos" SET "cached_tag_list" = '' WHERE "id" = 580543759[0m
|
1611
|
+
[4;36;1mTagging Load (0.7ms)[0m [0;1mSELECT * FROM "taggings" WHERE ("taggings".taggable_id = 580543759 AND "taggings".taggable_type = 'Photo' AND (tag_id IN (523709510))) [0m
|
1612
|
+
[4;35;1mTag Load (0.3ms)[0m [0mSELECT * FROM "tags" WHERE ("tags"."id" = 523709510) [0m
|
1613
|
+
[4;36;1mTagging Destroy (0.1ms)[0m [0;1mDELETE FROM "taggings" WHERE "id" = 595711063[0m
|
1614
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT count(*) AS count_all FROM "tags" [0m
|