Last active
July 13, 2021 15:40
-
-
Save kgilpin/0e48019d9cab2ea5accac00dc7a7594c to your computer and use it in GitHub Desktop.
Example files - Preventing data leaks with runtime code analysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- DELETE FROM "ahoy_messages" WHERE "ahoy_messages"."user_id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- DELETE FROM "articles" WHERE "articles"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."user_id" = $? | |
- DELETE FROM "broadcasts" WHERE "broadcasts"."id" = $? | |
- >- | |
DELETE FROM "chat_channel_memberships" WHERE "chat_channel_memberships"."id" | |
= $? | |
- DELETE FROM "chat_channels" WHERE "chat_channels"."id" = $? | |
- >- | |
DELETE FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."id" = $? | |
- DELETE FROM "classified_listings" WHERE "classified_listings"."id" = $? | |
- DELETE FROM "collections" WHERE "collections"."user_id" = $? | |
- DELETE FROM "comments" WHERE "comments"."id" = $? | |
- DELETE FROM "consumer_apps" WHERE "consumer_apps"."id" = $? | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."organization_id" = $? AND "credits"."spent" = $? | |
LIMIT $?) | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."user_id" = $? AND "credits"."spent" = $? LIMIT | |
$?) | |
- DELETE FROM "credits" WHERE "credits"."user_id" = $? | |
- DELETE FROM "devices" WHERE "devices"."id" = $? | |
- DELETE FROM "devices" WHERE "devices"."user_id" = $? | |
- DELETE FROM "discussion_locks" WHERE "discussion_locks"."id" = $? | |
- DELETE FROM "display_ad_events" WHERE "display_ad_events"."user_id" = $? | |
- DELETE FROM "display_ads" WHERE "display_ads"."id" = $? | |
- >- | |
DELETE FROM "email_authorizations" WHERE "email_authorizations"."user_id" = | |
$? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."id" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."user_id" = $? | |
- DELETE FROM "identities" WHERE "identities"."id" = $? | |
- DELETE FROM "mentions" WHERE "mentions"."user_id" = $? | |
- >- | |
DELETE FROM "messages" WHERE "messages"."user_id" = $? AND | |
"messages"."chat_channel_id" = $? | |
- DELETE FROM "messages" WHERE "messages"."user_id" = $? | |
- DELETE FROM "navigation_links" WHERE "navigation_links"."id" = $? | |
- DELETE FROM "notes" WHERE "notes"."author_id" = $? | |
- >- | |
DELETE FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."id" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) AND "notifications"."action" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "comments"."id" FROM "comments" | |
WHERE "comments"."id" = $?) | |
- DELETE FROM "notifications" WHERE "notifications"."user_id" = $? | |
- >- | |
DELETE FROM "oauth_access_grants" WHERE | |
"oauth_access_grants"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE "organization_memberships"."id" | |
= $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? | |
- DELETE FROM "poll_skips" WHERE "poll_skips"."user_id" = $? | |
- DELETE FROM "poll_votes" WHERE "poll_votes"."user_id" = $? | |
- DELETE FROM "profile_field_groups" WHERE "profile_field_groups"."id" = $? | |
- DELETE FROM "profile_fields" WHERE "profile_fields"."id" = $? | |
- DELETE FROM "profile_pins" WHERE "profile_pins"."id" = $? | |
- >- | |
DELETE FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? AND | |
"profile_pins"."profile_type" = $? | |
- DELETE FROM "profiles" WHERE "profiles"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."user_id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."user_id" = $? | |
- DELETE FROM "roles" WHERE "roles"."id" = $? | |
- DELETE FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
- DELETE FROM "tag_adjustments" WHERE "tag_adjustments"."id" = $? | |
- DELETE FROM "taggings" WHERE "taggings"."id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."id" = $? | |
- DELETE FROM "users" WHERE "users"."id" = $? | |
- >- | |
DELETE FROM "users_gdpr_delete_requests" WHERE | |
"users_gdpr_delete_requests"."id" = $? | |
- >- | |
DELETE FROM "users_notification_settings" WHERE | |
"users_notification_settings"."id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND ?=? | |
- >- | |
DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND | |
"users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? | |
- DELETE FROM "users_settings" WHERE "users_settings"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "feedback_message_id", "mailer", | |
"sent_at", "subject", "to", "user_id", "user_type", "utm_campaign") VALUES | |
($?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "mailer", "sent_at", "subject", | |
"to", "user_id", "user_type") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "api_secrets" ("created_at", "description", "secret", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("approved", "body_markdown", "boost_states", | |
"cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", | |
"experience_level_rating", "featured_number", "last_comment_at", | |
"main_image", "nth_published_by_author", "password", "path", | |
"processed_html", "published", "published_at", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "reading_time", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "experience_level_rating", "featured_number", | |
"last_comment_at", "main_image", "nth_published_by_author", "password", | |
"path", "processed_html", "published", "published_at", "reading_time", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", "main_image", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "main_image", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id", "video", "video_source_url", "video_state", | |
"video_thumbnail_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "audit_logs" ("category", "created_at", "data", "roles", "slug", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "badges" ("badge_image", "created_at", "credits_awarded", | |
"description", "slug", "title", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("active", "active_status_updated_at", | |
"created_at", "processed_html", "title", "type_of", "updated_at") VALUES | |
($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("created_at", "processed_html", "title", | |
"type_of", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" | |
("user_id","chat_channel_id","created_at","updated_at") VALUES (?, ?, ?, ?), | |
(?, ?, ?, ?) ON CONFLICT ("chat_channel_id","user_id") DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"last_message_at", "slug", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"slug", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listing_categories" ("cost", "created_at", "name", | |
"rules", "slug", "social_preview_color", "social_preview_description", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "organization_id", "originally_published_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"location", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"organization_id", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"originally_published_at", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"organization_id", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "organization_id", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "processed_html", | |
"published", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "collections" ("created_at", "slug", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("ancestry", "body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "auth_key", "created_at", | |
"platform", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "created_at", "platform", | |
"team_id", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","organization_id") | |
VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?) ON CONFLICT DO NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("user_id","created_at","updated_at") VALUES (?, ?, | |
?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "devices" ("consumer_app_id", "created_at", "platform", "token", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "notes", "reason", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ad_events" ("category", "context_type", "created_at", | |
"display_ad_id", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("approved", "body_markdown", "created_at", | |
"organization_id", "placement_area", "processed_html", "published", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("body_markdown", "created_at", "organization_id", | |
"placement_area", "processed_html", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "email_authorizations" ("confirmation_token", "created_at", | |
"type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "events" ("category", "created_at", "description_html", | |
"description_markdown", "ends_at", "starts_at", "title", "updated_at") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "reporter_id", "updated_at") VALUES ($?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "featured", | |
"github_id_code", "info_hash", "language", "name", "stargazers_count", | |
"updated_at", "url", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "github_id_code", | |
"info_hash", "language", "name", "stargazers_count", "updated_at", "url", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_successes" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_trials" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("approved", "created_at", "group", "html", | |
"name", "published", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("created_at", "group", "html", "name", | |
"success_rate", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_action", "chat_channel_id", "created_at", | |
"message_html", "message_markdown", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_channel_id", "created_at", "message_html", | |
"message_markdown", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "navigation_links" ("created_at", "icon", "name", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "notes" ("author_id", "content", "created_at", "noteable_id", | |
"noteable_type", "reason", "updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notification_subscriptions" ("created_at", "notifiable_id", | |
"notifiable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notifications" ("created_at", "json_data", "notifiable_id", | |
"notifiable_type", "notified_at", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organization_memberships" ("created_at", "organization_id", | |
"type_of_user", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "company_size", "created_at", | |
"cta_body_markdown", "cta_button_text", "cta_button_url", "email", | |
"github_username", "location", "name", "profile_image", "proof", "secret", | |
"slug", "story", "summary", "tag_line", "tech_stack", "text_color_hex", | |
"twitter_username", "updated_at", "url") VALUES ($?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "created_at", | |
"github_username", "name", "nav_image", "profile_image", "proof", "secret", | |
"slug", "summary", "text_color_hex", "twitter_username", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "domain", "path", "referrer", "updated_at") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "path", "referrer", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at", "user_agent") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "path", "referrer", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_agent", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcast_ownerships" ("created_at", "podcast_id", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcasts" ("created_at", "creator_id", "description", | |
"feed_url", "image", "main_color_hex", "slug", "title", "twitter_username", | |
"updated_at", "website_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_skips" ("created_at", "poll_id", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_votes" ("created_at", "poll_id", "poll_option_id", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_field_groups" ("created_at", "description", "name", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_fields" ("attribute_name", "created_at", "description", | |
"label", "placeholder_text", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profile_pins" ("created_at", "pinnable_id", "pinnable_type", | |
"profile_id", "profile_type", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profiles" ("created_at", "data", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "rating_votes" ("article_id", "created_at", "group", "rating", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "resource_id", "resource_type", | |
"updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "settings_authentications" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_campaigns" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_communities" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_rate_limits" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_user_experiences" ("created_at", "updated_at", | |
"value", "var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "site_configs" ("created_at", "updated_at", "value", "var") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "sponsorable_id", "sponsorable_type", "status", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "status", "updated_at", "user_id") VALUES ($?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", | |
"taggable_type") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("badge_id", "bg_color_hex", "category", "created_at", | |
"name", "pretty_name", "requires_approval", "rules_html", "rules_markdown", | |
"short_summary", "submission_template", "supported", "text_color_hex", | |
"updated_at", "wiki_body_html", "wiki_body_markdown") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "tweets" ("created_at", "extended_entities_serialized", | |
"favorite_count", "full_fetched_object_serialized", | |
"in_reply_to_status_id_code", "in_reply_to_user_id_code", | |
"in_reply_to_username", "is_quote_status", "last_fetched_at", | |
"media_serialized", "profile_image", "retweet_count", "source", "text", | |
"tweeted_at", "twitter_id_code", "twitter_name", "twitter_uid", | |
"twitter_user_followers_count", "twitter_user_following_count", | |
"twitter_username", "updated_at", "user_is_verified") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "user_blocks" ("blocked_id", "blocker_id", "created_at", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "user_subscriptions" ("author_id", "created_at", | |
"subscriber_email", "subscriber_id", "updated_at", | |
"user_subscription_sourceable_id", "user_subscription_sourceable_type") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("checked_code_of_conduct", | |
"checked_terms_and_conditions", "confirmed_at", "created_at", "email", | |
"github_username", "name", "profile_image", "registered_at", | |
"saw_onboarding", "signup_cta_variant", "twitter_username", "updated_at", | |
"username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("confirmed_at", "created_at", "email", | |
"encrypted_password", "name", "profile_image", "registered_at", | |
"updated_at", "username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", | |
"invitation_created_at", "invitation_sent_at", "invitation_token", "name", | |
"profile_image", "registered", "updated_at", "username") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", "name", | |
"profile_image", "registered_at", "updated_at", "username") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users_gdpr_delete_requests" ("created_at", "email", | |
"updated_at", "user_id", "username") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "users_notification_settings" ("created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?) RETURNING "id" | |
- 'INSERT INTO "users_roles" ("role_id", "user_id") VALUES ($?, $?)' | |
- >- | |
INSERT INTO "users_settings" ("created_at", "updated_at", "user_id") VALUES | |
($?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", | |
"oauth_application_id", "source", "target_url", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", "source", | |
"target_url", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- RELEASE SAVEPOINT active_record_1 | |
- ROLLBACK TO SAVEPOINT active_record_1 | |
- SAVEPOINT active_record_1 | |
- >- | |
SELECT ( (reltuples / GREATEST(relpages, ?)) * (pg_relation_size(?) / | |
(GREATEST(current_setting(?)::integer, ?))) )::bigint AS count FROM pg_class | |
WHERE relname = ? AND relkind = ?; | |
- >- | |
SELECT ((ts_headline(?, (coalesce("comments"."body_markdown"::text, ?)), | |
(to_tsquery(?, ? || ? || ? || ?)), ?))) AS pg_search_highlight, comments.*, | |
COALESCE(articles.published, ?) AS commentable_published, | |
COALESCE(articles.title, ?) AS commentable_title, | |
"comments"."body_markdown", "comments"."commentable_id", | |
"comments"."commentable_type", "comments"."created_at", comments.id AS id, | |
"comments"."public_reactions_count", "comments"."score", | |
"comments"."user_id" FROM "comments" join articles on articles.id = | |
comments.commentable_id INNER JOIN (SELECT "comments"."id" AS pg_search_id, | |
(ts_rank((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))), | |
(to_tsquery(?, ? || ? || ? || ?)), ?)) AS rank FROM "comments" WHERE | |
((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))) @@ | |
(to_tsquery(?, ? || ? || ? || ?)))) AS pg_search_2b4244fb2663714ee72419 ON | |
"comments"."id" = pg_search_2b4244fb2663714ee72419.pg_search_id WHERE | |
"comments"."deleted" = $? AND "comments"."hidden_by_commentable_user" = $? | |
AND "comments"."commentable_type" = $? AND "articles"."published" = $? ORDER | |
BY "comments"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "api_secrets" WHERE "api_secrets"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" | |
IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."canonical_url" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND ("articles"."featured" = $? OR "articles"."score" >= | |
$?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."organization_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? AND "articles"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" IS ? AND | |
"articles"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "articles" WHERE "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? AND "badges"."id" | |
!= $? LIMIT $? | |
- SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "banished_users" WHERE "banished_users"."username" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."id" != $? AND "broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."id" != $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" INNER JOIN "chat_channel_memberships" | |
ON "chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."slug" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? AND | |
"chat_channels"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."classified_listing_category_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "collections" WHERE "collections"."slug" = $? AND | |
"collections"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."ancestry" = ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" = $? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" IS ? AND | |
"comments"."commentable_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" = $? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" IS ? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at < ?) LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."id" != $? AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "devices" WHERE "devices"."token" = $? AND | |
"devices"."user_id" = $? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "devices" WHERE "devices"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "discussion_locks" WHERE | |
"discussion_locks"."article_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "feedback_messages" WHERE | |
"feedback_messages"."reporter_id" = $? AND | |
"feedback_messages"."reported_url" = $? AND | |
"feedback_messages"."feedback_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? AND "github_repos"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? AND | |
"github_repos"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? AND | |
"html_variants"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "mentions" WHERE "mentions"."mentionable_id" = $? AND | |
"mentions"."mentionable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "mentions" WHERE "mentions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."id" != $? AND "navigation_links"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."notifiable_id" = | |
$? AND "notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."organization_id" IS ? AND | |
"notifications"."notifiable_id" = $? AND "notifications"."notifiable_type" = | |
$? AND "notifications"."action" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."token" = $? AND "oauth_access_tokens"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."id" != $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) AND "organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" = $? AND | |
"organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" IS ? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."slug" = $? LIMIT | |
$? | |
- SELECT ? AS one FROM "pages" WHERE "pages"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcast_ownerships" WHERE | |
"podcast_ownerships"."podcast_id" = $? AND "podcast_ownerships"."user_id" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_skips" WHERE "poll_skips"."poll_id" = $? AND | |
"poll_skips"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? AND | |
"poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
AND "poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? AND "profile_field_groups"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) AND "profile_fields"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? AND | |
"profiles"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "rating_votes" WHERE "rating_votes"."user_id" = $? AND | |
"rating_votes"."article_id" = $? AND "rating_votes"."context" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."category" = $? AND (?=? | |
AND ("reactions"."reactable_type" = $? OR "reactions"."reactable_type" = $?) | |
OR "reactions"."reactable_type" = $? AND "reactions"."user_id" = $?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? AND | |
"reactions"."status" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."id" != $? AND "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" IS ? AND | |
"reactions"."reactable_type" = $? AND "reactions"."reactable_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."id" != $? AND | |
"response_templates"."user_id" = $? AND "response_templates"."type_of" = $? | |
AND "response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" = $? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" IS ? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND "roles"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."organization_id" = | |
$? AND (level IN (?,?,?) AND expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."sponsorable_id" IS | |
? AND "sponsorships"."level" = $? AND (expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "taggings" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = $? AND | |
"taggings"."context" = $? AND "taggings"."tagger_id" IS ? AND | |
"taggings"."tagger_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" INNER JOIN "roles" ON "roles".resource_type IN | |
(?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? AND "tags"."id" != $? | |
LIMIT $? | |
- SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? AND | |
"user_blocks"."blocker_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? AND | |
"user_blocks"."blocked_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."subscriber_email" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? AND "users"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "organization_memberships" ON | |
"users"."id" = "organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON "users"."id" = | |
"users_roles"."user_id" WHERE "users_roles"."role_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE ((((roles.name = ?) AND (roles.resource_type | |
IS ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type = ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) | |
AND (roles.resource_type = ?) AND (roles.resource_id = ?)))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."email") = LOWER($?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) AND | |
"users"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE "users"."email" = $? AND | |
"users"."registered" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."github_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."twitter_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users_gdpr_delete_requests" LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users_roles" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "webhook_endpoints" WHERE | |
"webhook_endpoints"."target_url" = $? LIMIT $? | |
- >- | |
SELECT AVG("articles"."score") FROM "articles" WHERE "articles"."score" >= | |
$? | |
- SELECT AVG("users"."articles_count") FROM "users" WHERE (articles_count > ?) | |
- SELECT AVG("users"."articles_count") FROM "users" | |
- >- | |
SELECT AVG("users"."comments_count") FROM "users" WHERE | |
"users"."comments_count" = $? | |
- SELECT AVG("users"."comments_count") FROM "users" | |
- >- | |
SELECT AVG(time_tracked_in_seconds) FROM "page_views" WHERE | |
"page_views"."article_id" = $? AND "page_views"."user_id" IS NOT ? LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE ?=? AND "comments"."commentable_type" = $? AND (score > ?) | |
AND "comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) AND | |
"comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."user_id" = $? AND (created_at > ?) GROUP BY | |
DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE ?=? GROUP BY "page_views"."domain" ORDER BY | |
"count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE "page_views"."article_id" = $? GROUP BY | |
"page_views"."domain" ORDER BY "count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "podcasts"."id" AS podcasts_id FROM "podcasts" | |
LEFT OUTER JOIN "podcast_episodes" ON "podcast_episodes"."podcast_id" = | |
"podcasts"."id" GROUP BY "podcasts"."id" | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (public_reactions_count > ? OR | |
comments_count > ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
AND (featured_number > ?) ORDER BY RANDOM() LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
(public_reactions_count > ? OR comments_count > ?) AND "articles"."id" != $? | |
AND "articles"."user_id" != $? AND (featured_number > ?) ORDER BY RANDOM() | |
LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM "ahoy_messages" WHERE "ahoy_messages"."to" = $? AND | |
(sent_at > ?) | |
- SELECT COUNT(*) FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (score >= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."collection_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? | |
- SELECT COUNT(*) FROM "audit_logs" WHERE "audit_logs"."category" = $? | |
- SELECT COUNT(*) FROM "classified_listing_categories" | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? | |
- SELECT COUNT(*) FROM "classified_listings" | |
- SELECT COUNT(*) FROM "collections" WHERE "collections"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ?=? AND "comments"."commentable_type" | |
= $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."created_at" >= $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."deleted" = $? | |
- SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? | |
- SELECT COUNT(*) FROM "comments" | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? | |
- SELECT COUNT(*) FROM "devices" WHERE "devices"."consumer_app_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "display_ad_events" WHERE | |
"display_ad_events"."display_ad_id" = $? AND "display_ad_events"."category" | |
= $? | |
- >- | |
SELECT COUNT(*) FROM "display_ads" INNER JOIN "organizations" ON | |
"organizations"."id" = "display_ads"."organization_id" | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE "feedback_messages"."status" | |
= $? AND "feedback_messages"."feedback_type" = $? | |
- SELECT COUNT(*) FROM "feedback_messages" | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."blocked" = $? AND | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."followable_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? AND "follows"."blocked" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_type" = $? | |
- SELECT COUNT(*) FROM "html_variant_successes" | |
- SELECT COUNT(*) FROM "html_variant_trials" | |
- >- | |
SELECT COUNT(*) FROM "html_variants" WHERE "html_variants"."published" = $? | |
AND "html_variants"."approved" = $? | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND ?=? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? AND "identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) AND "identities"."provider" IN ($?, $?, | |
$?, $?) | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? | |
- SELECT COUNT(*) FROM "messages" WHERE "messages"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."read" = $? | |
- >- | |
SELECT COUNT(*) FROM "organization_memberships" WHERE | |
"organization_memberships"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- SELECT COUNT(*) FROM "organizations" WHERE (name ILIKE ?) | |
- SELECT COUNT(*) FROM "organizations" | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."article_id" = $? | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."user_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? | |
AND "profile_pins"."profile_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."category" IN ($?, $?, | |
$?) | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" IN ($?, $?, $?, | |
$?, $?) | |
- SELECT COUNT(*) FROM "reactions" WHERE "reactions"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "response_templates" WHERE | |
"response_templates"."user_id" = $? | |
- SELECT COUNT(*) FROM "response_templates" | |
- >- | |
SELECT COUNT(*) FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?))) OR ((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type IS ?) AND (roles.resource_id IS ?))) | |
- SELECT COUNT(*) FROM "sponsorships" | |
- SELECT COUNT(*) FROM "tags" WHERE "tags"."supported" IS NOT ? | |
- >- | |
SELECT COUNT(*) FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) | |
- SELECT COUNT(*) FROM "users" WHERE "users"."registered" = $? | |
- SELECT COUNT(*) FROM "users" WHERE "users"."username" = $? | |
- SELECT COUNT(*) FROM "users_gdpr_delete_requests" | |
- >- | |
SELECT COUNT(*), COUNT(*) FILTER (WHERE category = ?), COUNT(*) FILTER | |
(WHERE category = ?), COUNT(*) FILTER (WHERE category = ?) FROM "reactions" | |
WHERE "reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? LIMIT | |
$? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) | |
- >- | |
SELECT DATE(created_at) AS date, COUNT(*) AS total, COUNT(*) FILTER (WHERE | |
category = ?) AS like, COUNT(*) FILTER (WHERE category = ?) AS readinglist, | |
COUNT(*) FILTER (WHERE category = ?) AS unicorn FROM "reactions" WHERE | |
"reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DATE(created_at) AS date, SUM(counts_for_number_of_views) AS total, | |
AVG(time_tracked_in_seconds) FILTER (WHERE user_id IS NOT ?) AS average FROM | |
"page_views" WHERE "page_views"."article_id" = $? AND | |
"page_views"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DISTINCT "classified_listings"."bumped_at" AS alias_0, | |
"classified_listings"."id" FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT DISTINCT "collections".* FROM "collections" INNER JOIN "articles" ON | |
"articles"."collection_id" = "collections"."id" WHERE | |
"collections"."user_id" = $? ORDER BY "collections"."created_at" DESC | |
- >- | |
SELECT DISTINCT "github_repos".* FROM "github_repos" WHERE | |
"github_repos"."user_id" = $? AND "github_repos"."featured" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."organization_id" = $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? | |
- >- | |
SELECT SUM("comments"."score") FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT SUM("organizations"."unspent_credits_count") FROM "organizations" | |
INNER JOIN "organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? AND | |
"page_views"."created_at" >= $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? | |
- >- | |
SELECT SUM("reactions"."points") FROM "reactions" WHERE | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? | |
- SELECT "ahoy_events".* FROM "ahoy_events" WHERE "ahoy_events"."user_id" = $? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? ORDER BY "ahoy_messages"."sent_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? | |
- SELECT "ahoy_visits".* FROM "ahoy_visits" WHERE "ahoy_visits"."user_id" = $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."secret" = $? | |
LIMIT $? | |
- SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_09eac80" ON "article_taggings_09eac80"."taggable_id" = | |
"articles"."id" AND "article_taggings_09eac80"."taggable_type" = ? AND | |
"article_taggings_09eac80"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1e74a1f" ON "article_taggings_1e74a1f"."taggable_id" = | |
"articles"."id" AND "article_taggings_1e74a1f"."taggable_type" = ? AND | |
"article_taggings_1e74a1f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_637d1f5" ON "article_taggings_637d1f5"."taggable_id" = | |
"articles"."id" AND "article_taggings_637d1f5"."taggable_type" = ? AND | |
"article_taggings_637d1f5"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_7f550a9" ON "article_taggings_7f550a9"."taggable_id" = | |
"articles"."id" AND "article_taggings_7f550a9"."taggable_type" = ? AND | |
"article_taggings_7f550a9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_9810c56" ON "article_taggings_9810c56"."taggable_id" = | |
"articles"."id" AND "article_taggings_9810c56"."taggable_type" = ? AND | |
"article_taggings_9810c56"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_99ac1b1" ON "article_taggings_99ac1b1"."taggable_id" = | |
"articles"."id" AND "article_taggings_99ac1b1"."taggable_type" = ? AND | |
"article_taggings_99ac1b1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_bb064b2" ON "article_taggings_bb064b2"."taggable_id" = | |
"articles"."id" AND "article_taggings_bb064b2"."taggable_type" = ? AND | |
"article_taggings_bb064b2"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
( (SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) ) "users") UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $?) ) "users") ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c0b137f" ON "article_taggings_c0b137f"."taggable_id" = | |
"articles"."id" AND "article_taggings_c0b137f"."taggable_type" = ? AND | |
"article_taggings_c0b137f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
( (SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) ) "users") UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $?) ) "users") ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c50267b" ON "article_taggings_c50267b"."taggable_id" = | |
"articles"."id" AND "article_taggings_c50267b"."taggable_type" = ? AND | |
"article_taggings_c50267b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_d252928" ON "article_taggings_d252928"."taggable_id" = | |
"articles"."id" AND "article_taggings_d252928"."taggable_type" = ? AND | |
"article_taggings_d252928"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e4e7619" ON "article_taggings_e4e7619"."taggable_id" = | |
"articles"."id" AND "article_taggings_e4e7619"."taggable_type" = ? AND | |
"article_taggings_e4e7619"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e7ca8de" ON "article_taggings_e7ca8de"."taggable_id" = | |
"articles"."id" AND "article_taggings_e7ca8de"."taggable_type" = ? AND | |
"article_taggings_e7ca8de"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ef68b39" ON "article_taggings_ef68b39"."taggable_id" = | |
"articles"."id" AND "article_taggings_ef68b39"."taggable_type" = ? AND | |
"article_taggings_ef68b39"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_f4ef75c" ON "article_taggings_f4ef75c"."taggable_id" = | |
"articles"."id" AND "article_taggings_f4ef75c"."taggable_type" = ? AND | |
"article_taggings_f4ef75c"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ffa6706" ON "article_taggings_ffa6706"."taggable_id" = | |
"articles"."id" AND "article_taggings_ffa6706"."taggable_type" = ? AND | |
"article_taggings_ffa6706"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- SELECT "articles".* FROM "articles" WHERE (cached_tag_list ~ ?) LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."collection_id" = $? | |
AND "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
COALESCE(crossposted_at, published_at) ASC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
ORDER BY "articles"."created_at" DESC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ? OR cached_tag_list ~ ? OR | |
cached_tag_list ~ ?) AND "articles"."user_id" != $? AND (score > ?) ORDER BY | |
"articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."published_at" | |
>= $? AND "articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."user_id" != $? | |
AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IS ? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" IS ? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."created_at" DESC | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."id" ASC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."video_code" = $? LIMIT | |
$? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS | |
rank FROM "articles" WHERE (("articles"."reading_list_document") @@ | |
(to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? AND "articles"."published_at" >= $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY hotness_score DESC, comments_count | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? | |
ORDER BY "reactions"."created_at" DESC) reactions ON reactions.reactable_id | |
= articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" ASC | |
- SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS | |
rank FROM "articles" WHERE (("articles"."reading_list_document") @@ | |
(to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? AND | |
"articles"."published_at" >= $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY hotness_score | |
DESC, comments_count DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND ("articles"."featured" = $? OR | |
"articles"."score" >= $?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."organization_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND "articles"."approved" = $? ORDER BY | |
"articles"."featured_number" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count < ? AND featured_number > ? AND score > ?) LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count > ? AND public_reactions_count < ? AND | |
featured_number > ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND (published_at | |
> ?) ORDER BY "articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?))) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND "articles"."id" NOT IN (SELECT | |
"taggings"."taggable_id" FROM "taggings" INNER JOIN "tags" ON | |
"taggings"."tag_id" = "tags"."id" AND "taggings"."taggable_type" = ? AND | |
("tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."collection_id" = $? ORDER BY "articles"."published_at" ASC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."featured" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?)) ORDER BY "articles"."public_reactions_count" | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."user_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC, "articles"."created_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC, | |
"articles"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? | |
ORDER BY "articles"."published_at" DESC, "articles"."created_at" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds", "articles"."video_source_url" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."last_comment_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND (published_at > ? | |
AND published_at < ? AND score > ?) | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? AND (cached_tag_list ~ | |
?) ORDER BY "articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? ORDER BY | |
"articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."comments_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) ORDER | |
BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY last_comment_at | |
DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) AND | |
(cached_tag_list ~ ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "articles"."public_reactions_count", | |
"articles"."cached_tag_list", "articles"."main_image", | |
"articles"."main_image_background_hex_color", "articles"."updated_at", | |
"articles"."boost_states", "articles"."video", "articles"."user_id", | |
"articles"."organization_id", "articles"."video_source_url", | |
"articles"."video_code", "articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", "articles"."social_image", | |
"articles"."published_from_feed", "articles"."crossposted_at", | |
"articles"."published_at", "articles"."featured_number", | |
"articles"."created_at", "articles"."body_markdown", | |
"articles"."email_digest_eligible", "articles"."processed_html", | |
"articles"."co_author_ids" FROM "articles" WHERE ("articles"."published" = | |
$? AND (published_at <= ?) OR "articles"."published_from_feed" = $?) AND | |
"articles"."featured" = $? AND (featured_number > ?) ORDER BY | |
"articles"."featured_number" DESC | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "articles"."public_reactions_count", | |
"articles"."cached_tag_list", "articles"."main_image", | |
"articles"."main_image_background_hex_color", "articles"."updated_at", | |
"articles"."boost_states", "articles"."video", "articles"."user_id", | |
"articles"."organization_id", "articles"."video_source_url", | |
"articles"."video_code", "articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", "articles"."social_image", | |
"articles"."published_from_feed", "articles"."crossposted_at", | |
"articles"."published_at", "articles"."featured_number", | |
"articles"."created_at", "articles"."body_markdown", | |
"articles"."email_digest_eligible", "articles"."processed_html", | |
"articles"."co_author_ids" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (score >= ?) ORDER BY "articles"."hotness_score" | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (cached_tag_list ~ ? | |
OR cached_tag_list ~ ?) AND "articles"."id" != $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (cached_tag_list ~ | |
?) AND "articles"."id" != $? ORDER BY "articles"."published_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) AND ?=? AND "articles"."main_image" IS NOT ? ORDER BY | |
"articles"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) AND ?=? ORDER BY "articles"."score" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) ORDER BY "articles"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score >= ? OR featured = ?) AND "articles"."main_image" IS NOT ? ORDER BY | |
"articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score >= ? OR featured = ?) ORDER BY "articles"."hotness_score" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (comments_count > ?) AND | |
"articles"."id" != $? AND "articles"."user_id" != $? AND (featured_number > | |
?) ORDER BY RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (public_reactions_count > ? OR | |
comments_count > ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
AND (featured_number > ?) ORDER BY RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) | |
AND (public_reactions_count > ? OR comments_count > ?) AND "articles"."id" | |
!= $? AND "articles"."user_id" != $? AND (featured_number > ?) ORDER BY | |
RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" IN (SELECT "profile_pins"."pinnable_id" FROM "profile_pins" | |
WHERE "profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = | |
$?) ORDER BY "articles"."published_at" DESC | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."score" >= $? AND ?=? ORDER BY "articles"."hotness_score" DESC | |
LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."score" >= $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND (cached_tag_list ~ ? OR cached_tag_list ~ ?) AND | |
"articles"."id" != $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND ?=? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND "articles"."id" != $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."slug" FROM "articles" WHERE "articles"."collection_id" = | |
$? AND "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
COALESCE(crossposted_at, published_at) ASC | |
- >- | |
SELECT "articles"."title", "articles"."user_id", "articles"."path" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ? AND score < ?) ORDER BY "articles"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? | |
ORDER BY "reactions"."created_at" DESC) reactions ON reactions.reactable_id | |
= articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND EXISTS (SELECT * FROM "taggings" WHERE | |
"taggings"."taggable_id" = "articles"."id" AND "taggings"."taggable_type" = | |
? AND "taggings"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
("tags"."name" LIKE ? ESCAPE ?))) AND "articles"."score" >= $? AND | |
"articles"."published_at" >= $? | |
- >- | |
SELECT "audit_logs".* FROM "audit_logs" WHERE "audit_logs"."category" = $? | |
ORDER BY "audit_logs"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."id" = $? LIMIT $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? ORDER BY "badge_achievements"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? | |
- >- | |
SELECT "badge_achievements"."badge_id" FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? | |
- SELECT "badges".* FROM "badges" ORDER BY "badges"."created_at" ASC | |
- SELECT "badges".* FROM "badges" ORDER BY "badges"."id" ASC LIMIT $? | |
- SELECT "badges".* FROM "badges" WHERE "badges"."id" = $? LIMIT $? | |
- SELECT "badges".* FROM "badges" WHERE "badges"."id" = $? | |
- >- | |
SELECT "badges".* FROM "badges" WHERE "badges"."id" IN (SELECT | |
"badge_achievements"."badge_id" FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $?) | |
- >- | |
SELECT "badges".* FROM "badges" WHERE "badges"."id" IN (SELECT | |
"tags"."badge_id" FROM "tags" WHERE "tags"."name" = $?) | |
- SELECT "badges".* FROM "badges" WHERE "badges"."slug" = $? LIMIT $? | |
- SELECT "badges".* FROM "badges" | |
- 'SELECT "badges"."title", "badges"."id" FROM "badges"' | |
- SELECT "broadcasts".* FROM "broadcasts" ORDER BY "broadcasts"."title" ASC | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."active" = $? AND | |
"broadcasts"."title" = $? LIMIT $? | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."id" = $? LIMIT | |
$? | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."type_of" = $? | |
AND "broadcasts"."active" = $? ORDER BY "broadcasts"."id" ASC LIMIT $? | |
- >- | |
SELECT "broadcasts"."id" FROM "broadcasts" WHERE "broadcasts"."type_of" = $? | |
AND "broadcasts"."active" = $? ORDER BY "broadcasts"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" ORDER BY | |
"chat_channel_memberships"."id" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."role" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."last_opened_at" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" IS ? AND | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? AND | |
"chat_channel_memberships"."chat_channel_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."chat_channel_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."has_unopened_messages" = $? AND | |
"chat_channel_memberships"."show_global_badge_notification" = $? AND | |
"chat_channel_memberships"."status" NOT IN ($?, $?) ORDER BY | |
"chat_channel_memberships"."updated_at" DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."updated_at" DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY created_at DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" IS ? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships"."chat_channel_id" FROM | |
"chat_channel_memberships" LEFT OUTER JOIN "chat_channels" ON | |
"chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."has_unopened_messages" = $? AND | |
"chat_channel_memberships"."status" NOT IN ($?, $?) | |
- >- | |
SELECT "chat_channel_memberships"."chat_channel_id" FROM | |
"chat_channel_memberships" LEFT OUTER JOIN "chat_channels" ON | |
"chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."discoverable" | |
= $? AND "chat_channel_memberships"."role" = $? | |
- >- | |
SELECT "chat_channel_memberships"."id" FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "chat_channel_memberships"."id", | |
"chat_channel_memberships"."user_id", | |
"chat_channel_memberships"."last_opened_at" FROM "chat_channel_memberships" | |
WHERE "chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."last_opened_at" DESC | |
- >- | |
SELECT "chat_channel_memberships"."last_opened_at" FROM | |
"chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND (channel_name LIKE ?) LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."channel_type" | |
= $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."slug" IN ($?, | |
$?) AND "chat_channels"."channel_type" = $? ORDER BY "chat_channels"."id" | |
ASC LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? ORDER BY "chat_channels"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE | |
"chat_channels"."channel_name" = $? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" = | |
$? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" IN | |
($?, $?) | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."slug" = | |
$? LIMIT $? | |
- >- | |
SELECT "chat_channels"."id" AS t0_r0, "chat_channels"."channel_name" AS | |
t0_r1, "chat_channels"."channel_type" AS t0_r2, "chat_channels"."created_at" | |
AS t0_r3, "chat_channels"."description" AS t0_r4, | |
"chat_channels"."discoverable" AS t0_r5, "chat_channels"."last_message_at" | |
AS t0_r6, "chat_channels"."slug" AS t0_r7, "chat_channels"."status" AS | |
t0_r8, "chat_channels"."updated_at" AS t0_r9, | |
"chat_channel_memberships"."id" AS t1_r0, | |
"chat_channel_memberships"."chat_channel_id" AS t1_r1, | |
"chat_channel_memberships"."created_at" AS t1_r2, | |
"chat_channel_memberships"."has_unopened_messages" AS t1_r3, | |
"chat_channel_memberships"."last_opened_at" AS t1_r4, | |
"chat_channel_memberships"."role" AS t1_r5, | |
"chat_channel_memberships"."show_global_badge_notification" AS t1_r6, | |
"chat_channel_memberships"."status" AS t1_r7, | |
"chat_channel_memberships"."updated_at" AS t1_r8, | |
"chat_channel_memberships"."user_id" AS t1_r9 FROM "chat_channels" LEFT | |
OUTER JOIN "chat_channel_memberships" ON | |
"chat_channel_memberships"."chat_channel_id" = "chat_channels"."id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."role" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "chat_channels"."id", "chat_channels"."description", | |
"chat_channels"."channel_name" FROM "chat_channels" WHERE | |
"chat_channels"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" ORDER BY | |
"classified_listing_categories"."id" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" = | |
$? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" | |
IN ($?, $?) | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" | |
- >- | |
SELECT "classified_listing_categories"."id" FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."slug" | |
= $? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories"."id", | |
"classified_listing_categories"."name", | |
"classified_listing_categories"."cost" FROM "classified_listing_categories" | |
- >- | |
SELECT "classified_listing_categories"."slug", | |
"classified_listing_categories"."name" FROM "classified_listing_categories" | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."id" = $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? AND "classified_listings"."slug" = $? | |
LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."slug" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? AND | |
"classified_listings"."contact_via_connect" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? | |
- >- | |
SELECT "classified_listings"."id" AS t0_r0, | |
"classified_listings"."body_markdown" AS t0_r1, | |
"classified_listings"."bumped_at" AS t0_r2, | |
"classified_listings"."cached_tag_list" AS t0_r3, | |
"classified_listings"."classified_listing_category_id" AS t0_r4, | |
"classified_listings"."contact_via_connect" AS t0_r5, | |
"classified_listings"."created_at" AS t0_r6, | |
"classified_listings"."expires_at" AS t0_r7, | |
"classified_listings"."location" AS t0_r8, | |
"classified_listings"."organization_id" AS t0_r9, | |
"classified_listings"."originally_published_at" AS t0_r10, | |
"classified_listings"."processed_html" AS t0_r11, | |
"classified_listings"."published" AS t0_r12, "classified_listings"."slug" AS | |
t0_r13, "classified_listings"."title" AS t0_r14, | |
"classified_listings"."updated_at" AS t0_r15, | |
"classified_listings"."user_id" AS t0_r16, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, | |
"classified_listing_categories"."id" AS t2_r0, | |
"classified_listing_categories"."cost" AS t2_r1, | |
"classified_listing_categories"."created_at" AS t2_r2, | |
"classified_listing_categories"."name" AS t2_r3, | |
"classified_listing_categories"."rules" AS t2_r4, | |
"classified_listing_categories"."slug" AS t2_r5, | |
"classified_listing_categories"."social_preview_color" AS t2_r6, | |
"classified_listing_categories"."social_preview_description" AS t2_r7, | |
"classified_listing_categories"."updated_at" AS t2_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."body_markdown", | |
"classified_listings"."bumped_at", "classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."contact_via_connect", | |
"classified_listings"."expires_at", "classified_listings"."organization_id", | |
"classified_listings"."originally_published_at", | |
"classified_listings"."location", "classified_listings"."processed_html", | |
"classified_listings"."published", "classified_listings"."slug", | |
"classified_listings"."title", "classified_listings"."user_id" FROM | |
"classified_listings" WHERE "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."body_markdown", | |
"classified_listings"."bumped_at", "classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."contact_via_connect", | |
"classified_listings"."expires_at", "classified_listings"."organization_id", | |
"classified_listings"."originally_published_at", | |
"classified_listings"."location", "classified_listings"."processed_html", | |
"classified_listings"."published", "classified_listings"."slug", | |
"classified_listings"."title", "classified_listings"."user_id", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"classified_listing_categories"."id" AS t3_r0, | |
"classified_listing_categories"."cost" AS t3_r1, | |
"classified_listing_categories"."created_at" AS t3_r2, | |
"classified_listing_categories"."name" AS t3_r3, | |
"classified_listing_categories"."rules" AS t3_r4, | |
"classified_listing_categories"."slug" AS t3_r5, | |
"classified_listing_categories"."social_preview_color" AS t3_r6, | |
"classified_listing_categories"."social_preview_description" AS t3_r7, | |
"classified_listing_categories"."updated_at" AS t3_r8 FROM | |
"classified_listings" LEFT OUTER JOIN "users" ON "users"."id" = | |
"classified_listings"."user_id" LEFT OUTER JOIN "organizations" ON | |
"organizations"."id" = "classified_listings"."organization_id" LEFT OUTER | |
JOIN "classified_listing_categories" ON "classified_listing_categories"."id" | |
= "classified_listings"."classified_listing_category_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."organization_id" = | |
$? AND "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."published" = $? AND | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."published" = $? | |
ORDER BY "classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"taggings"."id" AS t3_r0, "taggings"."context" AS t3_r1, | |
"taggings"."created_at" AS t3_r2, "taggings"."tag_id" AS t3_r3, | |
"taggings"."taggable_id" AS t3_r4, "taggings"."taggable_type" AS t3_r5, | |
"taggings"."tagger_id" AS t3_r6, "taggings"."tagger_type" AS t3_r7, | |
"classified_listing_categories"."id" AS t4_r0, | |
"classified_listing_categories"."cost" AS t4_r1, | |
"classified_listing_categories"."created_at" AS t4_r2, | |
"classified_listing_categories"."name" AS t4_r3, | |
"classified_listing_categories"."rules" AS t4_r4, | |
"classified_listing_categories"."slug" AS t4_r5, | |
"classified_listing_categories"."social_preview_color" AS t4_r6, | |
"classified_listing_categories"."social_preview_description" AS t4_r7, | |
"classified_listing_categories"."updated_at" AS t4_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? AND "classified_listings"."id" | |
IN ($?, $?) ORDER BY "classified_listings"."bumped_at" DESC | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"taggings"."id" AS t3_r0, "taggings"."context" AS t3_r1, | |
"taggings"."created_at" AS t3_r2, "taggings"."tag_id" AS t3_r3, | |
"taggings"."taggable_id" AS t3_r4, "taggings"."taggable_type" AS t3_r5, | |
"taggings"."tagger_id" AS t3_r6, "taggings"."tagger_type" AS t3_r7, | |
"classified_listing_categories"."id" AS t4_r0, | |
"classified_listing_categories"."cost" AS t4_r1, | |
"classified_listing_categories"."created_at" AS t4_r2, | |
"classified_listing_categories"."name" AS t4_r3, | |
"classified_listing_categories"."rules" AS t4_r4, | |
"classified_listing_categories"."slug" AS t4_r5, | |
"classified_listing_categories"."social_preview_color" AS t4_r6, | |
"classified_listing_categories"."social_preview_description" AS t4_r7, | |
"classified_listing_categories"."updated_at" AS t4_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? AND "classified_listings"."id" | |
IN ($?, $?, $?) ORDER BY "classified_listings"."bumped_at" DESC | |
- >- | |
SELECT "classified_listings"."title", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."slug", "classified_listings"."bumped_at" FROM | |
"classified_listings" WHERE "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? | |
- >- | |
SELECT "collections".* FROM "collections" WHERE "collections"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "collections".* FROM "collections" WHERE "collections"."slug" = $? | |
AND "collections"."user_id" = $? LIMIT $? | |
- SELECT "collections".* FROM "collections" WHERE "collections"."user_id" = $? | |
- >- | |
SELECT "collections"."slug" FROM "collections" WHERE "collections"."user_id" | |
= $? | |
- >- | |
SELECT "comments".* FROM "comments" ORDER BY "comments"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- SELECT "comments".* FROM "comments" ORDER BY "comments"."id" ASC LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE (("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) OR "comments"."id" = ?) | |
- >- | |
SELECT "comments".* FROM "comments" WHERE ("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."ancestry" = ? AND | |
"comments"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."body_markdown" = $? | |
AND "comments"."commentable_id" = $? AND "comments"."ancestry" IS ? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? AND | |
"comments"."hidden_by_commentable_user" = $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? AND "comments"."score" >= $? AND | |
"comments"."ancestry" IS ? AND "comments"."hidden_by_commentable_user" = $? | |
AND "comments"."deleted" = $? ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY "comments"."id" ASC LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY "comments"."id" DESC LIMIT | |
$? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY score DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" = $? ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?) ORDER BY | |
"comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?) ORDER BY "comments"."score" DESC | |
- SELECT "comments".* FROM "comments" WHERE "comments"."id" = $? LIMIT $? | |
- SELECT "comments".* FROM "comments" WHERE "comments"."id" = $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (?) ORDER BY | |
"comments"."ancestry" ASC NULLS FIRST | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."user_id" = $? ORDER BY | |
"comments"."id" DESC LIMIT $? | |
- SELECT "comments".* FROM "comments" WHERE "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."body_markdown" FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."hidden_by_commentable_user" FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."id" FROM "comments" WHERE "comments"."commentable_id" = | |
$? AND "comments"."commentable_type" = $? | |
- SELECT "comments"."id" FROM "comments" WHERE "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."id", "comments"."processed_html", "comments"."user_id", | |
"comments"."ancestry", "comments"."deleted", | |
"comments"."hidden_by_commentable_user", "comments"."created_at" FROM | |
"comments" WHERE (("comments"."ancestry" LIKE ? OR "comments"."ancestry" = | |
?) OR "comments"."id" = ?) | |
- >- | |
SELECT "comments"."id", "comments"."processed_html", "comments"."user_id", | |
"comments"."ancestry", "comments"."deleted", | |
"comments"."hidden_by_commentable_user", "comments"."created_at" FROM | |
"comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."id", "comments"."user_id", "comments"."ancestry" FROM | |
"comments" WHERE "comments"."id" = $? LIMIT $? | |
- >- | |
SELECT "comments"."receive_notifications" FROM "comments" WHERE | |
(("comments"."ancestry" LIKE ? OR "comments"."ancestry" = ?) OR | |
"comments"."id" = ?) AND "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."user_id" FROM "comments" WHERE "comments"."id" IN (?) AND | |
"comments"."receive_notifications" = $? ORDER BY "comments"."ancestry" ASC | |
NULLS FIRST | |
- >- | |
SELECT "comments"."user_id" FROM "comments" WHERE | |
"comments"."receive_notifications" = $? | |
- SELECT "consumer_apps".* FROM "consumer_apps" LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" = $? LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" IS ? LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE "consumer_apps"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "consumer_apps"."platform" FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" = $? | |
- >- | |
SELECT "consumer_apps"."team_id", "consumer_apps"."app_bundle" FROM | |
"consumer_apps" WHERE "consumer_apps"."platform" = $? AND | |
"consumer_apps"."team_id" IS NOT ? ORDER BY "consumer_apps"."created_at" ASC | |
LIMIT $? | |
- SELECT "credits".* FROM "credits" WHERE "credits"."user_id" = $? | |
- >- | |
SELECT "credits"."purchase_id", "credits"."purchase_type", COUNT(*) AS cost, | |
MAX(spent_at) AS purchased_at FROM "credits" WHERE | |
"credits"."organization_id" = $? AND "credits"."spent" = $? GROUP BY | |
"credits"."purchase_id", "credits"."purchase_type" ORDER BY "purchased_at" | |
DESC | |
- >- | |
SELECT "credits"."purchase_id", "credits"."purchase_type", COUNT(*) AS cost, | |
MAX(spent_at) AS purchased_at FROM "credits" WHERE "credits"."user_id" = $? | |
AND "credits"."spent" = $? GROUP BY "credits"."purchase_id", | |
"credits"."purchase_type" ORDER BY "purchased_at" DESC | |
- >- | |
SELECT "custom_profile_fields".* FROM "custom_profile_fields" WHERE | |
"custom_profile_fields"."profile_id" = $? | |
- >- | |
SELECT "custom_profile_fields"."attribute_name" FROM "custom_profile_fields" | |
WHERE "custom_profile_fields"."profile_id" = $? | |
- >- | |
SELECT "data_update_scripts".* FROM "data_update_scripts" ORDER BY | |
"data_update_scripts"."run_at" DESC | |
- >- | |
SELECT "data_update_scripts".* FROM "data_update_scripts" WHERE | |
"data_update_scripts"."id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."consumer_app_id" = $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" = $? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" IS ? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" IS ? AND "devices"."platform" IS ? AND | |
"devices"."consumer_app_id" IS ? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? ORDER BY | |
"devices"."id" ASC LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."article_id" = $? LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."id" = $? LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."locking_user_id" = $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" ORDER BY | |
"display_ad_events"."id" DESC LIMIT $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" WHERE | |
"display_ad_events"."display_ad_id" = $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" WHERE | |
"display_ad_events"."user_id" = $? | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."approved" = | |
$? AND "display_ads"."published" = $? AND "display_ads"."placement_area" = | |
$? ORDER BY "display_ads"."success_rate" DESC LIMIT $? | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."approved" = | |
$? AND "display_ads"."published" = $? AND "display_ads"."placement_area" = | |
$? ORDER BY "display_ads"."success_rate" DESC | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "display_ads"."id" AS t0_r0, "display_ads"."approved" AS t0_r1, | |
"display_ads"."body_markdown" AS t0_r2, "display_ads"."clicks_count" AS | |
t0_r3, "display_ads"."created_at" AS t0_r4, | |
"display_ads"."impressions_count" AS t0_r5, "display_ads"."organization_id" | |
AS t0_r6, "display_ads"."placement_area" AS t0_r7, | |
"display_ads"."processed_html" AS t0_r8, "display_ads"."published" AS t0_r9, | |
"display_ads"."success_rate" AS t0_r10, "display_ads"."updated_at" AS | |
t0_r11, "organizations"."id" AS t1_r0, "organizations"."articles_count" AS | |
t1_r1, "organizations"."bg_color_hex" AS t1_r2, | |
"organizations"."company_size" AS t1_r3, "organizations"."created_at" AS | |
t1_r4, "organizations"."credits_count" AS t1_r5, | |
"organizations"."cta_body_markdown" AS t1_r6, | |
"organizations"."cta_button_text" AS t1_r7, "organizations"."cta_button_url" | |
AS t1_r8, "organizations"."cta_processed_html" AS t1_r9, | |
"organizations"."dark_nav_image" AS t1_r10, "organizations"."email" AS | |
t1_r11, "organizations"."github_username" AS t1_r12, | |
"organizations"."last_article_at" AS t1_r13, | |
"organizations"."latest_article_updated_at" AS t1_r14, | |
"organizations"."location" AS t1_r15, "organizations"."name" AS t1_r16, | |
"organizations"."nav_image" AS t1_r17, "organizations"."old_old_slug" AS | |
t1_r18, "organizations"."old_slug" AS t1_r19, | |
"organizations"."profile_image" AS t1_r20, | |
"organizations"."profile_updated_at" AS t1_r21, "organizations"."proof" AS | |
t1_r22, "organizations"."secret" AS t1_r23, "organizations"."slug" AS | |
t1_r24, "organizations"."spent_credits_count" AS t1_r25, | |
"organizations"."story" AS t1_r26, "organizations"."summary" AS t1_r27, | |
"organizations"."tag_line" AS t1_r28, "organizations"."tech_stack" AS | |
t1_r29, "organizations"."text_color_hex" AS t1_r30, | |
"organizations"."twitter_username" AS t1_r31, | |
"organizations"."unspent_credits_count" AS t1_r32, | |
"organizations"."updated_at" AS t1_r33, "organizations"."url" AS t1_r34 FROM | |
"display_ads" INNER JOIN "organizations" ON "organizations"."id" = | |
"display_ads"."organization_id" ORDER BY "display_ads"."id" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "email_authorizations".* FROM "email_authorizations" WHERE | |
"email_authorizations"."user_id" = $? AND | |
"email_authorizations"."verified_at" IS NOT ? ORDER BY | |
"email_authorizations"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "email_authorizations".* FROM "email_authorizations" WHERE | |
"email_authorizations"."user_id" = $? ORDER BY | |
"email_authorizations"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "events".* FROM "events" WHERE (starts_at < ?) AND | |
"events"."published" = $? | |
- >- | |
SELECT "events".* FROM "events" WHERE (starts_at > ?) AND | |
"events"."published" = $? | |
- SELECT "events".* FROM "events" WHERE "events"."id" = $? LIMIT $? | |
- SELECT "events".* FROM "events" WHERE "events"."slug" = $? LIMIT $? | |
- >- | |
SELECT "feedback_messages".* FROM "feedback_messages" ORDER BY | |
"feedback_messages"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "feedback_messages".* FROM "feedback_messages" WHERE | |
"feedback_messages"."id" = $? LIMIT $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."affected_id" = $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."reporter_id" = $? | |
- >- | |
SELECT "field_test_memberships".* FROM "field_test_memberships" WHERE | |
"field_test_memberships"."experiment" = $? AND | |
"field_test_memberships"."participant_type" = $? AND | |
"field_test_memberships"."participant_id" = $? LIMIT $? | |
- >- | |
SELECT "field_test_memberships".* FROM "field_test_memberships" WHERE | |
"field_test_memberships"."participant_id" = $? AND | |
"field_test_memberships"."participant_type" = $? | |
- >- | |
SELECT "flipper_features"."key" AS feature_key, "flipper_gates"."key", | |
"flipper_gates"."value" FROM "flipper_features" LEFT OUTER JOIN | |
"flipper_gates" ON "flipper_features"."key" = "flipper_gates"."feature_key" | |
- >- | |
SELECT "flipper_gates".* FROM "flipper_gates" WHERE | |
"flipper_gates"."feature_key" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? AND "follows"."blocked" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_id" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."id" ASC LIMIT $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? | |
- SELECT "follows".* FROM "follows" WHERE "follows"."id" = $? | |
- 'SELECT "follows".* FROM "follows" WHERE "follows"."id" IN ($?, $?)' | |
- >- | |
SELECT "follows"."followable_id" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? LIMIT $? | |
- >- | |
SELECT "follows"."followable_id" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT "follows"."followable_id", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type" FROM "follows" WHERE "follows"."follower_id" = | |
$? AND "follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."blocked" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."points" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."blocked" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."points" DESC | |
- >- | |
SELECT "follows"."id", "follows"."follower_id", "follows"."follower_type", | |
"follows"."created_at" FROM "follows" WHERE "follows"."followable_id" = $? | |
AND "follows"."followable_type" = $? ORDER BY "follows"."created_at" ASC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."follower_id", "follows"."follower_type", | |
"follows"."created_at" FROM "follows" WHERE "follows"."followable_id" = $? | |
AND "follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE ("github_repos"."user_id" | |
= $? AND "github_repos"."github_id_code" = $? OR "github_repos"."url" = $?) | |
ORDER BY "github_repos"."id" ASC LIMIT $? | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE "github_repos"."user_id" = | |
$? AND "github_repos"."featured" = $? ORDER BY | |
"github_repos"."stargazers_count" DESC, "github_repos"."name" ASC | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE "github_repos"."user_id" = | |
$? | |
- >- | |
SELECT "html_variant_successes".* FROM "html_variant_successes" WHERE | |
"html_variant_successes"."html_variant_id" = $? | |
- >- | |
SELECT "html_variant_trials".* FROM "html_variant_trials" WHERE | |
"html_variant_trials"."html_variant_id" = $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE "html_variants"."group" | |
= $? AND "html_variants"."approved" = $? AND "html_variants"."published" = | |
$? AND ("html_variants"."target_tag" = $? OR "html_variants"."target_tag" IS | |
?) ORDER BY "html_variants"."success_rate" DESC LIMIT $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE "html_variants"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE | |
"html_variants"."published" = $? AND "html_variants"."approved" = $? ORDER | |
BY "html_variants"."success_rate" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE | |
"html_variants"."user_id" = $? | |
- >- | |
SELECT "html_variants"."name", "html_variants"."html" FROM "html_variants" | |
WHERE "html_variants"."approved" = $? AND "html_variants"."published" = $? | |
AND "html_variants"."group" = $? AND "html_variants"."name" = $? LIMIT $? | |
- >- | |
SELECT "id", "user_id", "organization_id", "title", "slug", "body_markdown", | |
"cached_tag_list", "classified_listing_category_id", "processed_html", | |
"published" FROM ( (SELECT "classified_listings".* FROM | |
"classified_listings" WHERE "classified_listings"."published" = $?) UNION | |
(SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $?) ) "classified_listings" WHERE | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."id" = $? LIMIT | |
$? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" = $? LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" = $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" IN ($?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" IN ($?, $?, $?, $?) | |
- SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? AND "identities"."provider" = $? | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? AND "identities"."provider" IN ($?, $?) | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? | |
- >- | |
SELECT "identities"."token" FROM "identities" WHERE "identities"."user_id" = | |
$? AND "identities"."provider" = $? LIMIT $? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? AND ?=? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? AND "mentions"."user_id" != $? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? | |
- SELECT "mentions".* FROM "mentions" WHERE "mentions"."user_id" = $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."chat_channel_id" = $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."id" = $? LIMIT $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."user_id" = $? | |
- >- | |
SELECT "navigation_links".* FROM "navigation_links" ORDER BY | |
"navigation_links"."position" ASC, "navigation_links"."name" ASC | |
- >- | |
SELECT "navigation_links".* FROM "navigation_links" WHERE | |
"navigation_links"."id" = $? LIMIT $? | |
- >- | |
SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? ORDER BY "notes"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? ORDER BY | |
"notification_subscriptions"."id" ASC LIMIT $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? | |
- >- | |
SELECT "notification_subscriptions"."user_id" FROM | |
"notification_subscriptions" WHERE | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? AND | |
"notification_subscriptions"."config" = $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."notifiable_id" = $? AND "notifications"."notifiable_type" = | |
$? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."organization_id" = $? AND "notifications"."user_id" IS ? | |
AND ("notifications"."notifiable_type" = $? AND "notifications"."action" IS | |
? OR "notifications"."notifiable_type" = $?) ORDER BY | |
"notifications"."notified_at" DESC LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."organization_id" = $? AND "notifications"."user_id" IS ? | |
ORDER BY "notifications"."notified_at" DESC LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."user_id" = $? ORDER BY "notifications"."notified_at" DESC | |
LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."user_id" = $? | |
- >- | |
SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."token" = $? LIMIT $? | |
- >- | |
SELECT "oauth_applications".* FROM "oauth_applications" WHERE | |
"oauth_applications"."id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT "organization_memberships"."id" AS t0_r0, | |
"organization_memberships"."created_at" AS t0_r1, | |
"organization_memberships"."organization_id" AS t0_r2, | |
"organization_memberships"."type_of_user" AS t0_r3, | |
"organization_memberships"."updated_at" AS t0_r4, | |
"organization_memberships"."user_id" AS t0_r5, | |
"organization_memberships"."user_title" AS t0_r6, "organizations"."id" AS | |
t1_r0, "organizations"."articles_count" AS t1_r1, | |
"organizations"."bg_color_hex" AS t1_r2, "organizations"."company_size" AS | |
t1_r3, "organizations"."created_at" AS t1_r4, | |
"organizations"."credits_count" AS t1_r5, | |
"organizations"."cta_body_markdown" AS t1_r6, | |
"organizations"."cta_button_text" AS t1_r7, "organizations"."cta_button_url" | |
AS t1_r8, "organizations"."cta_processed_html" AS t1_r9, | |
"organizations"."dark_nav_image" AS t1_r10, "organizations"."email" AS | |
t1_r11, "organizations"."github_username" AS t1_r12, | |
"organizations"."last_article_at" AS t1_r13, | |
"organizations"."latest_article_updated_at" AS t1_r14, | |
"organizations"."location" AS t1_r15, "organizations"."name" AS t1_r16, | |
"organizations"."nav_image" AS t1_r17, "organizations"."old_old_slug" AS | |
t1_r18, "organizations"."old_slug" AS t1_r19, | |
"organizations"."profile_image" AS t1_r20, | |
"organizations"."profile_updated_at" AS t1_r21, "organizations"."proof" AS | |
t1_r22, "organizations"."secret" AS t1_r23, "organizations"."slug" AS | |
t1_r24, "organizations"."spent_credits_count" AS t1_r25, | |
"organizations"."story" AS t1_r26, "organizations"."summary" AS t1_r27, | |
"organizations"."tag_line" AS t1_r28, "organizations"."tech_stack" AS | |
t1_r29, "organizations"."text_color_hex" AS t1_r30, | |
"organizations"."twitter_username" AS t1_r31, | |
"organizations"."unspent_credits_count" AS t1_r32, | |
"organizations"."updated_at" AS t1_r33, "organizations"."url" AS t1_r34 FROM | |
"organization_memberships" INNER JOIN "organizations" ON | |
"organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? ORDER BY "organizations"."name" | |
ASC | |
- >- | |
SELECT "organization_memberships"."organization_id" FROM | |
"organization_memberships" WHERE "organization_memberships"."user_id" = $? | |
AND "organization_memberships"."type_of_user" = $? | |
- >- | |
SELECT "organization_memberships"."organization_id" FROM | |
"organization_memberships" WHERE "organization_memberships"."user_id" = $? | |
AND "organization_memberships"."type_of_user" IN ($?, $?) | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? AND | |
"organizations"."id" = $? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
ORDER BY "organizations"."id" ASC LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? ORDER BY "organizations"."name" | |
ASC | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT "organizations".* FROM "organizations" ORDER BY | |
"organizations"."name" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (name ILIKE ?) ORDER BY | |
"organizations"."name" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (old_slug = ? OR | |
old_old_slug = ?) LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (organizations.id = ?) | |
ORDER BY "organizations"."id" ASC LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" = | |
$? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" IS | |
? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."secret" | |
= $? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."slug" = | |
$? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."slug" | |
IS ? LIMIT $? | |
- >- | |
SELECT "organizations"."id", "organizations"."profile_image" FROM | |
"organizations" WHERE "organizations"."slug" = $? LIMIT $? | |
- >- | |
SELECT "organizations"."id", "organizations"."slug", "organizations"."name", | |
"organizations"."summary", "organizations"."twitter_username", | |
"organizations"."github_username", "organizations"."url", | |
"organizations"."location", "organizations"."created_at", | |
"organizations"."profile_image", "organizations"."tech_stack", | |
"organizations"."tag_line", "organizations"."story" FROM "organizations" | |
WHERE "organizations"."slug" = $? LIMIT $? | |
- >- | |
SELECT "page_views".* FROM "page_views" ORDER BY "page_views"."id" DESC | |
LIMIT $? | |
- >- | |
SELECT "page_views".* FROM "page_views" WHERE "page_views"."article_id" = $? | |
AND "page_views"."user_id" = $? ORDER BY "page_views"."created_at" DESC | |
LIMIT $? | |
- SELECT "page_views".* FROM "page_views" WHERE "page_views"."article_id" = $? | |
- >- | |
SELECT "page_views".* FROM "page_views" WHERE "page_views"."user_id" = $? | |
ORDER BY "page_views"."id" DESC LIMIT $? | |
- SELECT "pages".* FROM "pages" ORDER BY "pages"."created_at" DESC | |
- SELECT "pages".* FROM "pages" WHERE "pages"."landing_page" = $? LIMIT $? | |
- >- | |
SELECT "pages".* FROM "pages" WHERE "pages"."slug" = $? AND | |
"pages"."is_top_level_path" = $? LIMIT $? | |
- SELECT "pages".* FROM "pages" WHERE "pages"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episode_appearances".* FROM "podcast_episode_appearances" | |
WHERE "podcast_episode_appearances"."user_id" = $? | |
- >- | |
SELECT "podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."id", "podcast_episodes"."podcast_id", | |
"podcast_episodes"."processed_html", "podcast_episodes"."published_at", | |
"podcast_episodes"."quote", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."website_url", "podcast_episodes"."id" AS t0_r0, | |
"podcasts"."id" AS t1_r0, "podcasts"."android_url" AS t1_r1, | |
"podcasts"."created_at" AS t1_r2, "podcasts"."creator_id" AS t1_r3, | |
"podcasts"."description" AS t1_r4, "podcasts"."feed_url" AS t1_r5, | |
"podcasts"."image" AS t1_r6, "podcasts"."itunes_url" AS t1_r7, | |
"podcasts"."main_color_hex" AS t1_r8, "podcasts"."overcast_url" AS t1_r9, | |
"podcasts"."pattern_image" AS t1_r10, "podcasts"."published" AS t1_r11, | |
"podcasts"."reachable" AS t1_r12, "podcasts"."slug" AS t1_r13, | |
"podcasts"."soundcloud_url" AS t1_r14, "podcasts"."status_notice" AS t1_r15, | |
"podcasts"."title" AS t1_r16, "podcasts"."twitter_username" AS t1_r17, | |
"podcasts"."unique_website_url?" AS t1_r18, "podcasts"."updated_at" AS | |
t1_r19, "podcasts"."website_url" AS t1_r20 FROM "podcast_episodes" LEFT | |
OUTER JOIN "podcasts" ON "podcasts"."id" = "podcast_episodes"."podcast_id" | |
INNER JOIN (SELECT "podcast_episodes"."id" AS pg_search_id, | |
(ts_rank((to_tsvector(?, coalesce("podcast_episodes"."body"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."subtitle"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."title"::text, ?))), | |
(to_tsquery(?, ? || ? || ? || ?)), ?)) AS rank FROM "podcast_episodes" WHERE | |
((to_tsvector(?, coalesce("podcast_episodes"."body"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."subtitle"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."title"::text, ?))) @@ | |
(to_tsquery(?, ? || ? || ? || ?)))) AS pg_search_1847632507b7f58950c333 ON | |
"podcast_episodes"."id" = pg_search_1847632507b7f58950c333.pg_search_id | |
WHERE "podcast_episodes"."reachable" = $? AND | |
"podcast_episodes"."podcast_id" IN (SELECT "podcasts"."id" FROM "podcasts" | |
WHERE "podcasts"."published" = $?) LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."id" AS t0_r0, | |
"podcast_episodes"."any_comments_hidden" AS t0_r1, "podcast_episodes"."body" | |
AS t0_r2, "podcast_episodes"."comments_count" AS t0_r3, | |
"podcast_episodes"."created_at" AS t0_r4, "podcast_episodes"."guid" AS | |
t0_r5, "podcast_episodes"."https" AS t0_r6, "podcast_episodes"."image" AS | |
t0_r7, "podcast_episodes"."itunes_url" AS t0_r8, | |
"podcast_episodes"."media_url" AS t0_r9, "podcast_episodes"."podcast_id" AS | |
t0_r10, "podcast_episodes"."processed_html" AS t0_r11, | |
"podcast_episodes"."published_at" AS t0_r12, "podcast_episodes"."quote" AS | |
t0_r13, "podcast_episodes"."reachable" AS t0_r14, | |
"podcast_episodes"."reactions_count" AS t0_r15, "podcast_episodes"."slug" AS | |
t0_r16, "podcast_episodes"."social_image" AS t0_r17, | |
"podcast_episodes"."status_notice" AS t0_r18, "podcast_episodes"."subtitle" | |
AS t0_r19, "podcast_episodes"."summary" AS t0_r20, | |
"podcast_episodes"."title" AS t0_r21, "podcast_episodes"."updated_at" AS | |
t0_r22, "podcast_episodes"."website_url" AS t0_r23, "podcasts"."id" AS | |
t1_r0, "podcasts"."android_url" AS t1_r1, "podcasts"."created_at" AS t1_r2, | |
"podcasts"."creator_id" AS t1_r3, "podcasts"."description" AS t1_r4, | |
"podcasts"."feed_url" AS t1_r5, "podcasts"."image" AS t1_r6, | |
"podcasts"."itunes_url" AS t1_r7, "podcasts"."main_color_hex" AS t1_r8, | |
"podcasts"."overcast_url" AS t1_r9, "podcasts"."pattern_image" AS t1_r10, | |
"podcasts"."published" AS t1_r11, "podcasts"."reachable" AS t1_r12, | |
"podcasts"."slug" AS t1_r13, "podcasts"."soundcloud_url" AS t1_r14, | |
"podcasts"."status_notice" AS t1_r15, "podcasts"."title" AS t1_r16, | |
"podcasts"."twitter_username" AS t1_r17, "podcasts"."unique_website_url?" AS | |
t1_r18, "podcasts"."updated_at" AS t1_r19, "podcasts"."website_url" AS | |
t1_r20 FROM "podcast_episodes" INNER JOIN "podcasts" ON "podcasts"."id" = | |
"podcast_episodes"."podcast_id" WHERE "podcast_episodes"."reachable" = $? | |
AND "podcasts"."published" = $? ORDER BY "podcast_episodes"."published_at" | |
DESC LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" INNER JOIN "podcasts" ON "podcasts"."id" = | |
"podcast_episodes"."podcast_id" WHERE "podcast_episodes"."podcast_id" = $? | |
AND "podcast_episodes"."reachable" = $? AND "podcasts"."published" = $? AND | |
"podcast_episodes"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."id" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."podcast_id" = $? AND | |
"podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."slug", | |
"podcast_episodes"."title", "podcast_episodes"."podcast_id" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."podcast_id" = $? AND | |
"podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."slug", | |
"podcast_episodes"."title", "podcast_episodes"."podcast_id" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."slug", "podcast_episodes"."title", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."image" FROM | |
"podcast_episodes" WHERE (published_at > ?) ORDER BY | |
"podcast_episodes"."published_at" DESC | |
- >- | |
SELECT "podcast_ownerships".* FROM "podcast_ownerships" WHERE | |
"podcast_ownerships"."user_id" = $? | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" = $? LIMIT $? | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" = $? | |
- >- | |
SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" IN (SELECT | |
"podcast_episodes"."podcast_id" FROM "podcast_episodes" WHERE | |
"podcast_episodes"."reachable" = $?) AND "podcasts"."published" = $? AND | |
"podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" IN (SELECT | |
"podcast_episodes"."podcast_id" FROM "podcast_episodes" WHERE | |
"podcast_episodes"."reachable" = $?) AND "podcasts"."published" = $? ORDER | |
BY "podcasts"."title" ASC | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT "poll_options".* FROM "poll_options" WHERE "poll_options"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "poll_options"."id", "poll_options"."poll_votes_count" FROM | |
"poll_options" WHERE "poll_options"."poll_id" = $? | |
- >- | |
SELECT "poll_skips".* FROM "poll_skips" WHERE "poll_skips"."poll_id" = $? | |
AND "poll_skips"."user_id" = $? ORDER BY "poll_skips"."id" ASC LIMIT $? | |
- SELECT "poll_skips".* FROM "poll_skips" WHERE "poll_skips"."user_id" = $? | |
- >- | |
SELECT "poll_votes".* FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? | |
AND "poll_votes"."user_id" = $? ORDER BY "poll_votes"."id" ASC LIMIT $? | |
- SELECT "poll_votes".* FROM "poll_votes" WHERE "poll_votes"."user_id" = $? | |
- SELECT "polls".* FROM "polls" WHERE "polls"."article_id" = $? | |
- SELECT "polls".* FROM "polls" WHERE "polls"."id" = $? LIMIT $? | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" ORDER BY | |
"profile_field_groups"."name" ASC | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" WHERE | |
"profile_field_groups"."id" = $? LIMIT $? | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? LIMIT $? | |
- SELECT "profile_field_groups".* FROM "profile_field_groups" | |
- >- | |
SELECT "profile_field_groups"."id" AS t0_r0, | |
"profile_field_groups"."created_at" AS t0_r1, | |
"profile_field_groups"."description" AS t0_r2, "profile_field_groups"."name" | |
AS t0_r3, "profile_field_groups"."updated_at" AS t0_r4, | |
"profile_fields"."id" AS t1_r0, "profile_fields"."attribute_name" AS t1_r1, | |
"profile_fields"."created_at" AS t1_r2, "profile_fields"."description" AS | |
t1_r3, "profile_fields"."display_area" AS t1_r4, | |
"profile_fields"."input_type" AS t1_r5, "profile_fields"."label" AS t1_r6, | |
"profile_fields"."placeholder_text" AS t1_r7, | |
"profile_fields"."profile_field_group_id" AS t1_r8, | |
"profile_fields"."show_in_onboarding" AS t1_r9, | |
"profile_fields"."updated_at" AS t1_r10 FROM "profile_field_groups" INNER | |
JOIN "profile_fields" ON "profile_fields"."profile_field_group_id" = | |
"profile_field_groups"."id" ORDER BY "profile_field_groups"."name" ASC | |
- >- | |
SELECT "profile_field_groups"."id" AS t0_r0, | |
"profile_field_groups"."created_at" AS t0_r1, | |
"profile_field_groups"."description" AS t0_r2, "profile_field_groups"."name" | |
AS t0_r3, "profile_field_groups"."updated_at" AS t0_r4, | |
"profile_fields"."id" AS t1_r0, "profile_fields"."attribute_name" AS t1_r1, | |
"profile_fields"."created_at" AS t1_r2, "profile_fields"."description" AS | |
t1_r3, "profile_fields"."display_area" AS t1_r4, | |
"profile_fields"."input_type" AS t1_r5, "profile_fields"."label" AS t1_r6, | |
"profile_fields"."placeholder_text" AS t1_r7, | |
"profile_fields"."profile_field_group_id" AS t1_r8, | |
"profile_fields"."show_in_onboarding" AS t1_r9, | |
"profile_fields"."updated_at" AS t1_r10 FROM "profile_field_groups" LEFT | |
OUTER JOIN "profile_fields" ON "profile_fields"."profile_field_group_id" = | |
"profile_field_groups"."id" WHERE "profile_fields"."show_in_onboarding" = $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" ORDER BY | |
"profile_fields"."id" ASC LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE "profile_fields"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" = $? AND "profile_fields"."description" | |
= $? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" = $? AND "profile_fields"."description" | |
IS ? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" IS ? AND "profile_fields"."description" | |
= $? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" IS ? AND "profile_fields"."description" | |
IS ? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IS ? ORDER BY | |
"profile_fields"."label" ASC | |
- SELECT "profile_fields".* FROM "profile_fields" | |
- >- | |
SELECT "profile_fields"."attribute_name" FROM "profile_fields" WHERE | |
"profile_fields"."display_area" = $? | |
- >- | |
SELECT "profile_pins".* FROM "profile_pins" WHERE | |
"profile_pins"."pinnable_id" = $? AND "profile_pins"."pinnable_type" = $? | |
- >- | |
SELECT "profile_pins".* FROM "profile_pins" WHERE | |
"profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = $? AND | |
"profile_pins"."id" = $? ORDER BY "profile_pins"."id" ASC LIMIT $? | |
- SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" ORDER BY "rating_votes"."id" | |
DESC LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE | |
"rating_votes"."article_id" = $? AND "rating_votes"."user_id" = $? ORDER BY | |
"rating_votes"."id" ASC LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE | |
"rating_votes"."article_id" = $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE "rating_votes"."user_id" = | |
$? AND "rating_votes"."article_id" = $? ORDER BY "rating_votes"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" ORDER BY "reactions"."id" DESC LIMIT | |
$? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."category" IN ($?, | |
$?, $?) ORDER BY "reactions"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."id" = $? AND | |
"reactions"."reactable_type" = $? LIMIT $? | |
- SELECT "reactions".* FROM "reactions" WHERE "reactions"."id" = $? LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" IN ($?, $?) ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" IN ($?, $?) | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."category" = $? ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."reactable_id" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? ORDER | |
BY "reactions"."id" DESC LIMIT $? | |
- SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? | |
- >- | |
SELECT "reactions"."id", "reactions"."reactable_id", | |
"reactions"."created_at", "reactions"."status" FROM "reactions" WHERE | |
"reactions"."category" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."status" != $? ORDER BY "reactions"."created_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "reactions"."id", "reactions"."user_id", | |
"reactions"."reactable_type", "reactions"."reactable_id" FROM "reactions" | |
WHERE "reactions"."category" = $? AND "reactions"."status" = $? ORDER BY | |
"reactions"."updated_at" DESC | |
- >- | |
SELECT "reactions"."reactable_id" FROM "reactions" WHERE | |
"reactions"."category" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."status" != $? ORDER BY | |
"reactions"."created_at" DESC | |
- SELECT "response_templates".* FROM "response_templates" LIMIT $? OFFSET $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" = $? AND "response_templates"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" = $? LIMIT $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" IS ? AND "response_templates"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."type_of" = $? AND "response_templates"."user_id" = $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."type_of" = $? AND "response_templates"."user_id" IS ? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."user_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)) OR ((roles.name = ?) AND (roles.resource_type = ?) | |
AND (roles.resource_id = ?)))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND (((roles.name | |
= ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS ?))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? AND "roles"."resource_type" = $? AND | |
"roles"."resource_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? AND "roles"."resource_type" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? AND | |
"roles"."resource_type" = $? AND "roles"."resource_id" = $? ORDER BY | |
"roles"."id" ASC LIMIT $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? AND | |
"roles"."resource_type" IS ? AND "roles"."resource_id" IS ? ORDER BY | |
"roles"."id" ASC LIMIT $? | |
- SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? LIMIT $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."resource_id" = $? AND | |
"roles"."resource_type" = $? | |
- >- | |
SELECT "roles"."id" FROM "roles" WHERE "roles"."name" IN ($?, $?, $?, $?, | |
$?, $?) ? LIMIT $? | |
- >- | |
SELECT "roles"."name" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" | |
= "users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
- >- | |
SELECT "roles"."resource_id" FROM "roles" INNER JOIN "users_roles" ON | |
"roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
AND "roles"."name" = $? | |
- >- | |
SELECT "settings_authentications".* FROM "settings_authentications" WHERE | |
"settings_authentications"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_campaigns".* FROM "settings_campaigns" WHERE | |
"settings_campaigns"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_communities".* FROM "settings_communities" WHERE | |
"settings_communities"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_rate_limits".* FROM "settings_rate_limits" WHERE | |
"settings_rate_limits"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_user_experiences".* FROM "settings_user_experiences" WHERE | |
"settings_user_experiences"."var" = $? LIMIT $? | |
- >- | |
SELECT "site_configs".* FROM "site_configs" WHERE "site_configs"."var" = $? | |
LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" ORDER BY | |
"sponsorships"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
LIMIT $? | |
- SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."level" = | |
$? AND "sponsorships"."status" = $? ORDER BY | |
"sponsorships"."featured_number" ASC | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE | |
"sponsorships"."organization_id" = $? AND "sponsorships"."status" = $? ORDER | |
BY "sponsorships"."id" ASC LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE | |
"sponsorships"."sponsorable_id" = $? AND "sponsorships"."sponsorable_type" = | |
$? LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."user_id" = | |
$? | |
- >- | |
SELECT "tag_adjustments".* FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" = $? | |
- >- | |
SELECT "tag_adjustments".* FROM "tag_adjustments" WHERE | |
"tag_adjustments"."id" = $? LIMIT $? | |
- >- | |
SELECT "tag_adjustments"."tag_name" FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" = $? AND "tag_adjustments"."adjustment_type" | |
= $? AND "tag_adjustments"."status" = $? | |
- >- | |
SELECT "tag_adjustments"."tag_name" FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" IS ? AND "tag_adjustments"."adjustment_type" | |
= $? AND "tag_adjustments"."status" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."tagger_id" IS ? AND | |
"taggings"."tagger_type" IS ? AND "taggings"."context" = $? AND | |
"taggings"."tag_id" IN ($?, $?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?, $?, $?, $?, $?, $?) | |
- SELECT "tags".* FROM "tags" ? LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "roles" ON "roles".resource_type IN | |
(?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND (taggings.context = ? AND | |
taggings.tagger_id IS ?) | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- SELECT "tags".* FROM "tags" ORDER BY "tags"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ? OR name = ? OR name | |
= ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ? OR name = ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ?) | |
- SELECT "tags".* FROM "tags" WHERE "tags"."id" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."id" = $? | |
- 'SELECT "tags".* FROM "tags" WHERE "tags"."id" IN ($?, $?)' | |
- SELECT "tags".* FROM "tags" WHERE "tags"."mod_chat_channel_id" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."name" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."name" IS ? LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" WHERE "tags"."supported" IS NOT ? ORDER BY | |
"tags"."taggings_count" DESC LIMIT $? OFFSET $? | |
- SELECT "tags"."badge_id" FROM "tags" WHERE "tags"."name" = $? | |
- >- | |
SELECT "tags"."bg_color_hex", "tags"."text_color_hex" FROM "tags" WHERE | |
"tags"."name" = $? LIMIT $? | |
- >- | |
SELECT "tags"."id" FROM "tags" INNER JOIN "roles" ON "roles".resource_type | |
IN (?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) | |
- >- | |
SELECT "tags"."id" FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "tags"."id", "tags"."name" FROM "tags" WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."bg_color_hex", | |
"tags"."text_color_hex" FROM "tags" ORDER BY "tags"."taggings_count" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."bg_color_hex", | |
"tags"."text_color_hex" FROM "tags" WHERE "tags"."name" IN ($?, $?, $?) | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."hotness_score", | |
"tags"."rules_html", "tags"."supported", "tags"."short_summary" FROM "tags" | |
INNER JOIN (SELECT "tags"."id" AS pg_search_id, (ts_rank((to_tsvector(?, | |
coalesce("tags"."name"::text, ?))), (?), ?)) AS rank FROM "tags" WHERE | |
((to_tsvector(?, coalesce("tags"."name"::text, ?))) @@ (?))) AS | |
pg_search_978c2f8941354cf552831b ON "tags"."id" = | |
pg_search_978c2f8941354cf552831b.pg_search_id WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."hotness_score", | |
"tags"."rules_html", "tags"."supported", "tags"."short_summary" FROM "tags" | |
INNER JOIN (SELECT "tags"."id" AS pg_search_id, (ts_rank((to_tsvector(?, | |
coalesce("tags"."name"::text, ?))), (to_tsquery(?, ? || ? || ? || ?)), ?)) | |
AS rank FROM "tags" WHERE ((to_tsvector(?, coalesce("tags"."name"::text, | |
?))) @@ (to_tsquery(?, ? || ? || ? || ?)))) AS | |
pg_search_978c2f8941354cf552831b ON "tags"."id" = | |
pg_search_978c2f8941354cf552831b.pg_search_id WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC | |
- SELECT "tags"."name" FROM "tags" WHERE "tags"."id" = $? | |
- >- | |
SELECT "tags"."name" FROM "tags" WHERE "tags"."id" IN (SELECT | |
"follows"."followable_id" FROM "follows" WHERE "follows"."follower_id" = $? | |
AND "follows"."followable_type" = $?) | |
- SELECT "tags"."name" FROM "tags" WHERE "tags"."requires_approval" = $? | |
- >- | |
SELECT "tags"."name", "tags"."bg_color_hex", "tags"."text_color_hex" FROM | |
"tags" WHERE "tags"."id" = $? LIMIT $? | |
- >- | |
SELECT "tags"."name", "tags"."bg_color_hex", "tags"."text_color_hex" FROM | |
"tags" WHERE "tags"."name" = $? | |
- >- | |
SELECT "tags"."requires_approval" FROM "tags" INNER JOIN "taggings" ON | |
"tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "tags"."social_preview_template" FROM "tags" INNER JOIN "taggings" ON | |
"tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? AND | |
"tags"."social_preview_template" IS NOT ? AND | |
"tags"."social_preview_template" != $? ORDER BY "tags"."id" ASC LIMIT $? | |
- >- | |
SELECT "tweets".* FROM "tweets" WHERE "tweets"."twitter_id_code" = $? LIMIT | |
$? | |
- >- | |
SELECT "user_blocks".* FROM "user_blocks" WHERE "user_blocks"."blocked_id" = | |
$? AND "user_blocks"."blocker_id" = $? LIMIT $? | |
- >- | |
SELECT "user_blocks"."blocked_id" FROM "user_blocks" WHERE | |
"user_blocks"."blocker_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."author_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? ORDER BY | |
"user_subscriptions"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id" FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."role" = $? | |
- >- | |
SELECT "users"."id" FROM "users" INNER JOIN "users_notification_settings" | |
"notification_setting" ON "notification_setting"."user_id" = "users"."id" | |
WHERE "users"."id" = $? AND | |
"notification_setting"."mobile_comment_notifications" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? ORDER BY "users"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "user_subscriptions" ON "users"."id" = | |
"user_subscriptions"."subscriber_id" WHERE "user_subscriptions"."author_id" | |
= $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" INNER JOIN | |
"users_notification_settings" "notification_setting" ON | |
"notification_setting"."user_id" = "users"."id" WHERE (((roles.name = ?) AND | |
(roles.resource_type IS ?) AND (roles.resource_id IS ?))) AND | |
(last_moderation_notification < ?) AND | |
"notification_setting"."mod_roundrobin_notifications" = $? ORDER BY RANDOM() | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?))) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE (old_username = ? OR old_old_username = ?) LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE (users.id = ?) ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."email" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."email" = $? ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."invitation_token" = $? ORDER BY "users"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? AND "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? AND "users"."username" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? ORDER BY "users"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."remember_token" = $? ORDER BY "users"."id" ASC LIMIT | |
$? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."twitter_username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" IS ? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" ORDER BY (((articles_count + comments_count | |
+ reactions_count + badge_achievements_count) * ?) * reputation_modifier) | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE (to_tsvector(?, coalesce(name::text, | |
?)) @@ to_tsquery(?, ? || ?) OR to_tsvector(?, coalesce(username::text, ?)) | |
@@ to_tsquery(?, ? || ?)) LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE (to_tsvector(?, coalesce(name::text, | |
?)) @@ to_tsquery(?, ? || ?) OR to_tsvector(?, coalesce(username::text, ?)) | |
@@ to_tsquery(?, ? || ?)) ORDER BY (((articles_count + comments_count + | |
reactions_count + badge_achievements_count) * ?) * reputation_modifier) DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE "users"."id" = $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."articles_count" >= $? | |
AND "users"."comments_count" >= $? ORDER BY "users"."updated_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."comments_count" >= $? | |
ORDER BY "users"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."id" = $? ORDER BY | |
"users"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."profile_image" FROM "users" WHERE | |
"users"."registered" = $? AND "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username" FROM "users" WHERE "users"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."comments_count", | |
"users"."badge_achievements_count", "users"."last_comment_at" FROM "users" | |
INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" INNER | |
JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
"users_roles"."role_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."comments_count", | |
"users"."badge_achievements_count", "users"."last_comment_at" FROM "users" | |
WHERE (id NOT IN (SELECT user_id FROM users_roles WHERE role_id IN (SELECT | |
"roles"."id" FROM "roles" WHERE "roles"."name" IN (?, ?, ?, ?, ?, ?)))) | |
ORDER BY "users"."comments_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", "summary", | |
"users"."twitter_username", "users"."github_username", "website_url", | |
"location", "users"."created_at", "users"."profile_image", | |
"users"."registered" FROM "users" WHERE "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", "summary", | |
"users"."twitter_username", "users"."github_username", "website_url", | |
"location", "users"."created_at", "users"."profile_image", | |
"users"."registered" FROM "users" WHERE "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", | |
"users"."twitter_username", "users"."github_username", | |
"users"."profile_image", "website_url", "location", "summary", | |
"users"."created_at" FROM "users" INNER JOIN "organization_memberships" ON | |
"users"."id" = "organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", | |
"users"."updated_at" FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "users"."name", "users"."id" FROM "users" INNER JOIN | |
"organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? | |
- >- | |
SELECT "users"."name", "users"."username" FROM "users" WHERE "users"."id" = | |
$? ORDER BY "users"."created_at" ASC | |
- >- | |
SELECT "users"."username" FROM "users" INNER JOIN "podcast_ownerships" ON | |
"users"."id" = "podcast_ownerships"."user_id" WHERE | |
"podcast_ownerships"."podcast_id" = $? | |
- >- | |
SELECT "users"."username", "users"."name", "users"."id" FROM "users" WHERE | |
"users"."registered" = $? AND (length(name) > ?) AND (created_at > ?) AND | |
NOT (username LIKE ?) ORDER BY "users"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."username", "users"."profile_image", "users"."id" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)) OR ((roles.name = ?) AND (roles.resource_type = ?) | |
AND (roles.resource_id = ?)))) | |
- >- | |
SELECT "users".id, "users".id, COUNT("badge_achievements".id)*? AS count, | |
MAX("users".badge_achievements_count) AS badge_achievements_count FROM | |
"users" LEFT JOIN "badge_achievements" AS badge_achievements ON "users".id = | |
badge_achievements.user_id WHERE "users"."id" = $? GROUP BY "users"."id" | |
ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users_gdpr_delete_requests".* FROM "users_gdpr_delete_requests" | |
ORDER BY "users_gdpr_delete_requests"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users_gdpr_delete_requests".* FROM "users_gdpr_delete_requests" | |
WHERE "users_gdpr_delete_requests"."id" = $? LIMIT $? | |
- >- | |
SELECT "users_notification_settings".* FROM "users_notification_settings" | |
WHERE "users_notification_settings"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "users_settings".* FROM "users_settings" WHERE | |
"users_settings"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."id" = $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."oauth_application_id" = $? AND "webhook_endpoints"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."oauth_application_id" = $? ORDER BY | |
"webhook_endpoints"."id" ASC | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? ORDER BY | |
"webhook_endpoints"."id" ASC | |
- >- | |
SELECT "webhook_endpoints"."target_url" FROM "webhook_endpoints" WHERE | |
(events @> ARRAY[?]::varchar[]) AND "webhook_endpoints"."user_id" = $? | |
- >- | |
SELECT c.relname FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = | |
c.relnamespace WHERE n.nspname = ANY (current_schemas(?)) AND c.relname = ? | |
AND c.relkind IN (?,?) | |
- >- | |
SELECT podcasts.*, count(podcast_episodes) as episodes_count FROM "podcasts" | |
LEFT OUTER JOIN "podcast_episodes" ON "podcast_episodes"."podcast_id" = | |
"podcasts"."id" GROUP BY "podcasts"."id" ORDER BY "podcasts"."created_at" | |
DESC LIMIT $? OFFSET $? | |
- 'SELECT var, value FROM "settings_authentications"' | |
- 'SELECT var, value FROM "settings_campaigns"' | |
- 'SELECT var, value FROM "settings_communities"' | |
- 'SELECT var, value FROM "settings_rate_limits"' | |
- 'SELECT var, value FROM "settings_smtp"' | |
- 'SELECT var, value FROM "settings_user_experiences"' | |
- 'SELECT var, value FROM "site_configs"' | |
- UPDATE "articles" SET "any_comments_hidden" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "approved" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "archived" = $?, "edited_at" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_organization" = $?, | |
"cached_tag_list" = $?, "edited_at" = $?, "path" = $?, "processed_html" = | |
$?, "title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"collection_id" = $?, "edited_at" = $?, "processed_html" = $?, "updated_at" | |
= $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"collection_id" = $?, "processed_html" = $?, "title" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "edited_at" = $?, "processed_html" = $?, "published" = | |
$?, "title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "featured_number" = $?, "last_comment_at" = $?, | |
"main_image" = $?, "nth_published_by_author" = $?, "path" = $?, | |
"processed_html" = $?, "published" = $?, "published_at" = $?, "slug" = $?, | |
"title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "processed_html" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"edited_at" = $?, "featured_number" = $?, "last_comment_at" = $?, | |
"nth_published_by_author" = $?, "path" = $?, "processed_html" = $?, | |
"published_at" = $?, "slug" = $?, "title" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"edited_at" = $?, "processed_html" = $?, "title" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"featured_number" = $?, "last_comment_at" = $?, "nth_published_by_author" = | |
$?, "path" = $?, "processed_html" = $?, "published" = $?, "published_at" = | |
$?, "slug" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "published" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "title" = $?, "updated_at" = $? WHERE "articles"."id" | |
= $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "edited_at" = $?, "published" = | |
$?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "published" = $?, "updated_at" = | |
$? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "cached_user" = $?, | |
"cached_user_name" = $?, "cached_user_username" = $?, "edited_at" = $?, | |
"path" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "cached_user" = $?, | |
"cached_user_name" = $?, "cached_user_username" = $?, "edited_at" = $?, | |
"path" = $?, "updated_at" = $?, "user_id" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "edited_at" = $?, | |
"organization_id" = $?, "path" = $?, "updated_at" = $? WHERE "articles"."id" | |
= $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "organization_id" = $?, | |
"path" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_tag_list" = $?, "collection_id" = $?, "title" | |
= $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_tag_list" = $?, "title" = $?, "updated_at" = | |
$? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "comments_count" = COALESCE("comments_count", ?) + ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "comments_count" = COALESCE("comments_count", ?) - ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "edited_at" = $?, "organization_id" = $?, "updated_at" | |
= $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "edited_at" = $?, "updated_at" = $?, | |
"video_thumbnail_url" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "featured" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "organic_page_views_count" = $?, | |
"organic_page_views_past_week_count" = $?, | |
"organic_page_views_past_month_count" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "organic_page_views_past_week_count" = $?, | |
"organic_page_views_past_month_count" = $? WHERE "articles"."id" = $? | |
- UPDATE "articles" SET "page_views_count" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = $? WHERE "articles"."id" = | |
$? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) + ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) - ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "published" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "published_at" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "rating_votes_count" = COALESCE("rating_votes_count", | |
?) + ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "reactions_count" = COALESCE("reactions_count", ?) + ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "reactions_count" = COALESCE("reactions_count", ?) - ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "receive_notifications" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "score" = $?, "comment_score" = $?, "hotness_score" = | |
$?, "spaminess_rating" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $? WHERE "articles"."collection_id" = | |
$? | |
- UPDATE "articles" SET "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $?, "last_comment_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $?, "video_state" = $? WHERE | |
"articles"."id" = $? | |
- UPDATE "articles" SET "user_id" = $? WHERE "articles"."user_id" = $? | |
- >- | |
UPDATE "articles" SET "user_subscriptions_count" = | |
COALESCE("user_subscriptions_count", ?) + ? WHERE "articles"."id" = $? | |
- UPDATE "audit_logs" SET "user_id" = $? WHERE "audit_logs"."user_id" = $? | |
- >- | |
UPDATE "badge_achievements" SET "rewarder_id" = $? WHERE | |
"badge_achievements"."rewarder_id" = $? | |
- >- | |
UPDATE "badge_achievements" SET "user_id" = $? WHERE | |
"badge_achievements"."user_id" = $? | |
- >- | |
UPDATE "badges" SET "badge_image" = $?, "credits_awarded" = $?, | |
"description" = $?, "slug" = $?, "title" = $?, "updated_at" = $? WHERE | |
"badges"."id" = $? | |
- >- | |
UPDATE "banished_users" SET "banished_by_id" = $? WHERE | |
"banished_users"."banished_by_id" = $? | |
- >- | |
UPDATE "broadcasts" SET "active" = $?, "active_status_updated_at" = $?, | |
"processed_html" = $?, "title" = $?, "updated_at" = $? WHERE | |
"broadcasts"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "has_unopened_messages" = $? WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND (last_opened_at < ?) | |
AND "chat_channel_memberships"."user_id" != $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "last_opened_at" = $?, "updated_at" = | |
$? WHERE "chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "role" = $?, "updated_at" = $? WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "show_global_badge_notification" = $?, | |
"updated_at" = $? WHERE "chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "status" = $?, "updated_at" = $? WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "user_id" = $? WHERE | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
UPDATE "chat_channels" SET "channel_name" = $?, "slug" = $?, "updated_at" = | |
$? WHERE "chat_channels"."id" = $? | |
- >- | |
UPDATE "chat_channels" SET "status" = $?, "updated_at" = $? WHERE | |
"chat_channels"."id" = $? | |
- >- | |
UPDATE "chat_channels" SET "updated_at" = $?, "last_message_at" = $? WHERE | |
"chat_channels"."id" = $? | |
- >- | |
UPDATE "classified_listing_categories" SET "cost" = $?, "name" = $?, "rules" | |
= $?, "slug" = $?, "social_preview_color" = $?, "social_preview_description" | |
= $?, "updated_at" = $? WHERE "classified_listing_categories"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "body_markdown" = $?, "cached_tag_list" = | |
$?, "processed_html" = $?, "title" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "body_markdown" = $?, "processed_html" = | |
$?, "updated_at" = $? WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "bumped_at" = $?, "originally_published_at" | |
= $?, "published" = $?, "updated_at" = $? WHERE "classified_listings"."id" = | |
$? | |
- >- | |
UPDATE "classified_listings" SET "bumped_at" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "cached_tag_list" = $?, "title" = $?, | |
"updated_at" = $? WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "cached_tag_list" = $?, "updated_at" = $? | |
WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "organization_id" = $?, "updated_at" = $? | |
WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "published" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "title" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- UPDATE "collections" SET "updated_at" = $? WHERE "collections"."id" = $? | |
- >- | |
UPDATE "comments" SET "body_markdown" = $?, "edited_at" = $?, | |
"markdown_character_count" = $?, "processed_html" = $?, "updated_at" = $? | |
WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "commentable_id" = $?, "commentable_type" = $? WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
UPDATE "comments" SET "hidden_by_commentable_user" = $?, "updated_at" = $? | |
WHERE "comments"."id" = $? | |
- UPDATE "comments" SET "id_code" = $? WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "public_reactions_count" = $? WHERE "comments"."id" = | |
$? | |
- >- | |
UPDATE "comments" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) + ? WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "receive_notifications" = $?, "updated_at" = $? WHERE | |
"comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "score" = $?, "spaminess_rating" = $? WHERE | |
"comments"."id" = $? | |
- UPDATE "comments" SET "updated_at" = $? WHERE "comments"."id" = $? | |
- UPDATE "comments" SET "user_id" = $? WHERE "comments"."user_id" = $? | |
- >- | |
UPDATE "consumer_apps" SET "app_bundle" = $?, "auth_key" = $?, "updated_at" | |
= $? WHERE "consumer_apps"."id" = $? | |
- >- | |
UPDATE "credits" SET "purchase_id" = $?, "purchase_type" = $? WHERE | |
"credits"."purchase_id" = $? AND "credits"."purchase_type" = $? | |
- >- | |
UPDATE "credits" SET "spent" = $?, "spent_at" = $?, "purchase_type" = $?, | |
"purchase_id" = $? WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."organization_id" = $? AND "credits"."spent" = $? | |
LIMIT $?) | |
- >- | |
UPDATE "credits" SET "spent" = $?, "spent_at" = $?, "purchase_type" = $?, | |
"purchase_id" = $? WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."user_id" = $? AND "credits"."spent" = $? LIMIT | |
$?) | |
- >- | |
UPDATE "display_ads" SET "approved" = $?, "body_markdown" = $?, | |
"organization_id" = $?, "processed_html" = $?, "published" = $?, | |
"updated_at" = $? WHERE "display_ads"."id" = $? | |
- >- | |
UPDATE "display_ads" SET "success_rate" = $?, "clicks_count" = $?, | |
"impressions_count" = $? WHERE "display_ads"."id" = $? | |
- >- | |
UPDATE "email_authorizations" SET "updated_at" = $?, "verified_at" = $? | |
WHERE "email_authorizations"."id" = $? | |
- >- | |
UPDATE "events" SET "category" = $?, "description_html" = $?, | |
"description_markdown" = $?, "ends_at" = $?, "starts_at" = $?, "title" = $?, | |
"updated_at" = $? WHERE "events"."id" = $? | |
- >- | |
UPDATE "events" SET "live_now" = $?, "updated_at" = $? WHERE "events"."id" = | |
$? | |
- >- | |
UPDATE "feedback_messages" SET "affected_id" = $? WHERE | |
"feedback_messages"."affected_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "offender_id" = $? WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "reporter_id" = $? WHERE | |
"feedback_messages"."reporter_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "status" = $?, "updated_at" = $? WHERE | |
"feedback_messages"."id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "updated_at" = $? WHERE | |
"feedback_messages"."id" = $? | |
- >- | |
UPDATE "follows" SET "explicit_points" = $?, "points" = $?, "updated_at" = | |
$? WHERE "follows"."id" = $? | |
- >- | |
UPDATE "follows" SET "followable_id" = $? WHERE "follows"."followable_id" = | |
$? AND "follows"."followable_type" = $? | |
- >- | |
UPDATE "follows" SET "follower_id" = $? WHERE "follows"."follower_id" = $? | |
AND "follows"."follower_type" = $? | |
- UPDATE "github_repos" SET "user_id" = $? WHERE "github_repos"."user_id" = $? | |
- >- | |
UPDATE "html_variant_successes" SET "article_id" = $? WHERE | |
"html_variant_successes"."article_id" = $? | |
- >- | |
UPDATE "html_variant_trials" SET "article_id" = $? WHERE | |
"html_variant_trials"."article_id" = $? | |
- >- | |
UPDATE "html_variants" SET "approved" = $?, "group" = $?, "html" = $?, | |
"name" = $?, "published" = $?, "updated_at" = $? WHERE "html_variants"."id" | |
= $? | |
- UPDATE "mentions" SET "user_id" = $? WHERE "mentions"."user_id" = $? | |
- >- | |
UPDATE "navigation_links" SET "name" = $?, "updated_at" = $? WHERE | |
"navigation_links"."id" = $? | |
- >- | |
UPDATE "notifications" SET "read" = $? WHERE | |
"notifications"."organization_id" = $? AND "notifications"."read" = $? | |
- >- | |
UPDATE "notifications" SET "read" = $? WHERE "notifications"."user_id" = $? | |
AND "notifications"."read" = $? | |
- >- | |
UPDATE "oauth_access_tokens" SET "revoked_at" = $? WHERE | |
"oauth_access_tokens"."id" = $? | |
- >- | |
UPDATE "oauth_access_tokens" SET "token" = $? WHERE | |
"oauth_access_tokens"."id" = $? | |
- >- | |
UPDATE "organization_memberships" SET "type_of_user" = $?, "updated_at" = $? | |
WHERE "organization_memberships"."id" = $? | |
- >- | |
UPDATE "organizations" SET "articles_count" = COALESCE("articles_count", ?) | |
+ ? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "articles_count" = COALESCE("articles_count", ?) | |
- ? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "credits_count" = $?, "unspent_credits_count" = | |
$?, "updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "nav_image" = $?, "profile_updated_at" = $?, | |
"updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "profile_updated_at" = $?, "text_color_hex" = $?, | |
"updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "secret" = $?, "updated_at" = $? WHERE | |
"organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "updated_at" = $?, "latest_article_updated_at" = | |
$? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "page_views" SET "time_tracked_in_seconds" = $? WHERE | |
"page_views"."id" = $? | |
- UPDATE "page_views" SET "user_id" = $? WHERE "page_views"."user_id" = $? | |
- >- | |
UPDATE "podcasts" SET "android_url" = $?, "description" = $?, "feed_url" = | |
$?, "image" = $?, "itunes_url" = $?, "overcast_url" = $?, "pattern_image" = | |
$?, "published" = $?, "slug" = $?, "soundcloud_url" = $?, "title" = $?, | |
"twitter_username" = $?, "updated_at" = $?, "website_url" = $? WHERE | |
"podcasts"."id" = $? | |
- UPDATE "podcasts" SET "creator_id" = $? WHERE "podcasts"."creator_id" = $? | |
- >- | |
UPDATE "poll_options" SET "poll_votes_count" = $? WHERE "poll_options"."id" | |
= $? | |
- >- | |
UPDATE "poll_options" SET "poll_votes_count" = COALESCE("poll_votes_count", | |
?) + ? WHERE "poll_options"."id" = $? | |
- UPDATE "polls" SET "poll_votes_count" = $? WHERE "polls"."id" = $? | |
- >- | |
UPDATE "polls" SET "poll_votes_count" = COALESCE("poll_votes_count", ?) + ? | |
WHERE "polls"."id" = $? | |
- >- | |
UPDATE "profile_field_groups" SET "name" = $?, "updated_at" = $? WHERE | |
"profile_field_groups"."id" = $? | |
- >- | |
UPDATE "profile_fields" SET "profile_field_group_id" = $? WHERE | |
"profile_fields"."profile_field_group_id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "location" = $?, "updated_at" = $? WHERE | |
"profiles"."id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "summary" = $?, "updated_at" = $? WHERE | |
"profiles"."id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "updated_at" = $? WHERE "profiles"."id" = | |
$? | |
- UPDATE "rating_votes" SET "user_id" = $? WHERE "rating_votes"."user_id" = $? | |
- >- | |
UPDATE "reactions" SET "points" = $?, "status" = $?, "updated_at" = $? WHERE | |
"reactions"."id" = $? | |
- >- | |
UPDATE "reactions" SET "status" = $?, "updated_at" = $? WHERE | |
"reactions"."id" = $? | |
- UPDATE "reactions" SET "user_id" = $? WHERE "reactions"."user_id" = $? | |
- >- | |
UPDATE "response_templates" SET "title" = $?, "updated_at" = $? WHERE | |
"response_templates"."id" = $? | |
- >- | |
UPDATE "site_configs" SET "updated_at" = $?, "value" = $? WHERE | |
"site_configs"."id" = $? | |
- >- | |
UPDATE "sponsorships" SET "blurb_html" = $?, "expires_at" = $?, "status" = | |
$?, "updated_at" = $? WHERE "sponsorships"."id" = $? | |
- >- | |
UPDATE "tags" SET "alias_for" = $?, "hotness_score" = $?, "updated_at" = $? | |
WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "badge_id" = $?, "bg_color_hex" = $?, "category" = $?, | |
"name" = $?, "pretty_name" = $?, "requires_approval" = $?, "rules_html" = | |
$?, "rules_markdown" = $?, "short_summary" = $?, "submission_template" = $?, | |
"text_color_hex" = $?, "updated_at" = $?, "wiki_body_html" = $?, | |
"wiki_body_markdown" = $? WHERE "tags"."id" = $? | |
- UPDATE "tags" SET "mod_chat_channel_id" = $? WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "short_summary" = $?, "updated_at" = $? WHERE "tags"."id" | |
= $? | |
- >- | |
UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", ?) + $? | |
WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", ?) - $? | |
WHERE "tags"."id" = $? | |
- UPDATE "tags" SET "updated_at" = $? WHERE "tags"."id" = $? | |
- UPDATE "tweets" SET "user_id" = $? WHERE "tweets"."user_id" = $? | |
- >- | |
UPDATE "user_subscriptions" SET "user_subscription_sourceable_id" = $?, | |
"user_subscription_sourceable_type" = $? WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? | |
- >- | |
UPDATE "users" SET "articles_count" = COALESCE("articles_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "articles_count" = COALESCE("articles_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "badge_achievements_count" = | |
COALESCE("badge_achievements_count", ?) - ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocked_by_count" = COALESCE("blocked_by_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocked_by_count" = COALESCE("blocked_by_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocking_others_count" = | |
COALESCE("blocking_others_count", ?) + ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocking_others_count" = | |
COALESCE("blocking_others_count", ?) - ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "comments_count" = COALESCE("comments_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "comments_count" = COALESCE("comments_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "confirmed_at" = $?, "remember_created_at" = $?, | |
"remember_token" = $?, "updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "credits_count" = $?, "unspent_credits_count" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "encrypted_password" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "export_requested" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "github_username" = $?, "profile_updated_at" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "github_username" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "last_onboarding_page" = $?, "old_username" = $?, | |
"saw_onboarding" = $?, "updated_at" = $?, "username" = $? WHERE "users"."id" | |
= $? | |
- >- | |
UPDATE "users" SET "locked_at" = $?, "unlock_token" = $?, "updated_at" = $? | |
WHERE "users"."id" = $? | |
- 'UPDATE "users" SET "name" = $?, "updated_at" = $? WHERE "users"."id" = $?' | |
- >- | |
UPDATE "users" SET "old_username" = $?, "saw_onboarding" = $?, "updated_at" | |
= $?, "username" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "profile_updated_at" = $?, "twitter_username" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "profile_updated_at" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "rating_votes_count" = COALESCE("rating_votes_count", ?) | |
+ ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "reactions_count" = COALESCE("reactions_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "reactions_count" = COALESCE("reactions_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "remember_created_at" = $?, "remember_token" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "saw_onboarding" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- UPDATE "users" SET "stripe_id_code" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "stripe_id_code" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "subscribed_to_user_subscriptions_count" = | |
COALESCE("subscribed_to_user_subscriptions_count", ?) + ? WHERE "users"."id" | |
= $? | |
- UPDATE "users" SET "twitter_username" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "twitter_username" = $?, "github_username" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "twitter_username" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- UPDATE "users" SET "updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "github_repos_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_article_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_comment_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_followed_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_notification_activity" = $? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_reacted_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "latest_article_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "organization_info_updated_at" = $? | |
WHERE "users"."id" IN (SELECT "users"."id" FROM "users" INNER JOIN | |
"organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $?) | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "profile_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "profile_updated_at" = $?, | |
"last_followed_at" = $? WHERE "users"."id" = $? | |
- UPDATE "users" SET badge_achievements_count = ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_community_mod_newsletter" = | |
$?, "updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_digest_periodic" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_mention_notifications" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_newsletter" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_tag_mod_newsletter" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "mod_roundrobin_notifications" = | |
$?, "updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "reaction_notifications" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "updated_at" = $?, | |
"welcome_notifications" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_settings" SET "display_announcements" = $?, "updated_at" = $? | |
WHERE "users_settings"."id" = $? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ' SELECT ff.key AS feature_key, fg.key, fg.value FROM flipper_features ff LEFT JOIN flipper_gates fg ON ff.key = fg.feature_key ' | |
- DELETE FROM "ahoy_messages" WHERE "ahoy_messages"."user_id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- DELETE FROM "articles" WHERE "articles"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."user_id" = $? | |
- DELETE FROM "broadcasts" WHERE "broadcasts"."id" = $? | |
- >- | |
DELETE FROM "chat_channel_memberships" WHERE "chat_channel_memberships"."id" | |
= $? | |
- DELETE FROM "chat_channels" WHERE "chat_channels"."id" = $? | |
- >- | |
DELETE FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."id" = $? | |
- DELETE FROM "classified_listings" WHERE "classified_listings"."id" = $? | |
- DELETE FROM "collections" WHERE "collections"."user_id" = $? | |
- DELETE FROM "comments" WHERE "comments"."id" = $? | |
- DELETE FROM "consumer_apps" WHERE "consumer_apps"."id" = $? | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."organization_id" = $? AND "credits"."spent" = $? | |
LIMIT $?) | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."user_id" = $? AND "credits"."spent" = $? LIMIT | |
$?) | |
- DELETE FROM "credits" WHERE "credits"."user_id" = $? | |
- DELETE FROM "devices" WHERE "devices"."id" = $? | |
- DELETE FROM "devices" WHERE "devices"."user_id" = $? | |
- DELETE FROM "discussion_locks" WHERE "discussion_locks"."id" = $? | |
- DELETE FROM "display_ad_events" WHERE "display_ad_events"."user_id" = $? | |
- DELETE FROM "display_ads" WHERE "display_ads"."id" = $? | |
- >- | |
DELETE FROM "email_authorizations" WHERE "email_authorizations"."user_id" = | |
$? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."id" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."user_id" = $? | |
- DELETE FROM "identities" WHERE "identities"."id" = $? | |
- DELETE FROM "mentions" WHERE "mentions"."user_id" = $? | |
- >- | |
DELETE FROM "messages" WHERE "messages"."user_id" = $? AND | |
"messages"."chat_channel_id" = $? | |
- DELETE FROM "messages" WHERE "messages"."user_id" = $? | |
- DELETE FROM "navigation_links" WHERE "navigation_links"."id" = $? | |
- DELETE FROM "notes" WHERE "notes"."author_id" = $? | |
- >- | |
DELETE FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."id" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) AND "notifications"."action" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "comments"."id" FROM "comments" | |
WHERE "comments"."id" = $?) | |
- DELETE FROM "notifications" WHERE "notifications"."user_id" = $? | |
- >- | |
DELETE FROM "oauth_access_grants" WHERE | |
"oauth_access_grants"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE "organization_memberships"."id" | |
= $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? | |
- DELETE FROM "poll_skips" WHERE "poll_skips"."user_id" = $? | |
- DELETE FROM "poll_votes" WHERE "poll_votes"."user_id" = $? | |
- DELETE FROM "profile_field_groups" WHERE "profile_field_groups"."id" = $? | |
- DELETE FROM "profile_fields" WHERE "profile_fields"."id" = $? | |
- DELETE FROM "profile_pins" WHERE "profile_pins"."id" = $? | |
- >- | |
DELETE FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? AND | |
"profile_pins"."profile_type" = $? | |
- DELETE FROM "profiles" WHERE "profiles"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."user_id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."user_id" = $? | |
- DELETE FROM "roles" WHERE "roles"."id" = $? | |
- DELETE FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
- DELETE FROM "tag_adjustments" WHERE "tag_adjustments"."id" = $? | |
- DELETE FROM "taggings" WHERE "taggings"."id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."id" = $? | |
- DELETE FROM "users" WHERE "users"."id" = $? | |
- >- | |
DELETE FROM "users_gdpr_delete_requests" WHERE | |
"users_gdpr_delete_requests"."id" = $? | |
- >- | |
DELETE FROM "users_notification_settings" WHERE | |
"users_notification_settings"."id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND ?=? | |
- >- | |
DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND | |
"users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? | |
- DELETE FROM "users_settings" WHERE "users_settings"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "feedback_message_id", "mailer", | |
"sent_at", "subject", "to", "user_id", "user_type", "utm_campaign") VALUES | |
($?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "mailer", "sent_at", "subject", | |
"to", "user_id", "user_type") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "api_secrets" ("created_at", "description", "secret", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("approved", "body_markdown", "boost_states", | |
"cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", | |
"experience_level_rating", "featured_number", "last_comment_at", | |
"main_image", "nth_published_by_author", "password", "path", | |
"processed_html", "published", "published_at", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "reading_time", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "experience_level_rating", "featured_number", | |
"last_comment_at", "main_image", "nth_published_by_author", "password", | |
"path", "processed_html", "published", "published_at", "reading_time", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", "main_image", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "main_image", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id", "video", "video_source_url", "video_state", | |
"video_thumbnail_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "audit_logs" ("category", "created_at", "data", "roles", "slug", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "badges" ("badge_image", "created_at", "credits_awarded", | |
"description", "slug", "title", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("active", "active_status_updated_at", | |
"created_at", "processed_html", "title", "type_of", "updated_at") VALUES | |
($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("created_at", "processed_html", "title", | |
"type_of", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" | |
("user_id","chat_channel_id","created_at","updated_at") VALUES (?, ?, ?, ?), | |
(?, ?, ?, ?) ON CONFLICT ("chat_channel_id","user_id") DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"last_message_at", "slug", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"slug", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listing_categories" ("cost", "created_at", "name", | |
"rules", "slug", "social_preview_color", "social_preview_description", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "organization_id", "originally_published_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"location", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"organization_id", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"originally_published_at", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"organization_id", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "organization_id", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "processed_html", | |
"published", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "collections" ("created_at", "slug", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("ancestry", "body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "auth_key", "created_at", | |
"platform", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "created_at", "platform", | |
"team_id", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","organization_id") | |
VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?) ON CONFLICT DO NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("user_id","created_at","updated_at") VALUES (?, ?, | |
?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "devices" ("consumer_app_id", "created_at", "platform", "token", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "notes", "reason", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ad_events" ("category", "context_type", "created_at", | |
"display_ad_id", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("approved", "body_markdown", "created_at", | |
"organization_id", "placement_area", "processed_html", "published", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("body_markdown", "created_at", "organization_id", | |
"placement_area", "processed_html", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "email_authorizations" ("confirmation_token", "created_at", | |
"type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "events" ("category", "created_at", "description_html", | |
"description_markdown", "ends_at", "starts_at", "title", "updated_at") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "reporter_id", "updated_at") VALUES ($?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "featured", | |
"github_id_code", "info_hash", "language", "name", "stargazers_count", | |
"updated_at", "url", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "github_id_code", | |
"info_hash", "language", "name", "stargazers_count", "updated_at", "url", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_successes" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_trials" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("approved", "created_at", "group", "html", | |
"name", "published", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("created_at", "group", "html", "name", | |
"success_rate", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_action", "chat_channel_id", "created_at", | |
"message_html", "message_markdown", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_channel_id", "created_at", "message_html", | |
"message_markdown", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "navigation_links" ("created_at", "icon", "name", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "notes" ("author_id", "content", "created_at", "noteable_id", | |
"noteable_type", "reason", "updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notification_subscriptions" ("created_at", "notifiable_id", | |
"notifiable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notifications" ("created_at", "json_data", "notifiable_id", | |
"notifiable_type", "notified_at", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organization_memberships" ("created_at", "organization_id", | |
"type_of_user", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "company_size", "created_at", | |
"cta_body_markdown", "cta_button_text", "cta_button_url", "email", | |
"github_username", "location", "name", "profile_image", "proof", "secret", | |
"slug", "story", "summary", "tag_line", "tech_stack", "text_color_hex", | |
"twitter_username", "updated_at", "url") VALUES ($?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "created_at", | |
"github_username", "name", "nav_image", "profile_image", "proof", "secret", | |
"slug", "summary", "text_color_hex", "twitter_username", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "domain", "path", "referrer", "updated_at") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "path", "referrer", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at", "user_agent") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "path", "referrer", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_agent", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcast_ownerships" ("created_at", "podcast_id", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcasts" ("created_at", "creator_id", "description", | |
"feed_url", "image", "main_color_hex", "slug", "title", "twitter_username", | |
"updated_at", "website_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_skips" ("created_at", "poll_id", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_votes" ("created_at", "poll_id", "poll_option_id", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_field_groups" ("created_at", "description", "name", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_fields" ("attribute_name", "created_at", "description", | |
"label", "placeholder_text", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profile_pins" ("created_at", "pinnable_id", "pinnable_type", | |
"profile_id", "profile_type", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profiles" ("created_at", "data", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "rating_votes" ("article_id", "created_at", "group", "rating", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "resource_id", "resource_type", | |
"updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "settings_authentications" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_campaigns" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_communities" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_rate_limits" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_user_experiences" ("created_at", "updated_at", | |
"value", "var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "site_configs" ("created_at", "updated_at", "value", "var") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "sponsorable_id", "sponsorable_type", "status", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "status", "updated_at", "user_id") VALUES ($?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", | |
"taggable_type") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("badge_id", "bg_color_hex", "category", "created_at", | |
"name", "pretty_name", "requires_approval", "rules_html", "rules_markdown", | |
"short_summary", "submission_template", "supported", "text_color_hex", | |
"updated_at", "wiki_body_html", "wiki_body_markdown") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "tweets" ("created_at", "extended_entities_serialized", | |
"favorite_count", "full_fetched_object_serialized", | |
"in_reply_to_status_id_code", "in_reply_to_user_id_code", | |
"in_reply_to_username", "is_quote_status", "last_fetched_at", | |
"media_serialized", "profile_image", "retweet_count", "source", "text", | |
"tweeted_at", "twitter_id_code", "twitter_name", "twitter_uid", | |
"twitter_user_followers_count", "twitter_user_following_count", | |
"twitter_username", "updated_at", "user_is_verified") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "user_blocks" ("blocked_id", "blocker_id", "created_at", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "user_subscriptions" ("author_id", "created_at", | |
"subscriber_email", "subscriber_id", "updated_at", | |
"user_subscription_sourceable_id", "user_subscription_sourceable_type") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("checked_code_of_conduct", | |
"checked_terms_and_conditions", "confirmed_at", "created_at", "email", | |
"github_username", "name", "profile_image", "registered_at", | |
"saw_onboarding", "signup_cta_variant", "twitter_username", "updated_at", | |
"username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("confirmed_at", "created_at", "email", | |
"encrypted_password", "name", "profile_image", "registered_at", | |
"updated_at", "username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", | |
"invitation_created_at", "invitation_sent_at", "invitation_token", "name", | |
"profile_image", "registered", "updated_at", "username") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", "name", | |
"profile_image", "registered_at", "updated_at", "username") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users_gdpr_delete_requests" ("created_at", "email", | |
"updated_at", "user_id", "username") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "users_notification_settings" ("created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?) RETURNING "id" | |
- 'INSERT INTO "users_roles" ("role_id", "user_id") VALUES ($?, $?)' | |
- >- | |
INSERT INTO "users_settings" ("created_at", "updated_at", "user_id") VALUES | |
($?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", | |
"oauth_application_id", "source", "target_url", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", "source", | |
"target_url", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- RELEASE SAVEPOINT active_record_1 | |
- ROLLBACK TO SAVEPOINT active_record_1 | |
- SAVEPOINT active_record_1 | |
- >- | |
SELECT ( (reltuples / GREATEST(relpages, ?)) * (pg_relation_size(?) / | |
(GREATEST(current_setting(?)::integer, ?))) )::bigint AS count FROM pg_class | |
WHERE relname = ? AND relkind = ?; | |
- >- | |
SELECT ((ts_headline(?, (coalesce("comments"."body_markdown"::text, ?)), | |
(to_tsquery(?, ? || ? || ? || ?)), ?))) AS pg_search_highlight, comments.*, | |
COALESCE(articles.published, ?) AS commentable_published, | |
COALESCE(articles.title, ?) AS commentable_title, | |
"comments"."body_markdown", "comments"."commentable_id", | |
"comments"."commentable_type", "comments"."created_at", comments.id AS id, | |
"comments"."public_reactions_count", "comments"."score", | |
"comments"."user_id" FROM "comments" join articles on articles.id = | |
comments.commentable_id INNER JOIN (SELECT "comments"."id" AS pg_search_id, | |
(ts_rank((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))), | |
(to_tsquery(?, ? || ? || ? || ?)), ?)) AS rank FROM "comments" WHERE | |
((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))) @@ | |
(to_tsquery(?, ? || ? || ? || ?)))) AS pg_search_2b4244fb2663714ee72419 ON | |
"comments"."id" = pg_search_2b4244fb2663714ee72419.pg_search_id WHERE | |
"comments"."deleted" = $? AND "comments"."hidden_by_commentable_user" = $? | |
AND "comments"."commentable_type" = $? AND "articles"."published" = $? ORDER | |
BY "comments"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "api_secrets" WHERE "api_secrets"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" | |
IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."canonical_url" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND ("articles"."featured" = $? OR "articles"."score" >= | |
$?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."organization_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? AND "articles"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" IS ? AND | |
"articles"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "articles" WHERE "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? AND "badges"."id" | |
!= $? LIMIT $? | |
- SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "banished_users" WHERE "banished_users"."username" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."id" != $? AND "broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."id" != $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" INNER JOIN "chat_channel_memberships" | |
ON "chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."slug" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? AND | |
"chat_channels"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."classified_listing_category_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "collections" WHERE "collections"."slug" = $? AND | |
"collections"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."ancestry" = ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" = $? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" IS ? AND | |
"comments"."commentable_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" = $? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" IS ? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at < ?) LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."id" != $? AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "devices" WHERE "devices"."token" = $? AND | |
"devices"."user_id" = $? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "devices" WHERE "devices"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "devices" WHERE "devices"."user_id" IN ($?, $?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "devices" WHERE "devices"."user_id" IN ($?, $?, $?) | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "discussion_locks" WHERE | |
"discussion_locks"."article_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "feedback_messages" WHERE | |
"feedback_messages"."reporter_id" = $? AND | |
"feedback_messages"."reported_url" = $? AND | |
"feedback_messages"."feedback_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? AND "github_repos"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? AND | |
"github_repos"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? AND | |
"html_variants"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "mentions" WHERE "mentions"."mentionable_id" = $? AND | |
"mentions"."mentionable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "mentions" WHERE "mentions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."id" != $? AND "navigation_links"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."notifiable_id" = | |
$? AND "notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."organization_id" IS ? AND | |
"notifications"."notifiable_id" = $? AND "notifications"."notifiable_type" = | |
$? AND "notifications"."action" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."token" = $? AND "oauth_access_tokens"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."id" != $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) AND "organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" = $? AND | |
"organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" IS ? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."slug" = $? LIMIT | |
$? | |
- SELECT ? AS one FROM "pages" WHERE "pages"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcast_ownerships" WHERE | |
"podcast_ownerships"."podcast_id" = $? AND "podcast_ownerships"."user_id" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_skips" WHERE "poll_skips"."poll_id" = $? AND | |
"poll_skips"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? AND | |
"poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
AND "poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? AND "profile_field_groups"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) AND "profile_fields"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? AND | |
"profiles"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "rating_votes" WHERE "rating_votes"."user_id" = $? AND | |
"rating_votes"."article_id" = $? AND "rating_votes"."context" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."category" = $? AND (?=? | |
AND ("reactions"."reactable_type" = $? OR "reactions"."reactable_type" = $?) | |
OR "reactions"."reactable_type" = $? AND "reactions"."user_id" = $?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? AND | |
"reactions"."status" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."id" != $? AND "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" IS ? AND | |
"reactions"."reactable_type" = $? AND "reactions"."reactable_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."id" != $? AND | |
"response_templates"."user_id" = $? AND "response_templates"."type_of" = $? | |
AND "response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" = $? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" IS ? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND "roles"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."organization_id" = | |
$? AND (level IN (?,?,?) AND expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."sponsorable_id" IS | |
? AND "sponsorships"."level" = $? AND (expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "taggings" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = $? AND | |
"taggings"."context" = $? AND "taggings"."tagger_id" IS ? AND | |
"taggings"."tagger_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" INNER JOIN "roles" ON "roles".resource_type IN | |
(?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? AND "tags"."id" != $? | |
LIMIT $? | |
- SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? AND | |
"user_blocks"."blocker_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? AND | |
"user_blocks"."blocked_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."subscriber_email" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? AND "users"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "organization_memberships" ON | |
"users"."id" = "organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON "users"."id" = | |
"users_roles"."user_id" WHERE "users_roles"."role_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE ((((roles.name = ?) AND (roles.resource_type | |
IS ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type = ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) | |
AND (roles.resource_type = ?) AND (roles.resource_id = ?)))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."email") = LOWER($?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) AND | |
"users"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE "users"."email" = $? AND | |
"users"."registered" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."github_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."twitter_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users_gdpr_delete_requests" LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users_roles" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "webhook_endpoints" WHERE | |
"webhook_endpoints"."target_url" = $? LIMIT $? | |
- >- | |
SELECT AVG("articles"."score") FROM "articles" WHERE "articles"."score" >= | |
$? | |
- SELECT AVG("users"."articles_count") FROM "users" WHERE (articles_count > ?) | |
- SELECT AVG("users"."articles_count") FROM "users" | |
- >- | |
SELECT AVG("users"."comments_count") FROM "users" WHERE | |
"users"."comments_count" = $? | |
- SELECT AVG("users"."comments_count") FROM "users" | |
- >- | |
SELECT AVG(time_tracked_in_seconds) FROM "page_views" WHERE | |
"page_views"."article_id" = $? AND "page_views"."user_id" IS NOT ? LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE ?=? AND "comments"."commentable_type" = $? AND (score > ?) | |
AND "comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) AND | |
"comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."user_id" = $? AND (created_at > ?) GROUP BY | |
DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE ?=? GROUP BY "page_views"."domain" ORDER BY | |
"count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE "page_views"."article_id" = $? GROUP BY | |
"page_views"."domain" ORDER BY "count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "podcasts"."id" AS podcasts_id FROM "podcasts" | |
LEFT OUTER JOIN "podcast_episodes" ON "podcast_episodes"."podcast_id" = | |
"podcasts"."id" GROUP BY "podcasts"."id" | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (public_reactions_count > ? OR | |
comments_count > ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
AND (featured_number > ?) ORDER BY RANDOM() LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
(public_reactions_count > ? OR comments_count > ?) AND "articles"."id" != $? | |
AND "articles"."user_id" != $? AND (featured_number > ?) ORDER BY RANDOM() | |
LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM "ahoy_messages" WHERE "ahoy_messages"."to" = $? AND | |
(sent_at > ?) | |
- SELECT COUNT(*) FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (score >= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."collection_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? | |
- SELECT COUNT(*) FROM "audit_logs" WHERE "audit_logs"."category" = $? | |
- SELECT COUNT(*) FROM "classified_listing_categories" | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? | |
- SELECT COUNT(*) FROM "classified_listings" | |
- SELECT COUNT(*) FROM "collections" WHERE "collections"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ?=? AND "comments"."commentable_type" | |
= $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."created_at" >= $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."deleted" = $? | |
- SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? | |
- SELECT COUNT(*) FROM "comments" | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? | |
- SELECT COUNT(*) FROM "devices" WHERE "devices"."consumer_app_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "display_ad_events" WHERE | |
"display_ad_events"."display_ad_id" = $? AND "display_ad_events"."category" | |
= $? | |
- >- | |
SELECT COUNT(*) FROM "display_ads" INNER JOIN "organizations" ON | |
"organizations"."id" = "display_ads"."organization_id" | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE "feedback_messages"."status" | |
= $? AND "feedback_messages"."feedback_type" = $? | |
- SELECT COUNT(*) FROM "feedback_messages" | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."blocked" = $? AND | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."followable_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? AND "follows"."blocked" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_type" = $? | |
- SELECT COUNT(*) FROM "html_variant_successes" | |
- SELECT COUNT(*) FROM "html_variant_trials" | |
- >- | |
SELECT COUNT(*) FROM "html_variants" WHERE "html_variants"."published" = $? | |
AND "html_variants"."approved" = $? | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND ?=? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? AND "identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) AND "identities"."provider" IN ($?, $?, | |
$?, $?) | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? | |
- SELECT COUNT(*) FROM "messages" WHERE "messages"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."read" = $? | |
- >- | |
SELECT COUNT(*) FROM "organization_memberships" WHERE | |
"organization_memberships"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- SELECT COUNT(*) FROM "organizations" WHERE (name ILIKE ?) | |
- SELECT COUNT(*) FROM "organizations" | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."article_id" = $? | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."user_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? | |
AND "profile_pins"."profile_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."category" IN ($?, $?, | |
$?) | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" IN ($?, $?, $?, | |
$?, $?) | |
- SELECT COUNT(*) FROM "reactions" WHERE "reactions"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "response_templates" WHERE | |
"response_templates"."user_id" = $? | |
- SELECT COUNT(*) FROM "response_templates" | |
- >- | |
SELECT COUNT(*) FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?))) OR ((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type IS ?) AND (roles.resource_id IS ?))) | |
- SELECT COUNT(*) FROM "sponsorships" | |
- SELECT COUNT(*) FROM "tags" WHERE "tags"."supported" IS NOT ? | |
- >- | |
SELECT COUNT(*) FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) | |
- SELECT COUNT(*) FROM "users" WHERE "users"."registered" = $? | |
- SELECT COUNT(*) FROM "users" WHERE "users"."username" = $? | |
- SELECT COUNT(*) FROM "users_gdpr_delete_requests" | |
- >- | |
SELECT COUNT(*), COUNT(*) FILTER (WHERE category = ?), COUNT(*) FILTER | |
(WHERE category = ?), COUNT(*) FILTER (WHERE category = ?) FROM "reactions" | |
WHERE "reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? LIMIT | |
$? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) | |
- >- | |
SELECT DATE(created_at) AS date, COUNT(*) AS total, COUNT(*) FILTER (WHERE | |
category = ?) AS like, COUNT(*) FILTER (WHERE category = ?) AS readinglist, | |
COUNT(*) FILTER (WHERE category = ?) AS unicorn FROM "reactions" WHERE | |
"reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DATE(created_at) AS date, SUM(counts_for_number_of_views) AS total, | |
AVG(time_tracked_in_seconds) FILTER (WHERE user_id IS NOT ?) AS average FROM | |
"page_views" WHERE "page_views"."article_id" = $? AND | |
"page_views"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DISTINCT "classified_listings"."bumped_at" AS alias_0, | |
"classified_listings"."id" FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT DISTINCT "collections".* FROM "collections" INNER JOIN "articles" ON | |
"articles"."collection_id" = "collections"."id" WHERE | |
"collections"."user_id" = $? ORDER BY "collections"."created_at" DESC | |
- >- | |
SELECT DISTINCT "github_repos".* FROM "github_repos" WHERE | |
"github_repos"."user_id" = $? AND "github_repos"."featured" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."organization_id" = $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? | |
- >- | |
SELECT SUM("comments"."score") FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT SUM("organizations"."unspent_credits_count") FROM "organizations" | |
INNER JOIN "organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? AND | |
"page_views"."created_at" >= $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? | |
- >- | |
SELECT SUM("reactions"."points") FROM "reactions" WHERE | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? | |
- SELECT "ahoy_events".* FROM "ahoy_events" WHERE "ahoy_events"."user_id" = $? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? ORDER BY "ahoy_messages"."sent_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? | |
- SELECT "ahoy_visits".* FROM "ahoy_visits" WHERE "ahoy_visits"."user_id" = $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."secret" = $? | |
LIMIT $? | |
- SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_09eac80" ON "article_taggings_09eac80"."taggable_id" = | |
"articles"."id" AND "article_taggings_09eac80"."taggable_type" = ? AND | |
"article_taggings_09eac80"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1e74a1f" ON "article_taggings_1e74a1f"."taggable_id" = | |
"articles"."id" AND "article_taggings_1e74a1f"."taggable_type" = ? AND | |
"article_taggings_1e74a1f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_637d1f5" ON "article_taggings_637d1f5"."taggable_id" = | |
"articles"."id" AND "article_taggings_637d1f5"."taggable_type" = ? AND | |
"article_taggings_637d1f5"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_7f550a9" ON "article_taggings_7f550a9"."taggable_id" = | |
"articles"."id" AND "article_taggings_7f550a9"."taggable_type" = ? AND | |
"article_taggings_7f550a9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_9810c56" ON "article_taggings_9810c56"."taggable_id" = | |
"articles"."id" AND "article_taggings_9810c56"."taggable_type" = ? AND | |
"article_taggings_9810c56"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_99ac1b1" ON "article_taggings_99ac1b1"."taggable_id" = | |
"articles"."id" AND "article_taggings_99ac1b1"."taggable_type" = ? AND | |
"article_taggings_99ac1b1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_bb064b2" ON "article_taggings_bb064b2"."taggable_id" = | |
"articles"."id" AND "article_taggings_bb064b2"."taggable_type" = ? AND | |
"article_taggings_bb064b2"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
( (SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) ) "users") UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $?) ) "users") ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c0b137f" ON "article_taggings_c0b137f"."taggable_id" = | |
"articles"."id" AND "article_taggings_c0b137f"."taggable_type" = ? AND | |
"article_taggings_c0b137f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
( (SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)))) ) "users") UNION (SELECT "users"."id", "users"."apple_username", | |
"users"."articles_count", "users"."badge_achievements_count", | |
"users"."blocked_by_count", "users"."blocking_others_count", | |
"users"."checked_code_of_conduct", "users"."checked_terms_and_conditions", | |
"users"."comments_count", "users"."confirmation_sent_at", | |
"users"."confirmation_token", "users"."confirmed_at", "users"."created_at", | |
"users"."credits_count", "users"."current_sign_in_at", | |
"users"."current_sign_in_ip", "users"."email", "users"."encrypted_password", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."following_orgs_count", | |
"users"."following_tags_count", "users"."following_users_count", | |
"users"."github_repos_updated_at", "users"."github_username", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $?) ) "users") ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c50267b" ON "article_taggings_c50267b"."taggable_id" = | |
"articles"."id" AND "article_taggings_c50267b"."taggable_type" = ? AND | |
"article_taggings_c50267b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_d252928" ON "article_taggings_d252928"."taggable_id" = | |
"articles"."id" AND "article_taggings_d252928"."taggable_type" = ? AND | |
"article_taggings_d252928"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e4e7619" ON "article_taggings_e4e7619"."taggable_id" = | |
"articles"."id" AND "article_taggings_e4e7619"."taggable_type" = ? AND | |
"article_taggings_e4e7619"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e7ca8de" ON "article_taggings_e7ca8de"."taggable_id" = | |
"articles"."id" AND "article_taggings_e7ca8de"."taggable_type" = ? AND | |
"article_taggings_e7ca8de"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ef68b39" ON "article_taggings_ef68b39"."taggable_id" = | |
"articles"."id" AND "article_taggings_ef68b39"."taggable_type" = ? AND | |
"article_taggings_ef68b39"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_f4ef75c" ON "article_taggings_f4ef75c"."taggable_id" = | |
"articles"."id" AND "article_taggings_f4ef75c"."taggable_type" = ? AND | |
"article_taggings_f4ef75c"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ffa6706" ON "article_taggings_ffa6706"."taggable_id" = | |
"articles"."id" AND "article_taggings_ffa6706"."taggable_type" = ? AND | |
"article_taggings_ffa6706"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- SELECT "articles".* FROM "articles" WHERE (cached_tag_list ~ ?) LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."collection_id" = $? | |
AND "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
COALESCE(crossposted_at, published_at) ASC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
ORDER BY "articles"."created_at" DESC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ? OR cached_tag_list ~ ? OR | |
cached_tag_list ~ ?) AND "articles"."user_id" != $? AND (score > ?) ORDER BY | |
"articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."published_at" | |
>= $? AND "articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."user_id" != $? | |
AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IS ? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" IS ? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."created_at" DESC | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."id" ASC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."video_code" = $? LIMIT | |
$? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS rank FROM | |
"articles" WHERE (("articles"."reading_list_document") @@ (to_tsquery(?, ? | |
|| unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)))) AS | |
pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? AND "articles"."published_at" >= $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY hotness_score DESC, comments_count | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? | |
ORDER BY "reactions"."created_at" DESC) reactions ON reactions.reactable_id | |
= articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" ASC | |
- SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS rank FROM | |
"articles" WHERE (("articles"."reading_list_document") @@ (to_tsquery(?, ? | |
|| unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)))) AS | |
pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? AND | |
"articles"."published_at" >= $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY hotness_score | |
DESC, comments_count DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND ("articles"."featured" = $? OR | |
"articles"."score" >= $?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."organization_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND "articles"."approved" = $? ORDER BY | |
"articles"."featured_number" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count < ? AND featured_number > ? AND score > ?) LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count > ? AND public_reactions_count < ? AND | |
featured_number > ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND (published_at | |
> ?) ORDER BY "articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?))) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND "articles"."id" NOT IN (SELECT | |
"taggings"."taggable_id" FROM "taggings" INNER JOIN "tags" ON | |
"taggings"."tag_id" = "tags"."id" AND "taggings"."taggable_type" = ? AND | |
("tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."collection_id" = $? ORDER BY "articles"."published_at" ASC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."featured" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?)) ORDER BY "articles"."public_reactions_count" | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."user_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC, "articles"."created_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC, | |
"articles"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? | |
ORDER BY "articles"."published_at" DESC, "articles"."created_at" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds", "articles"."video_source_url" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."last_comment_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND (published_at > ? | |
AND published_at < ? AND score > ?) | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? AND (cached_tag_list ~ | |
?) ORDER BY "articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? ORDER BY | |
"articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."comments_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) ORDER | |
BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY last_comment_at | |
DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) AND | |
(cached_tag_list ~ ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "articles"."public_reactions_count", | |
"articles"."cached_tag_list", "articles"."main_image", | |
"articles"."main_image_background_hex_color", "articles"."updated_at", | |
"articles"."boost_states", "articles"."video", "articles"."user_id", | |
"articles"."organization_id", "articles"."video_source_url", | |
"articles"."video_code", "articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", "articles"."social_image", | |
"articles"."published_from_feed", "articles"."crossposted_at", | |
"articles"."published_at", "articles"."featured_number", | |
"articles"."created_at", "articles"."body_markdown", | |
"articles"."email_digest_eligible", "articles"."processed_html", | |
"articles"."co_author_ids" FROM "articles" WHERE ("articles"."published" = | |
$? AND (published_at <= ?) OR "articles"."published_from_feed" = $?) AND | |
"articles"."featured" = $? AND (featured_number > ?) ORDER BY | |
"articles"."featured_number" DESC | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "articles"."public_reactions_count", | |
"articles"."cached_tag_list", "articles"."main_image", | |
"articles"."main_image_background_hex_color", "articles"."updated_at", | |
"articles"."boost_states", "articles"."video", "articles"."user_id", | |
"articles"."organization_id", "articles"."video_source_url", | |
"articles"."video_code", "articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", "articles"."social_image", | |
"articles"."published_from_feed", "articles"."crossposted_at", | |
"articles"."published_at", "articles"."featured_number", | |
"articles"."created_at", "articles"."body_markdown", | |
"articles"."email_digest_eligible", "articles"."processed_html", | |
"articles"."co_author_ids" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (score >= ?) ORDER BY "articles"."hotness_score" | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (cached_tag_list ~ ? | |
OR cached_tag_list ~ ?) AND "articles"."id" != $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (cached_tag_list ~ | |
?) AND "articles"."id" != $? ORDER BY "articles"."published_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."organization_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) AND ?=? AND "articles"."main_image" IS NOT ? ORDER BY | |
"articles"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) AND ?=? ORDER BY "articles"."score" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(published_at > ?) ORDER BY "articles"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score >= ? OR featured = ?) AND "articles"."main_image" IS NOT ? ORDER BY | |
"articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score >= ? OR featured = ?) ORDER BY "articles"."hotness_score" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (comments_count > ?) AND | |
"articles"."id" != $? AND "articles"."user_id" != $? AND (featured_number > | |
?) ORDER BY RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (public_reactions_count > ? OR | |
comments_count > ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
AND (featured_number > ?) ORDER BY RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
EXISTS (SELECT * FROM "taggings" WHERE "taggings"."taggable_id" = | |
"articles"."id" AND "taggings"."taggable_type" = ? AND "taggings"."tag_id" | |
IN (SELECT "tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) | |
AND (public_reactions_count > ? OR comments_count > ?) AND "articles"."id" | |
!= $? AND "articles"."user_id" != $? AND (featured_number > ?) ORDER BY | |
RANDOM() LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" IN (SELECT "profile_pins"."pinnable_id" FROM "profile_pins" | |
WHERE "profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = | |
$?) ORDER BY "articles"."published_at" DESC | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."score" >= $? AND ?=? ORDER BY "articles"."hotness_score" DESC | |
LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."score" >= $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND (cached_tag_list ~ ? OR cached_tag_list ~ ?) AND | |
"articles"."id" != $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND ?=? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."published", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."cached_tag_list", | |
"articles"."main_image", "articles"."main_image_background_hex_color", | |
"articles"."updated_at", "articles"."slug", "articles"."video", | |
"articles"."user_id", "articles"."organization_id", | |
"articles"."video_source_url", "articles"."video_code", | |
"articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", | |
"articles"."experience_level_rating", | |
"articles"."experience_level_rating_distribution", "articles"."cached_user", | |
"articles"."cached_organization", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."boost_states", | |
"articles"."description", "articles"."reading_time", | |
"articles"."video_duration_in_seconds", "articles"."last_comment_at" FROM | |
"articles" WHERE "articles"."user_id" = $? AND "articles"."published" = $? | |
AND (published_at <= ?) AND "articles"."id" != $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."slug" FROM "articles" WHERE "articles"."collection_id" = | |
$? AND "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
COALESCE(crossposted_at, published_at) ASC | |
- >- | |
SELECT "articles"."title", "articles"."user_id", "articles"."path" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(score > ? AND score < ?) ORDER BY "articles"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? | |
ORDER BY "reactions"."created_at" DESC) reactions ON reactions.reactable_id | |
= articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."user_id" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND EXISTS (SELECT * FROM "taggings" WHERE | |
"taggings"."taggable_id" = "articles"."id" AND "taggings"."taggable_type" = | |
? AND "taggings"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
("tags"."name" LIKE ? ESCAPE ?))) AND "articles"."score" >= $? AND | |
"articles"."published_at" >= $? | |
- >- | |
SELECT "audit_logs".* FROM "audit_logs" WHERE "audit_logs"."category" = $? | |
ORDER BY "audit_logs"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."id" = $? LIMIT $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? ORDER BY "badge_achievements"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "badge_achievements".* FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? | |
- >- | |
SELECT "badge_achievements"."badge_id" FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? | |
- SELECT "badges".* FROM "badges" ORDER BY "badges"."created_at" ASC | |
- SELECT "badges".* FROM "badges" ORDER BY "badges"."id" ASC LIMIT $? | |
- SELECT "badges".* FROM "badges" WHERE "badges"."id" = $? LIMIT $? | |
- SELECT "badges".* FROM "badges" WHERE "badges"."id" = $? | |
- >- | |
SELECT "badges".* FROM "badges" WHERE "badges"."id" IN (SELECT | |
"badge_achievements"."badge_id" FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $?) | |
- >- | |
SELECT "badges".* FROM "badges" WHERE "badges"."id" IN (SELECT | |
"tags"."badge_id" FROM "tags" WHERE "tags"."name" = $?) | |
- SELECT "badges".* FROM "badges" WHERE "badges"."slug" = $? LIMIT $? | |
- SELECT "badges".* FROM "badges" | |
- 'SELECT "badges"."title", "badges"."id" FROM "badges"' | |
- SELECT "broadcasts".* FROM "broadcasts" ORDER BY "broadcasts"."title" ASC | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."active" = $? AND | |
"broadcasts"."title" = $? LIMIT $? | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."id" = $? LIMIT | |
$? | |
- >- | |
SELECT "broadcasts".* FROM "broadcasts" WHERE "broadcasts"."type_of" = $? | |
AND "broadcasts"."active" = $? ORDER BY "broadcasts"."id" ASC LIMIT $? | |
- >- | |
SELECT "broadcasts"."id" FROM "broadcasts" WHERE "broadcasts"."type_of" = $? | |
AND "broadcasts"."active" = $? ORDER BY "broadcasts"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" ORDER BY | |
"chat_channel_memberships"."id" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."role" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."last_opened_at" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" IS ? AND | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" ASC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? AND | |
"chat_channel_memberships"."chat_channel_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."chat_channel_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."has_unopened_messages" = $? AND | |
"chat_channel_memberships"."show_global_badge_notification" = $? AND | |
"chat_channel_memberships"."status" NOT IN ($?, $?) ORDER BY | |
"chat_channel_memberships"."updated_at" DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."updated_at" DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY created_at DESC | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? ORDER BY | |
"chat_channel_memberships"."id" DESC LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
SELECT "chat_channel_memberships".* FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" IS ? LIMIT $? | |
- >- | |
SELECT "chat_channel_memberships"."chat_channel_id" FROM | |
"chat_channel_memberships" LEFT OUTER JOIN "chat_channels" ON | |
"chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."has_unopened_messages" = $? AND | |
"chat_channel_memberships"."status" NOT IN ($?, $?) | |
- >- | |
SELECT "chat_channel_memberships"."chat_channel_id" FROM | |
"chat_channel_memberships" LEFT OUTER JOIN "chat_channels" ON | |
"chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."discoverable" | |
= $? AND "chat_channel_memberships"."role" = $? | |
- >- | |
SELECT "chat_channel_memberships"."id" FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "chat_channel_memberships"."id", | |
"chat_channel_memberships"."user_id", | |
"chat_channel_memberships"."last_opened_at" FROM "chat_channel_memberships" | |
WHERE "chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? ORDER BY | |
"chat_channel_memberships"."last_opened_at" DESC | |
- >- | |
SELECT "chat_channel_memberships"."last_opened_at" FROM | |
"chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND (channel_name LIKE ?) LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."channel_type" | |
= $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."slug" IN ($?, | |
$?) AND "chat_channels"."channel_type" = $? ORDER BY "chat_channels"."id" | |
ASC LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" INNER JOIN | |
"chat_channel_memberships" ON "chat_channels"."id" = | |
"chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? ORDER BY "chat_channels"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE | |
"chat_channels"."channel_name" = $? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" = | |
$? | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."id" IN | |
($?, $?) | |
- >- | |
SELECT "chat_channels".* FROM "chat_channels" WHERE "chat_channels"."slug" = | |
$? LIMIT $? | |
- >- | |
SELECT "chat_channels"."id" AS t0_r0, "chat_channels"."channel_name" AS | |
t0_r1, "chat_channels"."channel_type" AS t0_r2, "chat_channels"."created_at" | |
AS t0_r3, "chat_channels"."description" AS t0_r4, | |
"chat_channels"."discoverable" AS t0_r5, "chat_channels"."last_message_at" | |
AS t0_r6, "chat_channels"."slug" AS t0_r7, "chat_channels"."status" AS | |
t0_r8, "chat_channels"."updated_at" AS t0_r9, | |
"chat_channel_memberships"."id" AS t1_r0, | |
"chat_channel_memberships"."chat_channel_id" AS t1_r1, | |
"chat_channel_memberships"."created_at" AS t1_r2, | |
"chat_channel_memberships"."has_unopened_messages" AS t1_r3, | |
"chat_channel_memberships"."last_opened_at" AS t1_r4, | |
"chat_channel_memberships"."role" AS t1_r5, | |
"chat_channel_memberships"."show_global_badge_notification" AS t1_r6, | |
"chat_channel_memberships"."status" AS t1_r7, | |
"chat_channel_memberships"."updated_at" AS t1_r8, | |
"chat_channel_memberships"."user_id" AS t1_r9 FROM "chat_channels" LEFT | |
OUTER JOIN "chat_channel_memberships" ON | |
"chat_channel_memberships"."chat_channel_id" = "chat_channels"."id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND | |
"chat_channel_memberships"."role" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "chat_channels"."id", "chat_channels"."description", | |
"chat_channels"."channel_name" FROM "chat_channels" WHERE | |
"chat_channels"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" ORDER BY | |
"classified_listing_categories"."id" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" = | |
$? | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."id" | |
IN ($?, $?) | |
- >- | |
SELECT "classified_listing_categories".* FROM | |
"classified_listing_categories" | |
- >- | |
SELECT "classified_listing_categories"."id" FROM | |
"classified_listing_categories" WHERE "classified_listing_categories"."slug" | |
= $? LIMIT $? | |
- >- | |
SELECT "classified_listing_categories"."id", | |
"classified_listing_categories"."name", | |
"classified_listing_categories"."cost" FROM "classified_listing_categories" | |
- >- | |
SELECT "classified_listing_categories"."slug", | |
"classified_listing_categories"."name" FROM "classified_listing_categories" | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."id" = $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? AND "classified_listings"."slug" = $? | |
LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."slug" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? AND | |
"classified_listings"."contact_via_connect" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? | |
- >- | |
SELECT "classified_listings"."id" AS t0_r0, | |
"classified_listings"."body_markdown" AS t0_r1, | |
"classified_listings"."bumped_at" AS t0_r2, | |
"classified_listings"."cached_tag_list" AS t0_r3, | |
"classified_listings"."classified_listing_category_id" AS t0_r4, | |
"classified_listings"."contact_via_connect" AS t0_r5, | |
"classified_listings"."created_at" AS t0_r6, | |
"classified_listings"."expires_at" AS t0_r7, | |
"classified_listings"."location" AS t0_r8, | |
"classified_listings"."organization_id" AS t0_r9, | |
"classified_listings"."originally_published_at" AS t0_r10, | |
"classified_listings"."processed_html" AS t0_r11, | |
"classified_listings"."published" AS t0_r12, "classified_listings"."slug" AS | |
t0_r13, "classified_listings"."title" AS t0_r14, | |
"classified_listings"."updated_at" AS t0_r15, | |
"classified_listings"."user_id" AS t0_r16, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, | |
"classified_listing_categories"."id" AS t2_r0, | |
"classified_listing_categories"."cost" AS t2_r1, | |
"classified_listing_categories"."created_at" AS t2_r2, | |
"classified_listing_categories"."name" AS t2_r3, | |
"classified_listing_categories"."rules" AS t2_r4, | |
"classified_listing_categories"."slug" AS t2_r5, | |
"classified_listing_categories"."social_preview_color" AS t2_r6, | |
"classified_listing_categories"."social_preview_description" AS t2_r7, | |
"classified_listing_categories"."updated_at" AS t2_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."body_markdown", | |
"classified_listings"."bumped_at", "classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."contact_via_connect", | |
"classified_listings"."expires_at", "classified_listings"."organization_id", | |
"classified_listings"."originally_published_at", | |
"classified_listings"."location", "classified_listings"."processed_html", | |
"classified_listings"."published", "classified_listings"."slug", | |
"classified_listings"."title", "classified_listings"."user_id" FROM | |
"classified_listings" WHERE "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."body_markdown", | |
"classified_listings"."bumped_at", "classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."contact_via_connect", | |
"classified_listings"."expires_at", "classified_listings"."organization_id", | |
"classified_listings"."originally_published_at", | |
"classified_listings"."location", "classified_listings"."processed_html", | |
"classified_listings"."published", "classified_listings"."slug", | |
"classified_listings"."title", "classified_listings"."user_id", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"classified_listing_categories"."id" AS t3_r0, | |
"classified_listing_categories"."cost" AS t3_r1, | |
"classified_listing_categories"."created_at" AS t3_r2, | |
"classified_listing_categories"."name" AS t3_r3, | |
"classified_listing_categories"."rules" AS t3_r4, | |
"classified_listing_categories"."slug" AS t3_r5, | |
"classified_listing_categories"."social_preview_color" AS t3_r6, | |
"classified_listing_categories"."social_preview_description" AS t3_r7, | |
"classified_listing_categories"."updated_at" AS t3_r8 FROM | |
"classified_listings" LEFT OUTER JOIN "users" ON "users"."id" = | |
"classified_listings"."user_id" LEFT OUTER JOIN "organizations" ON | |
"organizations"."id" = "classified_listings"."organization_id" LEFT OUTER | |
JOIN "classified_listing_categories" ON "classified_listing_categories"."id" | |
= "classified_listings"."classified_listing_category_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."organization_id" = | |
$? AND "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."published" = $? AND | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published" | |
FROM "classified_listings" WHERE "classified_listings"."published" = $? | |
ORDER BY "classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"taggings"."id" AS t3_r0, "taggings"."context" AS t3_r1, | |
"taggings"."created_at" AS t3_r2, "taggings"."tag_id" AS t3_r3, | |
"taggings"."taggable_id" AS t3_r4, "taggings"."taggable_type" AS t3_r5, | |
"taggings"."tagger_id" AS t3_r6, "taggings"."tagger_type" AS t3_r7, | |
"classified_listing_categories"."id" AS t4_r0, | |
"classified_listing_categories"."cost" AS t4_r1, | |
"classified_listing_categories"."created_at" AS t4_r2, | |
"classified_listing_categories"."name" AS t4_r3, | |
"classified_listing_categories"."rules" AS t4_r4, | |
"classified_listing_categories"."slug" AS t4_r5, | |
"classified_listing_categories"."social_preview_color" AS t4_r6, | |
"classified_listing_categories"."social_preview_description" AS t4_r7, | |
"classified_listing_categories"."updated_at" AS t4_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? AND "classified_listings"."id" | |
IN ($?, $?) ORDER BY "classified_listings"."bumped_at" DESC | |
- >- | |
SELECT "classified_listings"."id", "classified_listings"."user_id", | |
"classified_listings"."organization_id", "classified_listings"."title", | |
"classified_listings"."slug", "classified_listings"."body_markdown", | |
"classified_listings"."cached_tag_list", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."processed_html", "classified_listings"."published", | |
"classified_listings"."id" AS t0_r0, "users"."id" AS t1_r0, | |
"users"."apple_username" AS t1_r1, "users"."articles_count" AS t1_r2, | |
"users"."badge_achievements_count" AS t1_r3, "users"."blocked_by_count" AS | |
t1_r4, "users"."blocking_others_count" AS t1_r5, | |
"users"."checked_code_of_conduct" AS t1_r6, | |
"users"."checked_terms_and_conditions" AS t1_r7, "users"."comments_count" AS | |
t1_r8, "users"."confirmation_sent_at" AS t1_r9, "users"."confirmation_token" | |
AS t1_r10, "users"."confirmed_at" AS t1_r11, "users"."created_at" AS t1_r12, | |
"users"."credits_count" AS t1_r13, "users"."current_sign_in_at" AS t1_r14, | |
"users"."current_sign_in_ip" AS t1_r15, "users"."email" AS t1_r16, | |
"users"."encrypted_password" AS t1_r17, "users"."export_requested" AS | |
t1_r18, "users"."exported_at" AS t1_r19, "users"."facebook_username" AS | |
t1_r20, "users"."failed_attempts" AS t1_r21, "users"."feed_fetched_at" AS | |
t1_r22, "users"."following_orgs_count" AS t1_r23, | |
"users"."following_tags_count" AS t1_r24, "users"."following_users_count" AS | |
t1_r25, "users"."github_repos_updated_at" AS t1_r26, | |
"users"."github_username" AS t1_r27, "users"."invitation_accepted_at" AS | |
t1_r28, "users"."invitation_created_at" AS t1_r29, | |
"users"."invitation_limit" AS t1_r30, "users"."invitation_sent_at" AS | |
t1_r31, "users"."invitation_token" AS t1_r32, "users"."invitations_count" AS | |
t1_r33, "users"."invited_by_id" AS t1_r34, "users"."invited_by_type" AS | |
t1_r35, "users"."last_article_at" AS t1_r36, "users"."last_comment_at" AS | |
t1_r37, "users"."last_followed_at" AS t1_r38, | |
"users"."last_moderation_notification" AS t1_r39, | |
"users"."last_notification_activity" AS t1_r40, | |
"users"."last_onboarding_page" AS t1_r41, "users"."last_reacted_at" AS | |
t1_r42, "users"."last_sign_in_at" AS t1_r43, "users"."last_sign_in_ip" AS | |
t1_r44, "users"."latest_article_updated_at" AS t1_r45, "users"."locked_at" | |
AS t1_r46, "users"."monthly_dues" AS t1_r47, "users"."name" AS t1_r48, | |
"users"."old_old_username" AS t1_r49, "users"."old_username" AS t1_r50, | |
"users"."onboarding_package_requested" AS t1_r51, | |
"users"."organization_info_updated_at" AS t1_r52, "users"."payment_pointer" | |
AS t1_r53, "users"."profile_image" AS t1_r54, "users"."profile_updated_at" | |
AS t1_r55, "users"."rating_votes_count" AS t1_r56, "users"."reactions_count" | |
AS t1_r57, "users"."registered" AS t1_r58, "users"."registered_at" AS | |
t1_r59, "users"."remember_created_at" AS t1_r60, "users"."remember_token" AS | |
t1_r61, "users"."reputation_modifier" AS t1_r62, | |
"users"."reset_password_sent_at" AS t1_r63, "users"."reset_password_token" | |
AS t1_r64, "users"."saw_onboarding" AS t1_r65, "users"."score" AS t1_r66, | |
"users"."secret" AS t1_r67, "users"."sign_in_count" AS t1_r68, | |
"users"."signup_cta_variant" AS t1_r69, "users"."spent_credits_count" AS | |
t1_r70, "users"."stripe_id_code" AS t1_r71, | |
"users"."subscribed_to_user_subscriptions_count" AS t1_r72, | |
"users"."twitter_username" AS t1_r73, "users"."unconfirmed_email" AS t1_r74, | |
"users"."unlock_token" AS t1_r75, "users"."unspent_credits_count" AS t1_r76, | |
"users"."updated_at" AS t1_r77, "users"."username" AS t1_r78, | |
"users"."workshop_expiration" AS t1_r79, "organizations"."id" AS t2_r0, | |
"organizations"."articles_count" AS t2_r1, "organizations"."bg_color_hex" AS | |
t2_r2, "organizations"."company_size" AS t2_r3, "organizations"."created_at" | |
AS t2_r4, "organizations"."credits_count" AS t2_r5, | |
"organizations"."cta_body_markdown" AS t2_r6, | |
"organizations"."cta_button_text" AS t2_r7, "organizations"."cta_button_url" | |
AS t2_r8, "organizations"."cta_processed_html" AS t2_r9, | |
"organizations"."dark_nav_image" AS t2_r10, "organizations"."email" AS | |
t2_r11, "organizations"."github_username" AS t2_r12, | |
"organizations"."last_article_at" AS t2_r13, | |
"organizations"."latest_article_updated_at" AS t2_r14, | |
"organizations"."location" AS t2_r15, "organizations"."name" AS t2_r16, | |
"organizations"."nav_image" AS t2_r17, "organizations"."old_old_slug" AS | |
t2_r18, "organizations"."old_slug" AS t2_r19, | |
"organizations"."profile_image" AS t2_r20, | |
"organizations"."profile_updated_at" AS t2_r21, "organizations"."proof" AS | |
t2_r22, "organizations"."secret" AS t2_r23, "organizations"."slug" AS | |
t2_r24, "organizations"."spent_credits_count" AS t2_r25, | |
"organizations"."story" AS t2_r26, "organizations"."summary" AS t2_r27, | |
"organizations"."tag_line" AS t2_r28, "organizations"."tech_stack" AS | |
t2_r29, "organizations"."text_color_hex" AS t2_r30, | |
"organizations"."twitter_username" AS t2_r31, | |
"organizations"."unspent_credits_count" AS t2_r32, | |
"organizations"."updated_at" AS t2_r33, "organizations"."url" AS t2_r34, | |
"taggings"."id" AS t3_r0, "taggings"."context" AS t3_r1, | |
"taggings"."created_at" AS t3_r2, "taggings"."tag_id" AS t3_r3, | |
"taggings"."taggable_id" AS t3_r4, "taggings"."taggable_type" AS t3_r5, | |
"taggings"."tagger_id" AS t3_r6, "taggings"."tagger_type" AS t3_r7, | |
"classified_listing_categories"."id" AS t4_r0, | |
"classified_listing_categories"."cost" AS t4_r1, | |
"classified_listing_categories"."created_at" AS t4_r2, | |
"classified_listing_categories"."name" AS t4_r3, | |
"classified_listing_categories"."rules" AS t4_r4, | |
"classified_listing_categories"."slug" AS t4_r5, | |
"classified_listing_categories"."social_preview_color" AS t4_r6, | |
"classified_listing_categories"."social_preview_description" AS t4_r7, | |
"classified_listing_categories"."updated_at" AS t4_r8 FROM | |
"classified_listings" INNER JOIN "classified_listing_categories" ON | |
"classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? AND "classified_listings"."id" | |
IN ($?, $?, $?) ORDER BY "classified_listings"."bumped_at" DESC | |
- >- | |
SELECT "classified_listings"."title", | |
"classified_listings"."classified_listing_category_id", | |
"classified_listings"."slug", "classified_listings"."bumped_at" FROM | |
"classified_listings" WHERE "classified_listings"."published" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? | |
- >- | |
SELECT "collections".* FROM "collections" WHERE "collections"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "collections".* FROM "collections" WHERE "collections"."slug" = $? | |
AND "collections"."user_id" = $? LIMIT $? | |
- SELECT "collections".* FROM "collections" WHERE "collections"."user_id" = $? | |
- >- | |
SELECT "collections"."slug" FROM "collections" WHERE "collections"."user_id" | |
= $? | |
- >- | |
SELECT "comments".* FROM "comments" ORDER BY "comments"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- SELECT "comments".* FROM "comments" ORDER BY "comments"."id" ASC LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE (("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) OR "comments"."id" = ?) | |
- >- | |
SELECT "comments".* FROM "comments" WHERE ("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."ancestry" = ? AND | |
"comments"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."body_markdown" = $? | |
AND "comments"."commentable_id" = $? AND "comments"."ancestry" IS ? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? AND | |
"comments"."hidden_by_commentable_user" = $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? AND "comments"."score" >= $? AND | |
"comments"."ancestry" IS ? AND "comments"."hidden_by_commentable_user" = $? | |
AND "comments"."deleted" = $? ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY "comments"."id" ASC LIMIT $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY "comments"."id" DESC LIMIT | |
$? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_id" = $? | |
AND "comments"."commentable_type" = $? ORDER BY score DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" = $? ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?) ORDER BY | |
"comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
ORDER BY "comments"."score" DESC | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."commentable_type" = $? | |
AND "comments"."score" >= $? AND "comments"."ancestry" IS ? AND | |
"comments"."hidden_by_commentable_user" = $? AND "comments"."deleted" = $? | |
AND "comments"."commentable_id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?) ORDER BY "comments"."score" DESC | |
- SELECT "comments".* FROM "comments" WHERE "comments"."id" = $? LIMIT $? | |
- SELECT "comments".* FROM "comments" WHERE "comments"."id" = $? | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (?) ORDER BY | |
"comments"."ancestry" ASC NULLS FIRST | |
- >- | |
SELECT "comments".* FROM "comments" WHERE "comments"."user_id" = $? ORDER BY | |
"comments"."id" DESC LIMIT $? | |
- SELECT "comments".* FROM "comments" WHERE "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."body_markdown" FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."hidden_by_commentable_user" FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."id" FROM "comments" WHERE "comments"."commentable_id" = | |
$? AND "comments"."commentable_type" = $? | |
- SELECT "comments"."id" FROM "comments" WHERE "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."id", "comments"."processed_html", "comments"."user_id", | |
"comments"."ancestry", "comments"."deleted", | |
"comments"."hidden_by_commentable_user", "comments"."created_at" FROM | |
"comments" WHERE (("comments"."ancestry" LIKE ? OR "comments"."ancestry" = | |
?) OR "comments"."id" = ?) | |
- >- | |
SELECT "comments"."id", "comments"."processed_html", "comments"."user_id", | |
"comments"."ancestry", "comments"."deleted", | |
"comments"."hidden_by_commentable_user", "comments"."created_at" FROM | |
"comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? | |
- >- | |
SELECT "comments"."id", "comments"."user_id", "comments"."ancestry" FROM | |
"comments" WHERE "comments"."id" = $? LIMIT $? | |
- >- | |
SELECT "comments"."receive_notifications" FROM "comments" WHERE | |
(("comments"."ancestry" LIKE ? OR "comments"."ancestry" = ?) OR | |
"comments"."id" = ?) AND "comments"."user_id" = $? | |
- >- | |
SELECT "comments"."user_id" FROM "comments" WHERE "comments"."id" IN (?) AND | |
"comments"."receive_notifications" = $? ORDER BY "comments"."ancestry" ASC | |
NULLS FIRST | |
- >- | |
SELECT "comments"."user_id" FROM "comments" WHERE | |
"comments"."receive_notifications" = $? | |
- SELECT "consumer_apps".* FROM "consumer_apps" LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" = $? LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" IS ? LIMIT $? | |
- >- | |
SELECT "consumer_apps".* FROM "consumer_apps" WHERE "consumer_apps"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "consumer_apps"."platform" FROM "consumer_apps" WHERE | |
"consumer_apps"."app_bundle" = $? | |
- >- | |
SELECT "consumer_apps"."team_id", "consumer_apps"."app_bundle" FROM | |
"consumer_apps" WHERE "consumer_apps"."platform" = $? AND | |
"consumer_apps"."team_id" IS NOT ? ORDER BY "consumer_apps"."created_at" ASC | |
LIMIT $? | |
- SELECT "credits".* FROM "credits" WHERE "credits"."user_id" = $? | |
- >- | |
SELECT "credits"."purchase_id", "credits"."purchase_type", COUNT(*) AS cost, | |
MAX(spent_at) AS purchased_at FROM "credits" WHERE | |
"credits"."organization_id" = $? AND "credits"."spent" = $? GROUP BY | |
"credits"."purchase_id", "credits"."purchase_type" ORDER BY "purchased_at" | |
DESC | |
- >- | |
SELECT "credits"."purchase_id", "credits"."purchase_type", COUNT(*) AS cost, | |
MAX(spent_at) AS purchased_at FROM "credits" WHERE "credits"."user_id" = $? | |
AND "credits"."spent" = $? GROUP BY "credits"."purchase_id", | |
"credits"."purchase_type" ORDER BY "purchased_at" DESC | |
- >- | |
SELECT "custom_profile_fields".* FROM "custom_profile_fields" WHERE | |
"custom_profile_fields"."profile_id" = $? | |
- >- | |
SELECT "custom_profile_fields"."attribute_name" FROM "custom_profile_fields" | |
WHERE "custom_profile_fields"."profile_id" = $? | |
- >- | |
SELECT "data_update_scripts".* FROM "data_update_scripts" ORDER BY | |
"data_update_scripts"."run_at" DESC | |
- >- | |
SELECT "data_update_scripts".* FROM "data_update_scripts" WHERE | |
"data_update_scripts"."id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."consumer_app_id" = $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" = $? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" IS ? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? AND | |
"devices"."token" IS ? AND "devices"."platform" IS ? AND | |
"devices"."consumer_app_id" IS ? LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" = $? ORDER BY | |
"devices"."id" ASC LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" IN ($?, $?) | |
ORDER BY "devices"."id" ASC LIMIT $? | |
- >- | |
SELECT "devices"."id", "devices"."consumer_app_id", "devices"."created_at", | |
"devices"."platform", "devices"."token", "devices"."updated_at", | |
"devices"."user_id" FROM "devices" WHERE "devices"."user_id" IN ($?, $?, $?) | |
ORDER BY "devices"."id" ASC LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."article_id" = $? LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."id" = $? LIMIT $? | |
- >- | |
SELECT "discussion_locks".* FROM "discussion_locks" WHERE | |
"discussion_locks"."locking_user_id" = $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" ORDER BY | |
"display_ad_events"."id" DESC LIMIT $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" WHERE | |
"display_ad_events"."display_ad_id" = $? | |
- >- | |
SELECT "display_ad_events".* FROM "display_ad_events" WHERE | |
"display_ad_events"."user_id" = $? | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."approved" = | |
$? AND "display_ads"."published" = $? AND "display_ads"."placement_area" = | |
$? ORDER BY "display_ads"."success_rate" DESC LIMIT $? | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."approved" = | |
$? AND "display_ads"."published" = $? AND "display_ads"."placement_area" = | |
$? ORDER BY "display_ads"."success_rate" DESC | |
- >- | |
SELECT "display_ads".* FROM "display_ads" WHERE "display_ads"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "display_ads"."id" AS t0_r0, "display_ads"."approved" AS t0_r1, | |
"display_ads"."body_markdown" AS t0_r2, "display_ads"."clicks_count" AS | |
t0_r3, "display_ads"."created_at" AS t0_r4, | |
"display_ads"."impressions_count" AS t0_r5, "display_ads"."organization_id" | |
AS t0_r6, "display_ads"."placement_area" AS t0_r7, | |
"display_ads"."processed_html" AS t0_r8, "display_ads"."published" AS t0_r9, | |
"display_ads"."success_rate" AS t0_r10, "display_ads"."updated_at" AS | |
t0_r11, "organizations"."id" AS t1_r0, "organizations"."articles_count" AS | |
t1_r1, "organizations"."bg_color_hex" AS t1_r2, | |
"organizations"."company_size" AS t1_r3, "organizations"."created_at" AS | |
t1_r4, "organizations"."credits_count" AS t1_r5, | |
"organizations"."cta_body_markdown" AS t1_r6, | |
"organizations"."cta_button_text" AS t1_r7, "organizations"."cta_button_url" | |
AS t1_r8, "organizations"."cta_processed_html" AS t1_r9, | |
"organizations"."dark_nav_image" AS t1_r10, "organizations"."email" AS | |
t1_r11, "organizations"."github_username" AS t1_r12, | |
"organizations"."last_article_at" AS t1_r13, | |
"organizations"."latest_article_updated_at" AS t1_r14, | |
"organizations"."location" AS t1_r15, "organizations"."name" AS t1_r16, | |
"organizations"."nav_image" AS t1_r17, "organizations"."old_old_slug" AS | |
t1_r18, "organizations"."old_slug" AS t1_r19, | |
"organizations"."profile_image" AS t1_r20, | |
"organizations"."profile_updated_at" AS t1_r21, "organizations"."proof" AS | |
t1_r22, "organizations"."secret" AS t1_r23, "organizations"."slug" AS | |
t1_r24, "organizations"."spent_credits_count" AS t1_r25, | |
"organizations"."story" AS t1_r26, "organizations"."summary" AS t1_r27, | |
"organizations"."tag_line" AS t1_r28, "organizations"."tech_stack" AS | |
t1_r29, "organizations"."text_color_hex" AS t1_r30, | |
"organizations"."twitter_username" AS t1_r31, | |
"organizations"."unspent_credits_count" AS t1_r32, | |
"organizations"."updated_at" AS t1_r33, "organizations"."url" AS t1_r34 FROM | |
"display_ads" INNER JOIN "organizations" ON "organizations"."id" = | |
"display_ads"."organization_id" ORDER BY "display_ads"."id" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "email_authorizations".* FROM "email_authorizations" WHERE | |
"email_authorizations"."user_id" = $? AND | |
"email_authorizations"."verified_at" IS NOT ? ORDER BY | |
"email_authorizations"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "email_authorizations".* FROM "email_authorizations" WHERE | |
"email_authorizations"."user_id" = $? ORDER BY | |
"email_authorizations"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "events".* FROM "events" WHERE (starts_at < ?) AND | |
"events"."published" = $? | |
- >- | |
SELECT "events".* FROM "events" WHERE (starts_at > ?) AND | |
"events"."published" = $? | |
- SELECT "events".* FROM "events" WHERE "events"."id" = $? LIMIT $? | |
- SELECT "events".* FROM "events" WHERE "events"."slug" = $? LIMIT $? | |
- >- | |
SELECT "feedback_messages".* FROM "feedback_messages" ORDER BY | |
"feedback_messages"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "feedback_messages".* FROM "feedback_messages" WHERE | |
"feedback_messages"."id" = $? LIMIT $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."affected_id" = $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
SELECT "feedback_messages"."id" FROM "feedback_messages" WHERE | |
"feedback_messages"."reporter_id" = $? | |
- >- | |
SELECT "field_test_memberships".* FROM "field_test_memberships" WHERE | |
"field_test_memberships"."experiment" = $? AND | |
"field_test_memberships"."participant_type" = $? AND | |
"field_test_memberships"."participant_id" = $? LIMIT $? | |
- >- | |
SELECT "field_test_memberships".* FROM "field_test_memberships" WHERE | |
"field_test_memberships"."participant_id" = $? AND | |
"field_test_memberships"."participant_type" = $? | |
- >- | |
SELECT "flipper_gates".* FROM "flipper_gates" WHERE | |
"flipper_gates"."feature_key" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? AND "follows"."blocked" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_id" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."id" ASC LIMIT $? | |
- >- | |
SELECT "follows".* FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? | |
- SELECT "follows".* FROM "follows" WHERE "follows"."id" = $? | |
- 'SELECT "follows".* FROM "follows" WHERE "follows"."id" IN ($?, $?)' | |
- >- | |
SELECT "follows"."followable_id" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? LIMIT $? | |
- >- | |
SELECT "follows"."followable_id" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT "follows"."followable_id", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type" FROM "follows" WHERE "follows"."follower_id" = | |
$? AND "follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."blocked" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."points" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."followable_id", | |
"follows"."followable_type", "follows"."points" FROM "follows" WHERE | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."blocked" = $? AND "follows"."followable_type" = $? ORDER BY | |
"follows"."points" DESC | |
- >- | |
SELECT "follows"."id", "follows"."follower_id", "follows"."follower_type", | |
"follows"."created_at" FROM "follows" WHERE "follows"."followable_id" = $? | |
AND "follows"."followable_type" = $? ORDER BY "follows"."created_at" ASC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "follows"."id", "follows"."follower_id", "follows"."follower_type", | |
"follows"."created_at" FROM "follows" WHERE "follows"."followable_id" = $? | |
AND "follows"."followable_type" = $? ORDER BY "follows"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE ("github_repos"."user_id" | |
= $? AND "github_repos"."github_id_code" = $? OR "github_repos"."url" = $?) | |
ORDER BY "github_repos"."id" ASC LIMIT $? | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE "github_repos"."user_id" = | |
$? AND "github_repos"."featured" = $? ORDER BY | |
"github_repos"."stargazers_count" DESC, "github_repos"."name" ASC | |
- >- | |
SELECT "github_repos".* FROM "github_repos" WHERE "github_repos"."user_id" = | |
$? | |
- >- | |
SELECT "html_variant_successes".* FROM "html_variant_successes" WHERE | |
"html_variant_successes"."html_variant_id" = $? | |
- >- | |
SELECT "html_variant_trials".* FROM "html_variant_trials" WHERE | |
"html_variant_trials"."html_variant_id" = $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE "html_variants"."group" | |
= $? AND "html_variants"."approved" = $? AND "html_variants"."published" = | |
$? AND ("html_variants"."target_tag" = $? OR "html_variants"."target_tag" IS | |
?) ORDER BY "html_variants"."success_rate" DESC LIMIT $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE "html_variants"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE | |
"html_variants"."published" = $? AND "html_variants"."approved" = $? ORDER | |
BY "html_variants"."success_rate" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "html_variants".* FROM "html_variants" WHERE | |
"html_variants"."user_id" = $? | |
- >- | |
SELECT "html_variants"."name", "html_variants"."html" FROM "html_variants" | |
WHERE "html_variants"."approved" = $? AND "html_variants"."published" = $? | |
AND "html_variants"."group" = $? AND "html_variants"."name" = $? LIMIT $? | |
- >- | |
SELECT "id", "user_id", "organization_id", "title", "slug", "body_markdown", | |
"cached_tag_list", "classified_listing_category_id", "processed_html", | |
"published" FROM ( (SELECT "classified_listings".* FROM | |
"classified_listings" WHERE "classified_listings"."published" = $?) UNION | |
(SELECT "classified_listings".* FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $?) ) "classified_listings" WHERE | |
"classified_listings"."id" = $? LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."id" = $? LIMIT | |
$? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" = $? LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" = $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" IN ($?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- >- | |
SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
AND "identities"."provider" IN ($?, $?, $?, $?) | |
- SELECT "identities".* FROM "identities" WHERE "identities"."user_id" = $? | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? AND "identities"."provider" = $? | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? AND "identities"."provider" IN ($?, $?) | |
- >- | |
SELECT "identities"."provider" FROM "identities" WHERE | |
"identities"."user_id" = $? | |
- >- | |
SELECT "identities"."token" FROM "identities" WHERE "identities"."user_id" = | |
$? AND "identities"."provider" = $? LIMIT $? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? AND ?=? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? AND "mentions"."user_id" != $? | |
- >- | |
SELECT "mentions".* FROM "mentions" WHERE "mentions"."mentionable_id" = $? | |
AND "mentions"."mentionable_type" = $? | |
- SELECT "mentions".* FROM "mentions" WHERE "mentions"."user_id" = $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."chat_channel_id" = $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."id" = $? LIMIT $? | |
- SELECT "messages".* FROM "messages" WHERE "messages"."user_id" = $? | |
- >- | |
SELECT "navigation_links".* FROM "navigation_links" ORDER BY | |
"navigation_links"."position" ASC, "navigation_links"."name" ASC | |
- >- | |
SELECT "navigation_links".* FROM "navigation_links" WHERE | |
"navigation_links"."id" = $? LIMIT $? | |
- >- | |
SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? ORDER BY "notes"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? ORDER BY | |
"notification_subscriptions"."id" ASC LIMIT $? | |
- >- | |
SELECT "notification_subscriptions".* FROM "notification_subscriptions" | |
WHERE "notification_subscriptions"."user_id" = $? | |
- >- | |
SELECT "notification_subscriptions"."user_id" FROM | |
"notification_subscriptions" WHERE | |
"notification_subscriptions"."notifiable_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? AND | |
"notification_subscriptions"."config" = $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."notifiable_id" = $? AND "notifications"."notifiable_type" = | |
$? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."organization_id" = $? AND "notifications"."user_id" IS ? | |
AND ("notifications"."notifiable_type" = $? AND "notifications"."action" IS | |
? OR "notifications"."notifiable_type" = $?) ORDER BY | |
"notifications"."notified_at" DESC LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."organization_id" = $? AND "notifications"."user_id" IS ? | |
ORDER BY "notifications"."notified_at" DESC LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."user_id" = $? ORDER BY "notifications"."notified_at" DESC | |
LIMIT $? | |
- >- | |
SELECT "notifications".* FROM "notifications" WHERE | |
"notifications"."user_id" = $? | |
- >- | |
SELECT "oauth_access_tokens".* FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."token" = $? LIMIT $? | |
- >- | |
SELECT "oauth_applications".* FROM "oauth_applications" WHERE | |
"oauth_applications"."id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT "organization_memberships".* FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT "organization_memberships"."id" AS t0_r0, | |
"organization_memberships"."created_at" AS t0_r1, | |
"organization_memberships"."organization_id" AS t0_r2, | |
"organization_memberships"."type_of_user" AS t0_r3, | |
"organization_memberships"."updated_at" AS t0_r4, | |
"organization_memberships"."user_id" AS t0_r5, | |
"organization_memberships"."user_title" AS t0_r6, "organizations"."id" AS | |
t1_r0, "organizations"."articles_count" AS t1_r1, | |
"organizations"."bg_color_hex" AS t1_r2, "organizations"."company_size" AS | |
t1_r3, "organizations"."created_at" AS t1_r4, | |
"organizations"."credits_count" AS t1_r5, | |
"organizations"."cta_body_markdown" AS t1_r6, | |
"organizations"."cta_button_text" AS t1_r7, "organizations"."cta_button_url" | |
AS t1_r8, "organizations"."cta_processed_html" AS t1_r9, | |
"organizations"."dark_nav_image" AS t1_r10, "organizations"."email" AS | |
t1_r11, "organizations"."github_username" AS t1_r12, | |
"organizations"."last_article_at" AS t1_r13, | |
"organizations"."latest_article_updated_at" AS t1_r14, | |
"organizations"."location" AS t1_r15, "organizations"."name" AS t1_r16, | |
"organizations"."nav_image" AS t1_r17, "organizations"."old_old_slug" AS | |
t1_r18, "organizations"."old_slug" AS t1_r19, | |
"organizations"."profile_image" AS t1_r20, | |
"organizations"."profile_updated_at" AS t1_r21, "organizations"."proof" AS | |
t1_r22, "organizations"."secret" AS t1_r23, "organizations"."slug" AS | |
t1_r24, "organizations"."spent_credits_count" AS t1_r25, | |
"organizations"."story" AS t1_r26, "organizations"."summary" AS t1_r27, | |
"organizations"."tag_line" AS t1_r28, "organizations"."tech_stack" AS | |
t1_r29, "organizations"."text_color_hex" AS t1_r30, | |
"organizations"."twitter_username" AS t1_r31, | |
"organizations"."unspent_credits_count" AS t1_r32, | |
"organizations"."updated_at" AS t1_r33, "organizations"."url" AS t1_r34 FROM | |
"organization_memberships" INNER JOIN "organizations" ON | |
"organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? ORDER BY "organizations"."name" | |
ASC | |
- >- | |
SELECT "organization_memberships"."organization_id" FROM | |
"organization_memberships" WHERE "organization_memberships"."user_id" = $? | |
AND "organization_memberships"."type_of_user" = $? | |
- >- | |
SELECT "organization_memberships"."organization_id" FROM | |
"organization_memberships" WHERE "organization_memberships"."user_id" = $? | |
AND "organization_memberships"."type_of_user" IN ($?, $?) | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? AND | |
"organizations"."id" = $? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
ORDER BY "organizations"."id" ASC LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? ORDER BY "organizations"."name" | |
ASC | |
- >- | |
SELECT "organizations".* FROM "organizations" INNER JOIN | |
"organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT "organizations".* FROM "organizations" ORDER BY | |
"organizations"."name" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (name ILIKE ?) ORDER BY | |
"organizations"."name" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (old_slug = ? OR | |
old_old_slug = ?) LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE (organizations.id = ?) | |
ORDER BY "organizations"."id" ASC LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" = | |
$? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" = | |
$? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."id" IS | |
? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."secret" | |
= $? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."slug" = | |
$? LIMIT $? | |
- >- | |
SELECT "organizations".* FROM "organizations" WHERE "organizations"."slug" | |
IS ? LIMIT $? | |
- >- | |
SELECT "organizations"."id", "organizations"."profile_image" FROM | |
"organizations" WHERE "organizations"."slug" = $? LIMIT $? | |
- >- | |
SELECT "organizations"."id", "organizations"."slug", "organizations"."name", | |
"organizations"."summary", "organizations"."twitter_username", | |
"organizations"."github_username", "organizations"."url", | |
"organizations"."location", "organizations"."created_at", | |
"organizations"."profile_image", "organizations"."tech_stack", | |
"organizations"."tag_line", "organizations"."story" FROM "organizations" | |
WHERE "organizations"."slug" = $? LIMIT $? | |
- >- | |
SELECT "page_views".* FROM "page_views" ORDER BY "page_views"."id" DESC | |
LIMIT $? | |
- >- | |
SELECT "page_views".* FROM "page_views" WHERE "page_views"."article_id" = $? | |
AND "page_views"."user_id" = $? ORDER BY "page_views"."created_at" DESC | |
LIMIT $? | |
- SELECT "page_views".* FROM "page_views" WHERE "page_views"."article_id" = $? | |
- >- | |
SELECT "page_views".* FROM "page_views" WHERE "page_views"."user_id" = $? | |
ORDER BY "page_views"."id" DESC LIMIT $? | |
- SELECT "pages".* FROM "pages" ORDER BY "pages"."created_at" DESC | |
- SELECT "pages".* FROM "pages" WHERE "pages"."landing_page" = $? LIMIT $? | |
- >- | |
SELECT "pages".* FROM "pages" WHERE "pages"."slug" = $? AND | |
"pages"."is_top_level_path" = $? LIMIT $? | |
- SELECT "pages".* FROM "pages" WHERE "pages"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episode_appearances".* FROM "podcast_episode_appearances" | |
WHERE "podcast_episode_appearances"."user_id" = $? | |
- >- | |
SELECT "podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."id", "podcast_episodes"."podcast_id", | |
"podcast_episodes"."processed_html", "podcast_episodes"."published_at", | |
"podcast_episodes"."quote", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."website_url", "podcast_episodes"."id" AS t0_r0, | |
"podcasts"."id" AS t1_r0, "podcasts"."android_url" AS t1_r1, | |
"podcasts"."created_at" AS t1_r2, "podcasts"."creator_id" AS t1_r3, | |
"podcasts"."description" AS t1_r4, "podcasts"."feed_url" AS t1_r5, | |
"podcasts"."image" AS t1_r6, "podcasts"."itunes_url" AS t1_r7, | |
"podcasts"."main_color_hex" AS t1_r8, "podcasts"."overcast_url" AS t1_r9, | |
"podcasts"."pattern_image" AS t1_r10, "podcasts"."published" AS t1_r11, | |
"podcasts"."reachable" AS t1_r12, "podcasts"."slug" AS t1_r13, | |
"podcasts"."soundcloud_url" AS t1_r14, "podcasts"."status_notice" AS t1_r15, | |
"podcasts"."title" AS t1_r16, "podcasts"."twitter_username" AS t1_r17, | |
"podcasts"."unique_website_url?" AS t1_r18, "podcasts"."updated_at" AS | |
t1_r19, "podcasts"."website_url" AS t1_r20 FROM "podcast_episodes" LEFT | |
OUTER JOIN "podcasts" ON "podcasts"."id" = "podcast_episodes"."podcast_id" | |
INNER JOIN (SELECT "podcast_episodes"."id" AS pg_search_id, | |
(ts_rank((to_tsvector(?, coalesce("podcast_episodes"."body"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."subtitle"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."title"::text, ?))), | |
(to_tsquery(?, ? || ? || ? || ?)), ?)) AS rank FROM "podcast_episodes" WHERE | |
((to_tsvector(?, coalesce("podcast_episodes"."body"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."subtitle"::text, ?)) || | |
to_tsvector(?, coalesce("podcast_episodes"."title"::text, ?))) @@ | |
(to_tsquery(?, ? || ? || ? || ?)))) AS pg_search_1847632507b7f58950c333 ON | |
"podcast_episodes"."id" = pg_search_1847632507b7f58950c333.pg_search_id | |
WHERE "podcast_episodes"."reachable" = $? AND | |
"podcast_episodes"."podcast_id" IN (SELECT "podcasts"."id" FROM "podcasts" | |
WHERE "podcasts"."published" = $?) LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."id" AS t0_r0, | |
"podcast_episodes"."any_comments_hidden" AS t0_r1, "podcast_episodes"."body" | |
AS t0_r2, "podcast_episodes"."comments_count" AS t0_r3, | |
"podcast_episodes"."created_at" AS t0_r4, "podcast_episodes"."guid" AS | |
t0_r5, "podcast_episodes"."https" AS t0_r6, "podcast_episodes"."image" AS | |
t0_r7, "podcast_episodes"."itunes_url" AS t0_r8, | |
"podcast_episodes"."media_url" AS t0_r9, "podcast_episodes"."podcast_id" AS | |
t0_r10, "podcast_episodes"."processed_html" AS t0_r11, | |
"podcast_episodes"."published_at" AS t0_r12, "podcast_episodes"."quote" AS | |
t0_r13, "podcast_episodes"."reachable" AS t0_r14, | |
"podcast_episodes"."reactions_count" AS t0_r15, "podcast_episodes"."slug" AS | |
t0_r16, "podcast_episodes"."social_image" AS t0_r17, | |
"podcast_episodes"."status_notice" AS t0_r18, "podcast_episodes"."subtitle" | |
AS t0_r19, "podcast_episodes"."summary" AS t0_r20, | |
"podcast_episodes"."title" AS t0_r21, "podcast_episodes"."updated_at" AS | |
t0_r22, "podcast_episodes"."website_url" AS t0_r23, "podcasts"."id" AS | |
t1_r0, "podcasts"."android_url" AS t1_r1, "podcasts"."created_at" AS t1_r2, | |
"podcasts"."creator_id" AS t1_r3, "podcasts"."description" AS t1_r4, | |
"podcasts"."feed_url" AS t1_r5, "podcasts"."image" AS t1_r6, | |
"podcasts"."itunes_url" AS t1_r7, "podcasts"."main_color_hex" AS t1_r8, | |
"podcasts"."overcast_url" AS t1_r9, "podcasts"."pattern_image" AS t1_r10, | |
"podcasts"."published" AS t1_r11, "podcasts"."reachable" AS t1_r12, | |
"podcasts"."slug" AS t1_r13, "podcasts"."soundcloud_url" AS t1_r14, | |
"podcasts"."status_notice" AS t1_r15, "podcasts"."title" AS t1_r16, | |
"podcasts"."twitter_username" AS t1_r17, "podcasts"."unique_website_url?" AS | |
t1_r18, "podcasts"."updated_at" AS t1_r19, "podcasts"."website_url" AS | |
t1_r20 FROM "podcast_episodes" INNER JOIN "podcasts" ON "podcasts"."id" = | |
"podcast_episodes"."podcast_id" WHERE "podcast_episodes"."reachable" = $? | |
AND "podcasts"."published" = $? ORDER BY "podcast_episodes"."published_at" | |
DESC LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" INNER JOIN "podcasts" ON "podcasts"."id" = | |
"podcast_episodes"."podcast_id" WHERE "podcast_episodes"."podcast_id" = $? | |
AND "podcast_episodes"."reachable" = $? AND "podcasts"."published" = $? AND | |
"podcast_episodes"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."id" = $? LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."any_comments_hidden", | |
"podcast_episodes"."body", "podcast_episodes"."comments_count", | |
"podcast_episodes"."created_at", "podcast_episodes"."guid", | |
"podcast_episodes"."https", "podcast_episodes"."image", | |
"podcast_episodes"."itunes_url", "podcast_episodes"."media_url", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."processed_html", | |
"podcast_episodes"."published_at", "podcast_episodes"."quote", | |
"podcast_episodes"."reachable", "podcast_episodes"."reactions_count", | |
"podcast_episodes"."slug", "podcast_episodes"."social_image", | |
"podcast_episodes"."status_notice", "podcast_episodes"."subtitle", | |
"podcast_episodes"."summary", "podcast_episodes"."title", | |
"podcast_episodes"."updated_at", "podcast_episodes"."website_url" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."podcast_id" = $? AND | |
"podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."slug", | |
"podcast_episodes"."title", "podcast_episodes"."podcast_id" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."podcast_id" = $? AND | |
"podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."id", "podcast_episodes"."slug", | |
"podcast_episodes"."title", "podcast_episodes"."podcast_id" FROM | |
"podcast_episodes" WHERE "podcast_episodes"."reachable" = $? ORDER BY | |
"podcast_episodes"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "podcast_episodes"."slug", "podcast_episodes"."title", | |
"podcast_episodes"."podcast_id", "podcast_episodes"."image" FROM | |
"podcast_episodes" WHERE (published_at > ?) ORDER BY | |
"podcast_episodes"."published_at" DESC | |
- >- | |
SELECT "podcast_ownerships".* FROM "podcast_ownerships" WHERE | |
"podcast_ownerships"."user_id" = $? | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" = $? LIMIT $? | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" = $? | |
- >- | |
SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" IN (SELECT | |
"podcast_episodes"."podcast_id" FROM "podcast_episodes" WHERE | |
"podcast_episodes"."reachable" = $?) AND "podcasts"."published" = $? AND | |
"podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."id" IN (SELECT | |
"podcast_episodes"."podcast_id" FROM "podcast_episodes" WHERE | |
"podcast_episodes"."reachable" = $?) AND "podcasts"."published" = $? ORDER | |
BY "podcasts"."title" ASC | |
- SELECT "podcasts".* FROM "podcasts" WHERE "podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT "poll_options".* FROM "poll_options" WHERE "poll_options"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "poll_options"."id", "poll_options"."poll_votes_count" FROM | |
"poll_options" WHERE "poll_options"."poll_id" = $? | |
- >- | |
SELECT "poll_skips".* FROM "poll_skips" WHERE "poll_skips"."poll_id" = $? | |
AND "poll_skips"."user_id" = $? ORDER BY "poll_skips"."id" ASC LIMIT $? | |
- SELECT "poll_skips".* FROM "poll_skips" WHERE "poll_skips"."user_id" = $? | |
- >- | |
SELECT "poll_votes".* FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? | |
AND "poll_votes"."user_id" = $? ORDER BY "poll_votes"."id" ASC LIMIT $? | |
- SELECT "poll_votes".* FROM "poll_votes" WHERE "poll_votes"."user_id" = $? | |
- SELECT "polls".* FROM "polls" WHERE "polls"."article_id" = $? | |
- SELECT "polls".* FROM "polls" WHERE "polls"."id" = $? LIMIT $? | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" ORDER BY | |
"profile_field_groups"."name" ASC | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" WHERE | |
"profile_field_groups"."id" = $? LIMIT $? | |
- >- | |
SELECT "profile_field_groups".* FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? LIMIT $? | |
- SELECT "profile_field_groups".* FROM "profile_field_groups" | |
- >- | |
SELECT "profile_field_groups"."id" AS t0_r0, | |
"profile_field_groups"."created_at" AS t0_r1, | |
"profile_field_groups"."description" AS t0_r2, "profile_field_groups"."name" | |
AS t0_r3, "profile_field_groups"."updated_at" AS t0_r4, | |
"profile_fields"."id" AS t1_r0, "profile_fields"."attribute_name" AS t1_r1, | |
"profile_fields"."created_at" AS t1_r2, "profile_fields"."description" AS | |
t1_r3, "profile_fields"."display_area" AS t1_r4, | |
"profile_fields"."input_type" AS t1_r5, "profile_fields"."label" AS t1_r6, | |
"profile_fields"."placeholder_text" AS t1_r7, | |
"profile_fields"."profile_field_group_id" AS t1_r8, | |
"profile_fields"."show_in_onboarding" AS t1_r9, | |
"profile_fields"."updated_at" AS t1_r10 FROM "profile_field_groups" INNER | |
JOIN "profile_fields" ON "profile_fields"."profile_field_group_id" = | |
"profile_field_groups"."id" ORDER BY "profile_field_groups"."name" ASC | |
- >- | |
SELECT "profile_field_groups"."id" AS t0_r0, | |
"profile_field_groups"."created_at" AS t0_r1, | |
"profile_field_groups"."description" AS t0_r2, "profile_field_groups"."name" | |
AS t0_r3, "profile_field_groups"."updated_at" AS t0_r4, | |
"profile_fields"."id" AS t1_r0, "profile_fields"."attribute_name" AS t1_r1, | |
"profile_fields"."created_at" AS t1_r2, "profile_fields"."description" AS | |
t1_r3, "profile_fields"."display_area" AS t1_r4, | |
"profile_fields"."input_type" AS t1_r5, "profile_fields"."label" AS t1_r6, | |
"profile_fields"."placeholder_text" AS t1_r7, | |
"profile_fields"."profile_field_group_id" AS t1_r8, | |
"profile_fields"."show_in_onboarding" AS t1_r9, | |
"profile_fields"."updated_at" AS t1_r10 FROM "profile_field_groups" LEFT | |
OUTER JOIN "profile_fields" ON "profile_fields"."profile_field_group_id" = | |
"profile_field_groups"."id" WHERE "profile_fields"."show_in_onboarding" = $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" ORDER BY | |
"profile_fields"."id" ASC LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE "profile_fields"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" = $? AND "profile_fields"."description" | |
= $? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" = $? AND "profile_fields"."description" | |
IS ? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" IS ? AND "profile_fields"."description" | |
= $? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."label" = $? AND "profile_fields"."input_type" = $? AND | |
"profile_fields"."placeholder_text" IS ? AND "profile_fields"."description" | |
IS ? AND "profile_fields"."display_area" = $? AND | |
"profile_fields"."show_in_onboarding" = $? AND | |
"profile_fields"."profile_field_group_id" = $? LIMIT $? | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IN ($?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "profile_fields".* FROM "profile_fields" WHERE | |
"profile_fields"."profile_field_group_id" IS ? ORDER BY | |
"profile_fields"."label" ASC | |
- SELECT "profile_fields".* FROM "profile_fields" | |
- >- | |
SELECT "profile_fields"."attribute_name" FROM "profile_fields" WHERE | |
"profile_fields"."display_area" = $? | |
- >- | |
SELECT "profile_pins".* FROM "profile_pins" WHERE | |
"profile_pins"."pinnable_id" = $? AND "profile_pins"."pinnable_type" = $? | |
- >- | |
SELECT "profile_pins".* FROM "profile_pins" WHERE | |
"profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = $? AND | |
"profile_pins"."id" = $? ORDER BY "profile_pins"."id" ASC LIMIT $? | |
- SELECT "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" ORDER BY "rating_votes"."id" | |
DESC LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE | |
"rating_votes"."article_id" = $? AND "rating_votes"."user_id" = $? ORDER BY | |
"rating_votes"."id" ASC LIMIT $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE | |
"rating_votes"."article_id" = $? | |
- >- | |
SELECT "rating_votes".* FROM "rating_votes" WHERE "rating_votes"."user_id" = | |
$? AND "rating_votes"."article_id" = $? ORDER BY "rating_votes"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" ORDER BY "reactions"."id" DESC LIMIT | |
$? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."category" IN ($?, | |
$?, $?) ORDER BY "reactions"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."id" = $? AND | |
"reactions"."reactable_type" = $? LIMIT $? | |
- SELECT "reactions".* FROM "reactions" WHERE "reactions"."id" = $? LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" IN ($?, $?) ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" IN ($?, $?) | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."reactable_id" = $? | |
AND "reactions"."reactable_type" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."category" = $? ORDER BY "reactions"."id" ASC LIMIT $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."reactable_id" = $? | |
- >- | |
SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? ORDER | |
BY "reactions"."id" DESC LIMIT $? | |
- SELECT "reactions".* FROM "reactions" WHERE "reactions"."user_id" = $? | |
- >- | |
SELECT "reactions"."id", "reactions"."reactable_id", | |
"reactions"."created_at", "reactions"."status" FROM "reactions" WHERE | |
"reactions"."category" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."status" != $? ORDER BY "reactions"."created_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "reactions"."id", "reactions"."user_id", | |
"reactions"."reactable_type", "reactions"."reactable_id" FROM "reactions" | |
WHERE "reactions"."category" = $? AND "reactions"."status" = $? ORDER BY | |
"reactions"."updated_at" DESC | |
- >- | |
SELECT "reactions"."reactable_id" FROM "reactions" WHERE | |
"reactions"."category" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."status" != $? ORDER BY | |
"reactions"."created_at" DESC | |
- SELECT "response_templates".* FROM "response_templates" LIMIT $? OFFSET $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" = $? AND "response_templates"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" = $? LIMIT $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."id" IS ? AND "response_templates"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."type_of" = $? AND "response_templates"."user_id" = $? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."type_of" = $? AND "response_templates"."user_id" IS ? | |
- >- | |
SELECT "response_templates".* FROM "response_templates" WHERE | |
"response_templates"."user_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)) OR ((roles.name = ?) AND (roles.resource_type = ?) | |
AND (roles.resource_id = ?)))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND (((roles.name | |
= ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS ?))) | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? AND "roles"."resource_type" = $? AND | |
"roles"."resource_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? AND "roles"."resource_type" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? | |
- >- | |
SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? AND | |
"roles"."resource_type" = $? AND "roles"."resource_id" = $? ORDER BY | |
"roles"."id" ASC LIMIT $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? AND | |
"roles"."resource_type" IS ? AND "roles"."resource_id" IS ? ORDER BY | |
"roles"."id" ASC LIMIT $? | |
- SELECT "roles".* FROM "roles" WHERE "roles"."name" = $? LIMIT $? | |
- >- | |
SELECT "roles".* FROM "roles" WHERE "roles"."resource_id" = $? AND | |
"roles"."resource_type" = $? | |
- >- | |
SELECT "roles"."id" FROM "roles" WHERE "roles"."name" IN ($?, $?, $?, $?, | |
$?, $?) ? LIMIT $? | |
- >- | |
SELECT "roles"."name" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" | |
= "users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
- >- | |
SELECT "roles"."resource_id" FROM "roles" INNER JOIN "users_roles" ON | |
"roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $? | |
AND "roles"."name" = $? | |
- >- | |
SELECT "settings_authentications".* FROM "settings_authentications" WHERE | |
"settings_authentications"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_campaigns".* FROM "settings_campaigns" WHERE | |
"settings_campaigns"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_communities".* FROM "settings_communities" WHERE | |
"settings_communities"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_rate_limits".* FROM "settings_rate_limits" WHERE | |
"settings_rate_limits"."var" = $? LIMIT $? | |
- >- | |
SELECT "settings_user_experiences".* FROM "settings_user_experiences" WHERE | |
"settings_user_experiences"."var" = $? LIMIT $? | |
- >- | |
SELECT "site_configs".* FROM "site_configs" WHERE "site_configs"."var" = $? | |
LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" ORDER BY | |
"sponsorships"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
LIMIT $? | |
- SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."level" = | |
$? AND "sponsorships"."status" = $? ORDER BY | |
"sponsorships"."featured_number" ASC | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE | |
"sponsorships"."organization_id" = $? AND "sponsorships"."status" = $? ORDER | |
BY "sponsorships"."id" ASC LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE | |
"sponsorships"."sponsorable_id" = $? AND "sponsorships"."sponsorable_type" = | |
$? LIMIT $? | |
- >- | |
SELECT "sponsorships".* FROM "sponsorships" WHERE "sponsorships"."user_id" = | |
$? | |
- >- | |
SELECT "tag_adjustments".* FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" = $? | |
- >- | |
SELECT "tag_adjustments".* FROM "tag_adjustments" WHERE | |
"tag_adjustments"."id" = $? LIMIT $? | |
- >- | |
SELECT "tag_adjustments"."tag_name" FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" = $? AND "tag_adjustments"."adjustment_type" | |
= $? AND "tag_adjustments"."status" = $? | |
- >- | |
SELECT "tag_adjustments"."tag_name" FROM "tag_adjustments" WHERE | |
"tag_adjustments"."article_id" IS ? AND "tag_adjustments"."adjustment_type" | |
= $? AND "tag_adjustments"."status" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."tagger_id" IS ? AND | |
"taggings"."tagger_type" IS ? AND "taggings"."context" = $? AND | |
"taggings"."tag_id" IN ($?, $?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" = $? | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = $? | |
AND "taggings"."taggable_id" IN ($?, $?, $?, $?, $?, $?, $?) | |
- SELECT "tags".* FROM "tags" ? LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "roles" ON "roles".resource_type IN | |
(?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND (taggings.context = ? AND | |
taggings.tagger_id IS ?) | |
- >- | |
SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- SELECT "tags".* FROM "tags" ORDER BY "tags"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ? OR name = ? OR name | |
= ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ? OR name = ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ? OR name = ?) | |
- SELECT "tags".* FROM "tags" WHERE (name = ?) | |
- SELECT "tags".* FROM "tags" WHERE "tags"."id" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."id" = $? | |
- 'SELECT "tags".* FROM "tags" WHERE "tags"."id" IN ($?, $?)' | |
- SELECT "tags".* FROM "tags" WHERE "tags"."mod_chat_channel_id" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."name" = $? LIMIT $? | |
- SELECT "tags".* FROM "tags" WHERE "tags"."name" IS ? LIMIT $? | |
- >- | |
SELECT "tags".* FROM "tags" WHERE "tags"."supported" IS NOT ? ORDER BY | |
"tags"."taggings_count" DESC LIMIT $? OFFSET $? | |
- SELECT "tags"."badge_id" FROM "tags" WHERE "tags"."name" = $? | |
- >- | |
SELECT "tags"."bg_color_hex", "tags"."text_color_hex" FROM "tags" WHERE | |
"tags"."name" = $? LIMIT $? | |
- >- | |
SELECT "tags"."id" FROM "tags" INNER JOIN "roles" ON "roles".resource_type | |
IN (?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) | |
- >- | |
SELECT "tags"."id" FROM "tags" INNER JOIN "taggings" ON "tags"."id" = | |
"taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "tags"."id", "tags"."name" FROM "tags" WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."bg_color_hex", | |
"tags"."text_color_hex" FROM "tags" ORDER BY "tags"."taggings_count" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."bg_color_hex", | |
"tags"."text_color_hex" FROM "tags" WHERE "tags"."name" IN ($?, $?, $?) | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."hotness_score", | |
"tags"."rules_html", "tags"."supported", "tags"."short_summary" FROM "tags" | |
INNER JOIN (SELECT "tags"."id" AS pg_search_id, (ts_rank((to_tsvector(?, | |
coalesce("tags"."name"::text, ?))), (?), ?)) AS rank FROM "tags" WHERE | |
((to_tsvector(?, coalesce("tags"."name"::text, ?))) @@ (?))) AS | |
pg_search_978c2f8941354cf552831b ON "tags"."id" = | |
pg_search_978c2f8941354cf552831b.pg_search_id WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC | |
- >- | |
SELECT "tags"."id", "tags"."name", "tags"."hotness_score", | |
"tags"."rules_html", "tags"."supported", "tags"."short_summary" FROM "tags" | |
INNER JOIN (SELECT "tags"."id" AS pg_search_id, (ts_rank((to_tsvector(?, | |
coalesce("tags"."name"::text, ?))), (to_tsquery(?, ? || ? || ? || ?)), ?)) | |
AS rank FROM "tags" WHERE ((to_tsvector(?, coalesce("tags"."name"::text, | |
?))) @@ (to_tsquery(?, ? || ? || ? || ?)))) AS | |
pg_search_978c2f8941354cf552831b ON "tags"."id" = | |
pg_search_978c2f8941354cf552831b.pg_search_id WHERE "tags"."supported" = $? | |
ORDER BY "tags"."hotness_score" DESC | |
- SELECT "tags"."name" FROM "tags" WHERE "tags"."id" = $? | |
- >- | |
SELECT "tags"."name" FROM "tags" WHERE "tags"."id" IN (SELECT | |
"follows"."followable_id" FROM "follows" WHERE "follows"."follower_id" = $? | |
AND "follows"."followable_type" = $?) | |
- SELECT "tags"."name" FROM "tags" WHERE "tags"."requires_approval" = $? | |
- >- | |
SELECT "tags"."name", "tags"."bg_color_hex", "tags"."text_color_hex" FROM | |
"tags" WHERE "tags"."id" = $? LIMIT $? | |
- >- | |
SELECT "tags"."name", "tags"."bg_color_hex", "tags"."text_color_hex" FROM | |
"tags" WHERE "tags"."name" = $? | |
- >- | |
SELECT "tags"."requires_approval" FROM "tags" INNER JOIN "taggings" ON | |
"tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? | |
- >- | |
SELECT "tags"."social_preview_template" FROM "tags" INNER JOIN "taggings" ON | |
"tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."context" = $? AND | |
"tags"."social_preview_template" IS NOT ? AND | |
"tags"."social_preview_template" != $? ORDER BY "tags"."id" ASC LIMIT $? | |
- >- | |
SELECT "tweets".* FROM "tweets" WHERE "tweets"."twitter_id_code" = $? LIMIT | |
$? | |
- >- | |
SELECT "user_blocks".* FROM "user_blocks" WHERE "user_blocks"."blocked_id" = | |
$? AND "user_blocks"."blocker_id" = $? LIMIT $? | |
- >- | |
SELECT "user_blocks"."blocked_id" FROM "user_blocks" WHERE | |
"user_blocks"."blocker_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."author_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? | |
- >- | |
SELECT "user_subscriptions".* FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? ORDER BY | |
"user_subscriptions"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id" FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."role" = $? | |
- >- | |
SELECT "users"."id" FROM "users" INNER JOIN "users_notification_settings" | |
"notification_setting" ON "notification_setting"."user_id" = "users"."id" | |
WHERE "notification_setting"."mobile_comment_notifications" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? ORDER BY "users"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "user_subscriptions" ON "users"."id" = | |
"user_subscriptions"."subscriber_id" WHERE "user_subscriptions"."author_id" | |
= $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" INNER JOIN | |
"users_notification_settings" "notification_setting" ON | |
"notification_setting"."user_id" = "users"."id" WHERE (((roles.name = ?) AND | |
(roles.resource_type IS ?) AND (roles.resource_id IS ?))) AND | |
(last_moderation_notification < ?) AND | |
"notification_setting"."mod_roundrobin_notifications" = $? ORDER BY RANDOM() | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
(((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?))) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE (old_username = ? OR old_old_username = ?) LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE (users.id = ?) ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."email" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."email" = $? ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."id" IN ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."invitation_token" = $? ORDER BY "users"."id" ASC | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? AND "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? AND "users"."username" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."registered" = $? ORDER BY "users"."created_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."remember_token" = $? ORDER BY "users"."id" ASC LIMIT | |
$? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."twitter_username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" = $? | |
- >- | |
SELECT "users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", "users"."email", | |
"users"."encrypted_password", "users"."export_requested", | |
"users"."exported_at", "users"."facebook_username", | |
"users"."failed_attempts", "users"."feed_fetched_at", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."invitation_accepted_at", | |
"users"."invitation_created_at", "users"."invitation_limit", | |
"users"."invitation_sent_at", "users"."invitation_token", | |
"users"."invitations_count", "users"."invited_by_id", | |
"users"."invited_by_type", "users"."last_article_at", | |
"users"."last_comment_at", "users"."last_followed_at", | |
"users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."monthly_dues", "users"."name", | |
"users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."profile_image", "users"."profile_updated_at", | |
"users"."rating_votes_count", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."workshop_expiration" FROM | |
"users" WHERE "users"."username" IS ? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" ORDER BY (((articles_count + comments_count | |
+ reactions_count + badge_achievements_count) * ?) * reputation_modifier) | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE (to_tsvector(?, coalesce(name::text, | |
?)) @@ to_tsquery(?, ? || ?) OR to_tsvector(?, coalesce(username::text, ?)) | |
@@ to_tsquery(?, ? || ?)) LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE (to_tsvector(?, coalesce(name::text, | |
?)) @@ to_tsquery(?, ? || ?) OR to_tsvector(?, coalesce(username::text, ?)) | |
@@ to_tsquery(?, ? || ?)) ORDER BY (((articles_count + comments_count + | |
reactions_count + badge_achievements_count) * ?) * reputation_modifier) DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."profile_image", | |
"users"."username" FROM "users" WHERE "users"."id" = $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."articles_count" >= $? | |
AND "users"."comments_count" >= $? ORDER BY "users"."updated_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."comments_count" >= $? | |
ORDER BY "users"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."name", "users"."username", "summary", | |
"users"."profile_image" FROM "users" WHERE "users"."id" = $? ORDER BY | |
"users"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."profile_image" FROM "users" WHERE | |
"users"."registered" = $? AND "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username" FROM "users" WHERE "users"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."comments_count", | |
"users"."badge_achievements_count", "users"."last_comment_at" FROM "users" | |
INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" INNER | |
JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
"users_roles"."role_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."comments_count", | |
"users"."badge_achievements_count", "users"."last_comment_at" FROM "users" | |
WHERE (id NOT IN (SELECT user_id FROM users_roles WHERE role_id IN (SELECT | |
"roles"."id" FROM "roles" WHERE "roles"."name" IN (?, ?, ?, ?, ?, ?)))) | |
ORDER BY "users"."comments_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", "summary", | |
"users"."twitter_username", "users"."github_username", "website_url", | |
"location", "users"."created_at", "users"."profile_image", | |
"users"."registered" FROM "users" WHERE "users"."id" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", "summary", | |
"users"."twitter_username", "users"."github_username", "website_url", | |
"location", "users"."created_at", "users"."profile_image", | |
"users"."registered" FROM "users" WHERE "users"."username" = $? LIMIT $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", | |
"users"."twitter_username", "users"."github_username", | |
"users"."profile_image", "website_url", "location", "summary", | |
"users"."created_at" FROM "users" INNER JOIN "organization_memberships" ON | |
"users"."id" = "organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT "users"."id", "users"."username", "users"."name", | |
"users"."updated_at" FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? | |
- >- | |
SELECT "users"."name", "users"."id" FROM "users" INNER JOIN | |
"organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? | |
- >- | |
SELECT "users"."name", "users"."username" FROM "users" WHERE "users"."id" = | |
$? ORDER BY "users"."created_at" ASC | |
- >- | |
SELECT "users"."username" FROM "users" INNER JOIN "podcast_ownerships" ON | |
"users"."id" = "podcast_ownerships"."user_id" WHERE | |
"podcast_ownerships"."podcast_id" = $? | |
- >- | |
SELECT "users"."username", "users"."name", "users"."id" FROM "users" WHERE | |
"users"."registered" = $? AND (length(name) > ?) AND (created_at > ?) AND | |
NOT (username LIKE ?) ORDER BY "users"."created_at" DESC LIMIT $? | |
- >- | |
SELECT "users"."username", "users"."profile_image", "users"."id" FROM | |
"users" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" | |
INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" WHERE | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?)) OR ((roles.name = ?) AND (roles.resource_type = ?) | |
AND (roles.resource_id = ?)))) | |
- >- | |
SELECT "users".id, "users".id, COUNT("badge_achievements".id)*? AS count, | |
MAX("users".badge_achievements_count) AS badge_achievements_count FROM | |
"users" LEFT JOIN "badge_achievements" AS badge_achievements ON "users".id = | |
badge_achievements.user_id WHERE "users"."id" = $? GROUP BY "users"."id" | |
ORDER BY "users"."id" ASC LIMIT $? | |
- >- | |
SELECT "users_gdpr_delete_requests".* FROM "users_gdpr_delete_requests" | |
ORDER BY "users_gdpr_delete_requests"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "users_gdpr_delete_requests".* FROM "users_gdpr_delete_requests" | |
WHERE "users_gdpr_delete_requests"."id" = $? LIMIT $? | |
- >- | |
SELECT "users_notification_settings".* FROM "users_notification_settings" | |
WHERE "users_notification_settings"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "users_settings".* FROM "users_settings" WHERE | |
"users_settings"."user_id" = $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."id" = $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."oauth_application_id" = $? AND "webhook_endpoints"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? AND | |
"webhook_endpoints"."oauth_application_id" = $? ORDER BY | |
"webhook_endpoints"."id" ASC | |
- >- | |
SELECT "webhook_endpoints"."id", "webhook_endpoints"."user_id", | |
"webhook_endpoints"."source", "webhook_endpoints"."target_url", | |
"webhook_endpoints"."events", "webhook_endpoints"."created_at" FROM | |
"webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? ORDER BY | |
"webhook_endpoints"."id" ASC | |
- >- | |
SELECT "webhook_endpoints"."target_url" FROM "webhook_endpoints" WHERE | |
(events @> ARRAY[?]::varchar[]) AND "webhook_endpoints"."user_id" = $? | |
- >- | |
SELECT c.relname FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = | |
c.relnamespace WHERE n.nspname = ANY (current_schemas(?)) AND c.relname = ? | |
AND c.relkind IN (?,?) | |
- >- | |
SELECT podcasts.*, count(podcast_episodes) as episodes_count FROM "podcasts" | |
LEFT OUTER JOIN "podcast_episodes" ON "podcast_episodes"."podcast_id" = | |
"podcasts"."id" GROUP BY "podcasts"."id" ORDER BY "podcasts"."created_at" | |
DESC LIMIT $? OFFSET $? | |
- 'SELECT var, value FROM "settings_authentications"' | |
- 'SELECT var, value FROM "settings_campaigns"' | |
- 'SELECT var, value FROM "settings_communities"' | |
- 'SELECT var, value FROM "settings_rate_limits"' | |
- 'SELECT var, value FROM "settings_smtp"' | |
- 'SELECT var, value FROM "settings_user_experiences"' | |
- 'SELECT var, value FROM "site_configs"' | |
- UPDATE "articles" SET "any_comments_hidden" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "approved" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "archived" = $?, "edited_at" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_organization" = $?, | |
"cached_tag_list" = $?, "edited_at" = $?, "path" = $?, "processed_html" = | |
$?, "title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"collection_id" = $?, "edited_at" = $?, "processed_html" = $?, "updated_at" | |
= $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"collection_id" = $?, "processed_html" = $?, "title" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "edited_at" = $?, "processed_html" = $?, "published" = | |
$?, "title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "featured_number" = $?, "last_comment_at" = $?, | |
"main_image" = $?, "nth_published_by_author" = $?, "path" = $?, | |
"processed_html" = $?, "published" = $?, "published_at" = $?, "slug" = $?, | |
"title" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"description" = $?, "processed_html" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"edited_at" = $?, "featured_number" = $?, "last_comment_at" = $?, | |
"nth_published_by_author" = $?, "path" = $?, "processed_html" = $?, | |
"published_at" = $?, "slug" = $?, "title" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"edited_at" = $?, "processed_html" = $?, "title" = $?, "updated_at" = $? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"featured_number" = $?, "last_comment_at" = $?, "nth_published_by_author" = | |
$?, "path" = $?, "processed_html" = $?, "published" = $?, "published_at" = | |
$?, "slug" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "published" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "title" = $?, "updated_at" = $? WHERE "articles"."id" | |
= $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "cached_tag_list" = $?, | |
"processed_html" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "edited_at" = $?, "published" = | |
$?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "body_markdown" = $?, "published" = $?, "updated_at" = | |
$? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "cached_user" = $?, | |
"cached_user_name" = $?, "cached_user_username" = $?, "edited_at" = $?, | |
"path" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "cached_user" = $?, | |
"cached_user_name" = $?, "cached_user_username" = $?, "edited_at" = $?, | |
"path" = $?, "updated_at" = $?, "user_id" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "edited_at" = $?, | |
"organization_id" = $?, "path" = $?, "updated_at" = $? WHERE "articles"."id" | |
= $? | |
- >- | |
UPDATE "articles" SET "cached_organization" = $?, "organization_id" = $?, | |
"path" = $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_tag_list" = $?, "collection_id" = $?, "title" | |
= $?, "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "cached_tag_list" = $?, "title" = $?, "updated_at" = | |
$? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "comments_count" = COALESCE("comments_count", ?) + ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "comments_count" = COALESCE("comments_count", ?) - ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "edited_at" = $?, "organization_id" = $?, "updated_at" | |
= $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "edited_at" = $?, "updated_at" = $?, | |
"video_thumbnail_url" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "featured" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "organic_page_views_count" = $?, | |
"organic_page_views_past_week_count" = $?, | |
"organic_page_views_past_month_count" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "organic_page_views_past_week_count" = $?, | |
"organic_page_views_past_month_count" = $? WHERE "articles"."id" = $? | |
- UPDATE "articles" SET "page_views_count" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = $? WHERE "articles"."id" = | |
$? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) + ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) - ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "published" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "published_at" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "rating_votes_count" = COALESCE("rating_votes_count", | |
?) + ? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "reactions_count" = COALESCE("reactions_count", ?) + ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "reactions_count" = COALESCE("reactions_count", ?) - ? | |
WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "receive_notifications" = $?, "updated_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "score" = $?, "comment_score" = $?, "hotness_score" = | |
$?, "spaminess_rating" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $? WHERE "articles"."collection_id" = | |
$? | |
- UPDATE "articles" SET "updated_at" = $? WHERE "articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $?, "last_comment_at" = $? WHERE | |
"articles"."id" = $? | |
- >- | |
UPDATE "articles" SET "updated_at" = $?, "video_state" = $? WHERE | |
"articles"."id" = $? | |
- UPDATE "articles" SET "user_id" = $? WHERE "articles"."user_id" = $? | |
- >- | |
UPDATE "articles" SET "user_subscriptions_count" = | |
COALESCE("user_subscriptions_count", ?) + ? WHERE "articles"."id" = $? | |
- UPDATE "audit_logs" SET "user_id" = $? WHERE "audit_logs"."user_id" = $? | |
- >- | |
UPDATE "badge_achievements" SET "rewarder_id" = $? WHERE | |
"badge_achievements"."rewarder_id" = $? | |
- >- | |
UPDATE "badge_achievements" SET "user_id" = $? WHERE | |
"badge_achievements"."user_id" = $? | |
- >- | |
UPDATE "badges" SET "badge_image" = $?, "credits_awarded" = $?, | |
"description" = $?, "slug" = $?, "title" = $?, "updated_at" = $? WHERE | |
"badges"."id" = $? | |
- >- | |
UPDATE "banished_users" SET "banished_by_id" = $? WHERE | |
"banished_users"."banished_by_id" = $? | |
- >- | |
UPDATE "broadcasts" SET "active" = $?, "active_status_updated_at" = $?, | |
"processed_html" = $?, "title" = $?, "updated_at" = $? WHERE | |
"broadcasts"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "has_unopened_messages" = $? WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND (last_opened_at < ?) | |
AND "chat_channel_memberships"."user_id" != $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "last_opened_at" = $?, "updated_at" = | |
$? WHERE "chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "role" = $?, "updated_at" = $? WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "show_global_badge_notification" = $?, | |
"updated_at" = $? WHERE "chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "status" = $?, "updated_at" = $? WHERE | |
"chat_channel_memberships"."id" = $? | |
- >- | |
UPDATE "chat_channel_memberships" SET "user_id" = $? WHERE | |
"chat_channel_memberships"."user_id" = $? | |
- >- | |
UPDATE "chat_channels" SET "channel_name" = $?, "slug" = $?, "updated_at" = | |
$? WHERE "chat_channels"."id" = $? | |
- >- | |
UPDATE "chat_channels" SET "status" = $?, "updated_at" = $? WHERE | |
"chat_channels"."id" = $? | |
- >- | |
UPDATE "chat_channels" SET "updated_at" = $?, "last_message_at" = $? WHERE | |
"chat_channels"."id" = $? | |
- >- | |
UPDATE "classified_listing_categories" SET "cost" = $?, "name" = $?, "rules" | |
= $?, "slug" = $?, "social_preview_color" = $?, "social_preview_description" | |
= $?, "updated_at" = $? WHERE "classified_listing_categories"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "body_markdown" = $?, "cached_tag_list" = | |
$?, "processed_html" = $?, "title" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "body_markdown" = $?, "processed_html" = | |
$?, "updated_at" = $? WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "bumped_at" = $?, "originally_published_at" | |
= $?, "published" = $?, "updated_at" = $? WHERE "classified_listings"."id" = | |
$? | |
- >- | |
UPDATE "classified_listings" SET "bumped_at" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "cached_tag_list" = $?, "title" = $?, | |
"updated_at" = $? WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "cached_tag_list" = $?, "updated_at" = $? | |
WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "organization_id" = $?, "updated_at" = $? | |
WHERE "classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "published" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- >- | |
UPDATE "classified_listings" SET "title" = $?, "updated_at" = $? WHERE | |
"classified_listings"."id" = $? | |
- UPDATE "collections" SET "updated_at" = $? WHERE "collections"."id" = $? | |
- >- | |
UPDATE "comments" SET "body_markdown" = $?, "edited_at" = $?, | |
"markdown_character_count" = $?, "processed_html" = $?, "updated_at" = $? | |
WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "commentable_id" = $?, "commentable_type" = $? WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
UPDATE "comments" SET "hidden_by_commentable_user" = $?, "updated_at" = $? | |
WHERE "comments"."id" = $? | |
- UPDATE "comments" SET "id_code" = $? WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "public_reactions_count" = $? WHERE "comments"."id" = | |
$? | |
- >- | |
UPDATE "comments" SET "public_reactions_count" = | |
COALESCE("public_reactions_count", ?) + ? WHERE "comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "receive_notifications" = $?, "updated_at" = $? WHERE | |
"comments"."id" = $? | |
- >- | |
UPDATE "comments" SET "score" = $?, "spaminess_rating" = $? WHERE | |
"comments"."id" = $? | |
- UPDATE "comments" SET "updated_at" = $? WHERE "comments"."id" = $? | |
- UPDATE "comments" SET "user_id" = $? WHERE "comments"."user_id" = $? | |
- >- | |
UPDATE "consumer_apps" SET "app_bundle" = $?, "auth_key" = $?, "updated_at" | |
= $? WHERE "consumer_apps"."id" = $? | |
- >- | |
UPDATE "credits" SET "purchase_id" = $?, "purchase_type" = $? WHERE | |
"credits"."purchase_id" = $? AND "credits"."purchase_type" = $? | |
- >- | |
UPDATE "credits" SET "spent" = $?, "spent_at" = $?, "purchase_type" = $?, | |
"purchase_id" = $? WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."organization_id" = $? AND "credits"."spent" = $? | |
LIMIT $?) | |
- >- | |
UPDATE "credits" SET "spent" = $?, "spent_at" = $?, "purchase_type" = $?, | |
"purchase_id" = $? WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."user_id" = $? AND "credits"."spent" = $? LIMIT | |
$?) | |
- >- | |
UPDATE "display_ads" SET "approved" = $?, "body_markdown" = $?, | |
"organization_id" = $?, "processed_html" = $?, "published" = $?, | |
"updated_at" = $? WHERE "display_ads"."id" = $? | |
- >- | |
UPDATE "display_ads" SET "success_rate" = $?, "clicks_count" = $?, | |
"impressions_count" = $? WHERE "display_ads"."id" = $? | |
- >- | |
UPDATE "email_authorizations" SET "updated_at" = $?, "verified_at" = $? | |
WHERE "email_authorizations"."id" = $? | |
- >- | |
UPDATE "events" SET "category" = $?, "description_html" = $?, | |
"description_markdown" = $?, "ends_at" = $?, "starts_at" = $?, "title" = $?, | |
"updated_at" = $? WHERE "events"."id" = $? | |
- >- | |
UPDATE "events" SET "live_now" = $?, "updated_at" = $? WHERE "events"."id" = | |
$? | |
- >- | |
UPDATE "feedback_messages" SET "affected_id" = $? WHERE | |
"feedback_messages"."affected_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "offender_id" = $? WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "reporter_id" = $? WHERE | |
"feedback_messages"."reporter_id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "status" = $?, "updated_at" = $? WHERE | |
"feedback_messages"."id" = $? | |
- >- | |
UPDATE "feedback_messages" SET "updated_at" = $? WHERE | |
"feedback_messages"."id" = $? | |
- >- | |
UPDATE "follows" SET "explicit_points" = $?, "points" = $?, "updated_at" = | |
$? WHERE "follows"."id" = $? | |
- >- | |
UPDATE "follows" SET "followable_id" = $? WHERE "follows"."followable_id" = | |
$? AND "follows"."followable_type" = $? | |
- >- | |
UPDATE "follows" SET "follower_id" = $? WHERE "follows"."follower_id" = $? | |
AND "follows"."follower_type" = $? | |
- UPDATE "github_repos" SET "user_id" = $? WHERE "github_repos"."user_id" = $? | |
- >- | |
UPDATE "html_variant_successes" SET "article_id" = $? WHERE | |
"html_variant_successes"."article_id" = $? | |
- >- | |
UPDATE "html_variant_trials" SET "article_id" = $? WHERE | |
"html_variant_trials"."article_id" = $? | |
- >- | |
UPDATE "html_variants" SET "approved" = $?, "group" = $?, "html" = $?, | |
"name" = $?, "published" = $?, "updated_at" = $? WHERE "html_variants"."id" | |
= $? | |
- UPDATE "mentions" SET "user_id" = $? WHERE "mentions"."user_id" = $? | |
- >- | |
UPDATE "navigation_links" SET "name" = $?, "updated_at" = $? WHERE | |
"navigation_links"."id" = $? | |
- >- | |
UPDATE "notifications" SET "read" = $? WHERE | |
"notifications"."organization_id" = $? AND "notifications"."read" = $? | |
- >- | |
UPDATE "notifications" SET "read" = $? WHERE "notifications"."user_id" = $? | |
AND "notifications"."read" = $? | |
- >- | |
UPDATE "oauth_access_tokens" SET "revoked_at" = $? WHERE | |
"oauth_access_tokens"."id" = $? | |
- >- | |
UPDATE "oauth_access_tokens" SET "token" = $? WHERE | |
"oauth_access_tokens"."id" = $? | |
- >- | |
UPDATE "organization_memberships" SET "type_of_user" = $?, "updated_at" = $? | |
WHERE "organization_memberships"."id" = $? | |
- >- | |
UPDATE "organizations" SET "articles_count" = COALESCE("articles_count", ?) | |
+ ? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "articles_count" = COALESCE("articles_count", ?) | |
- ? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "credits_count" = $?, "unspent_credits_count" = | |
$?, "updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "nav_image" = $?, "profile_updated_at" = $?, | |
"updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "profile_updated_at" = $?, "text_color_hex" = $?, | |
"updated_at" = $? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "secret" = $?, "updated_at" = $? WHERE | |
"organizations"."id" = $? | |
- >- | |
UPDATE "organizations" SET "updated_at" = $?, "latest_article_updated_at" = | |
$? WHERE "organizations"."id" = $? | |
- >- | |
UPDATE "page_views" SET "time_tracked_in_seconds" = $? WHERE | |
"page_views"."id" = $? | |
- UPDATE "page_views" SET "user_id" = $? WHERE "page_views"."user_id" = $? | |
- >- | |
UPDATE "podcasts" SET "android_url" = $?, "description" = $?, "feed_url" = | |
$?, "image" = $?, "itunes_url" = $?, "overcast_url" = $?, "pattern_image" = | |
$?, "published" = $?, "slug" = $?, "soundcloud_url" = $?, "title" = $?, | |
"twitter_username" = $?, "updated_at" = $?, "website_url" = $? WHERE | |
"podcasts"."id" = $? | |
- UPDATE "podcasts" SET "creator_id" = $? WHERE "podcasts"."creator_id" = $? | |
- >- | |
UPDATE "poll_options" SET "poll_votes_count" = $? WHERE "poll_options"."id" | |
= $? | |
- >- | |
UPDATE "poll_options" SET "poll_votes_count" = COALESCE("poll_votes_count", | |
?) + ? WHERE "poll_options"."id" = $? | |
- UPDATE "polls" SET "poll_votes_count" = $? WHERE "polls"."id" = $? | |
- >- | |
UPDATE "polls" SET "poll_votes_count" = COALESCE("poll_votes_count", ?) + ? | |
WHERE "polls"."id" = $? | |
- >- | |
UPDATE "profile_field_groups" SET "name" = $?, "updated_at" = $? WHERE | |
"profile_field_groups"."id" = $? | |
- >- | |
UPDATE "profile_fields" SET "profile_field_group_id" = $? WHERE | |
"profile_fields"."profile_field_group_id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "location" = $?, "updated_at" = $? WHERE | |
"profiles"."id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "summary" = $?, "updated_at" = $? WHERE | |
"profiles"."id" = $? | |
- >- | |
UPDATE "profiles" SET "data" = $?, "updated_at" = $? WHERE "profiles"."id" = | |
$? | |
- UPDATE "rating_votes" SET "user_id" = $? WHERE "rating_votes"."user_id" = $? | |
- >- | |
UPDATE "reactions" SET "points" = $?, "status" = $?, "updated_at" = $? WHERE | |
"reactions"."id" = $? | |
- >- | |
UPDATE "reactions" SET "status" = $?, "updated_at" = $? WHERE | |
"reactions"."id" = $? | |
- UPDATE "reactions" SET "user_id" = $? WHERE "reactions"."user_id" = $? | |
- >- | |
UPDATE "response_templates" SET "title" = $?, "updated_at" = $? WHERE | |
"response_templates"."id" = $? | |
- >- | |
UPDATE "site_configs" SET "updated_at" = $?, "value" = $? WHERE | |
"site_configs"."id" = $? | |
- >- | |
UPDATE "sponsorships" SET "blurb_html" = $?, "expires_at" = $?, "status" = | |
$?, "updated_at" = $? WHERE "sponsorships"."id" = $? | |
- >- | |
UPDATE "tags" SET "alias_for" = $?, "hotness_score" = $?, "updated_at" = $? | |
WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "badge_id" = $?, "bg_color_hex" = $?, "category" = $?, | |
"name" = $?, "pretty_name" = $?, "requires_approval" = $?, "rules_html" = | |
$?, "rules_markdown" = $?, "short_summary" = $?, "submission_template" = $?, | |
"text_color_hex" = $?, "updated_at" = $?, "wiki_body_html" = $?, | |
"wiki_body_markdown" = $? WHERE "tags"."id" = $? | |
- UPDATE "tags" SET "mod_chat_channel_id" = $? WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "short_summary" = $?, "updated_at" = $? WHERE "tags"."id" | |
= $? | |
- >- | |
UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", ?) + $? | |
WHERE "tags"."id" = $? | |
- >- | |
UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", ?) - $? | |
WHERE "tags"."id" = $? | |
- UPDATE "tags" SET "updated_at" = $? WHERE "tags"."id" = $? | |
- UPDATE "tweets" SET "user_id" = $? WHERE "tweets"."user_id" = $? | |
- >- | |
UPDATE "user_subscriptions" SET "user_subscription_sourceable_id" = $?, | |
"user_subscription_sourceable_type" = $? WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? | |
- >- | |
UPDATE "users" SET "articles_count" = COALESCE("articles_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "articles_count" = COALESCE("articles_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "badge_achievements_count" = | |
COALESCE("badge_achievements_count", ?) - ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocked_by_count" = COALESCE("blocked_by_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocked_by_count" = COALESCE("blocked_by_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocking_others_count" = | |
COALESCE("blocking_others_count", ?) + ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "blocking_others_count" = | |
COALESCE("blocking_others_count", ?) - ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "comments_count" = COALESCE("comments_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "comments_count" = COALESCE("comments_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "confirmed_at" = $?, "remember_created_at" = $?, | |
"remember_token" = $?, "updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "credits_count" = $?, "unspent_credits_count" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "encrypted_password" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "export_requested" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "github_username" = $?, "profile_updated_at" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "github_username" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "last_onboarding_page" = $?, "old_username" = $?, | |
"saw_onboarding" = $?, "updated_at" = $?, "username" = $? WHERE "users"."id" | |
= $? | |
- >- | |
UPDATE "users" SET "locked_at" = $?, "unlock_token" = $?, "updated_at" = $? | |
WHERE "users"."id" = $? | |
- 'UPDATE "users" SET "name" = $?, "updated_at" = $? WHERE "users"."id" = $?' | |
- >- | |
UPDATE "users" SET "old_username" = $?, "saw_onboarding" = $?, "updated_at" | |
= $?, "username" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "profile_updated_at" = $?, "twitter_username" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "profile_updated_at" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "rating_votes_count" = COALESCE("rating_votes_count", ?) | |
+ ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "reactions_count" = COALESCE("reactions_count", ?) + ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "reactions_count" = COALESCE("reactions_count", ?) - ? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "remember_created_at" = $?, "remember_token" = $?, | |
"updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "saw_onboarding" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- UPDATE "users" SET "stripe_id_code" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "stripe_id_code" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "subscribed_to_user_subscriptions_count" = | |
COALESCE("subscribed_to_user_subscriptions_count", ?) + ? WHERE "users"."id" | |
= $? | |
- UPDATE "users" SET "twitter_username" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "twitter_username" = $?, "github_username" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "twitter_username" = $?, "updated_at" = $? WHERE | |
"users"."id" = $? | |
- UPDATE "users" SET "updated_at" = $? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "github_repos_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_article_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_comment_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_followed_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_notification_activity" = $? | |
WHERE "users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "last_reacted_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "latest_article_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "organization_info_updated_at" = $? | |
WHERE "users"."id" IN (SELECT "users"."id" FROM "users" INNER JOIN | |
"organization_memberships" ON "users"."id" = | |
"organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $?) | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "profile_updated_at" = $? WHERE | |
"users"."id" = $? | |
- >- | |
UPDATE "users" SET "updated_at" = $?, "profile_updated_at" = $?, | |
"last_followed_at" = $? WHERE "users"."id" = $? | |
- UPDATE "users" SET badge_achievements_count = ? WHERE "users"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_community_mod_newsletter" = | |
$?, "updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_digest_periodic" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_mention_notifications" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_newsletter" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "email_tag_mod_newsletter" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "mod_roundrobin_notifications" = | |
$?, "updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "reaction_notifications" = $?, | |
"updated_at" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_notification_settings" SET "updated_at" = $?, | |
"welcome_notifications" = $? WHERE "users_notification_settings"."id" = $? | |
- >- | |
UPDATE "users_settings" SET "display_announcements" = $?, "updated_at" = $? | |
WHERE "users_settings"."id" = $? | |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ' SELECT ff.key AS feature_key, fg.key, fg.value FROM flipper_features ff LEFT JOIN flipper_gates fg ON ff.key = fg.feature_key ' | |
- DELETE FROM "ahoy_messages" WHERE "ahoy_messages"."user_id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
- DELETE FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- DELETE FROM "articles" WHERE "articles"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."id" = $? | |
- DELETE FROM "badge_achievements" WHERE "badge_achievements"."user_id" = $? | |
- DELETE FROM "broadcasts" WHERE "broadcasts"."id" = $? | |
- >- | |
DELETE FROM "chat_channel_memberships" WHERE "chat_channel_memberships"."id" | |
= $? | |
- DELETE FROM "chat_channels" WHERE "chat_channels"."id" = $? | |
- >- | |
DELETE FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."id" = $? | |
- DELETE FROM "classified_listings" WHERE "classified_listings"."id" = $? | |
- DELETE FROM "collections" WHERE "collections"."user_id" = $? | |
- DELETE FROM "comments" WHERE "comments"."id" = $? | |
- DELETE FROM "consumer_apps" WHERE "consumer_apps"."id" = $? | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."organization_id" = $? AND "credits"."spent" = $? | |
LIMIT $?) | |
- >- | |
DELETE FROM "credits" WHERE "credits"."id" IN (SELECT "credits"."id" FROM | |
"credits" WHERE "credits"."user_id" = $? AND "credits"."spent" = $? LIMIT | |
$?) | |
- DELETE FROM "credits" WHERE "credits"."user_id" = $? | |
- DELETE FROM "devices" WHERE "devices"."id" = $? | |
- DELETE FROM "devices" WHERE "devices"."user_id" = $? | |
- DELETE FROM "discussion_locks" WHERE "discussion_locks"."id" = $? | |
- DELETE FROM "display_ad_events" WHERE "display_ad_events"."user_id" = $? | |
- DELETE FROM "display_ads" WHERE "display_ads"."id" = $? | |
- >- | |
DELETE FROM "email_authorizations" WHERE "email_authorizations"."user_id" = | |
$? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? | |
- >- | |
DELETE FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."id" = $? | |
- DELETE FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."id" = $? | |
- DELETE FROM "html_variants" WHERE "html_variants"."user_id" = $? | |
- DELETE FROM "identities" WHERE "identities"."id" = $? | |
- DELETE FROM "mentions" WHERE "mentions"."user_id" = $? | |
- >- | |
DELETE FROM "messages" WHERE "messages"."user_id" = $? AND | |
"messages"."chat_channel_id" = $? | |
- DELETE FROM "messages" WHERE "messages"."user_id" = $? | |
- DELETE FROM "navigation_links" WHERE "navigation_links"."id" = $? | |
- DELETE FROM "notes" WHERE "notes"."author_id" = $? | |
- >- | |
DELETE FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."id" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) AND "notifications"."action" = $? | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "articles"."id" FROM "articles" | |
WHERE "articles"."id" = $?) | |
- >- | |
DELETE FROM "notifications" WHERE "notifications"."notifiable_type" = $? AND | |
"notifications"."notifiable_id" IN (SELECT "comments"."id" FROM "comments" | |
WHERE "comments"."id" = $?) | |
- DELETE FROM "notifications" WHERE "notifications"."user_id" = $? | |
- >- | |
DELETE FROM "oauth_access_grants" WHERE | |
"oauth_access_grants"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE "organization_memberships"."id" | |
= $? | |
- >- | |
DELETE FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? | |
- DELETE FROM "poll_skips" WHERE "poll_skips"."user_id" = $? | |
- DELETE FROM "poll_votes" WHERE "poll_votes"."user_id" = $? | |
- DELETE FROM "profile_field_groups" WHERE "profile_field_groups"."id" = $? | |
- DELETE FROM "profile_fields" WHERE "profile_fields"."id" = $? | |
- DELETE FROM "profile_pins" WHERE "profile_pins"."id" = $? | |
- >- | |
DELETE FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? AND | |
"profile_pins"."profile_type" = $? | |
- DELETE FROM "profiles" WHERE "profiles"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."id" = $? | |
- DELETE FROM "reactions" WHERE "reactions"."user_id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."id" = $? | |
- DELETE FROM "response_templates" WHERE "response_templates"."user_id" = $? | |
- DELETE FROM "roles" WHERE "roles"."id" = $? | |
- DELETE FROM "sponsorships" WHERE "sponsorships"."id" = $? | |
- DELETE FROM "tag_adjustments" WHERE "tag_adjustments"."id" = $? | |
- DELETE FROM "taggings" WHERE "taggings"."id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? | |
- DELETE FROM "user_blocks" WHERE "user_blocks"."id" = $? | |
- DELETE FROM "users" WHERE "users"."id" = $? | |
- >- | |
DELETE FROM "users_gdpr_delete_requests" WHERE | |
"users_gdpr_delete_requests"."id" = $? | |
- >- | |
DELETE FROM "users_notification_settings" WHERE | |
"users_notification_settings"."id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND ?=? | |
- >- | |
DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? AND | |
"users_roles"."role_id" = $? | |
- DELETE FROM "users_roles" WHERE "users_roles"."user_id" = $? | |
- DELETE FROM "users_settings" WHERE "users_settings"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."id" = $? | |
- DELETE FROM "webhook_endpoints" WHERE "webhook_endpoints"."user_id" = $? | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "feedback_message_id", "mailer", | |
"sent_at", "subject", "to", "user_id", "user_type", "utm_campaign") VALUES | |
($?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "ahoy_messages" ("content", "mailer", "sent_at", "subject", | |
"to", "user_id", "user_type") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "api_secrets" ("created_at", "description", "secret", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("approved", "body_markdown", "boost_states", | |
"cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", | |
"experience_level_rating", "featured_number", "last_comment_at", | |
"main_image", "nth_published_by_author", "password", "path", | |
"processed_html", "published", "published_at", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "reading_time", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", | |
"cached_organization", "cached_tag_list", "cached_user", "cached_user_name", | |
"cached_user_username", "created_at", "description", "organization_id", | |
"password", "path", "processed_html", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "canonical_url", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "collection_id", | |
"created_at", "description", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "experience_level_rating", "featured_number", | |
"last_comment_at", "main_image", "nth_published_by_author", "password", | |
"path", "processed_html", "published", "published_at", "reading_time", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", "main_image", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "reading_time", "slug", "title", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "featured_number", "last_comment_at", | |
"nth_published_by_author", "password", "path", "processed_html", | |
"published", "published_at", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "main_image", "password", "path", "processed_html", | |
"reading_time", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "reading_time", "slug", | |
"title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "articles" ("body_markdown", "boost_states", "cached_tag_list", | |
"cached_user", "cached_user_name", "cached_user_username", "created_at", | |
"description", "password", "path", "processed_html", "slug", "title", | |
"updated_at", "user_id", "video", "video_source_url", "video_state", | |
"video_thumbnail_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "audit_logs" ("category", "created_at", "data", "roles", "slug", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "badges" ("badge_image", "created_at", "credits_awarded", | |
"description", "slug", "title", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("active", "active_status_updated_at", | |
"created_at", "processed_html", "title", "type_of", "updated_at") VALUES | |
($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "broadcasts" ("created_at", "processed_html", "title", | |
"type_of", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"role", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channel_memberships" ("chat_channel_id", "created_at", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "chat_channel_memberships" | |
("user_id","chat_channel_id","created_at","updated_at") VALUES (?, ?, ?, ?), | |
(?, ?, ?, ?) ON CONFLICT ("chat_channel_id","user_id") DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"last_message_at", "slug", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "chat_channels" ("channel_name", "channel_type", "created_at", | |
"slug", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listing_categories" ("cost", "created_at", "name", | |
"rules", "slug", "social_preview_color", "social_preview_description", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "organization_id", "originally_published_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "contact_via_connect", | |
"created_at", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"location", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"organization_id", "originally_published_at", "processed_html", "published", | |
"slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "bumped_at", | |
"cached_tag_list", "classified_listing_category_id", "created_at", | |
"originally_published_at", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"organization_id", "processed_html", "published", "slug", "title", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "contact_via_connect", "created_at", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "organization_id", | |
"processed_html", "published", "slug", "title", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "classified_listings" ("body_markdown", "cached_tag_list", | |
"classified_listing_category_id", "created_at", "processed_html", | |
"published", "slug", "title", "updated_at", "user_id") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "collections" ("created_at", "slug", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("ancestry", "body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "comments" ("body_markdown", "commentable_id", | |
"commentable_type", "created_at", "markdown_character_count", | |
"processed_html", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "auth_key", "created_at", | |
"platform", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "consumer_apps" ("app_bundle", "created_at", "platform", | |
"team_id", "updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","organization_id") | |
VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("created_at","updated_at","cost","user_id") VALUES | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, | |
?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), | |
(?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON CONFLICT DO NOTHING RETURNING | |
"id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?) ON CONFLICT DO NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("organization_id","created_at","updated_at") VALUES | |
(?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO | |
NOTHING RETURNING "id" | |
- >- | |
INSERT INTO "credits" ("user_id","created_at","updated_at") VALUES (?, ?, | |
?), (?, ?, ?), (?, ?, ?), (?, ?, ?), (?, ?, ?) ON CONFLICT DO NOTHING | |
RETURNING "id" | |
- >- | |
INSERT INTO "devices" ("consumer_app_id", "created_at", "platform", "token", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "notes", "reason", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "discussion_locks" ("article_id", "created_at", | |
"locking_user_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ad_events" ("category", "context_type", "created_at", | |
"display_ad_id", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("approved", "body_markdown", "created_at", | |
"organization_id", "placement_area", "processed_html", "published", | |
"updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "display_ads" ("body_markdown", "created_at", "organization_id", | |
"placement_area", "processed_html", "updated_at") VALUES ($?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "email_authorizations" ("confirmation_token", "created_at", | |
"type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "events" ("category", "created_at", "description_html", | |
"description_markdown", "ends_at", "starts_at", "title", "updated_at") | |
VALUES ($?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "reporter_id", "updated_at") VALUES ($?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "feedback_messages" ("category", "created_at", "feedback_type", | |
"message", "reported_url", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "featured", | |
"github_id_code", "info_hash", "language", "name", "stargazers_count", | |
"updated_at", "url", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "github_repos" ("created_at", "description", "github_id_code", | |
"info_hash", "language", "name", "stargazers_count", "updated_at", "url", | |
"user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_successes" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variant_trials" ("article_id", "created_at", | |
"html_variant_id", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("approved", "created_at", "group", "html", | |
"name", "published", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, | |
$?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "html_variants" ("created_at", "group", "html", "name", | |
"success_rate", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_action", "chat_channel_id", "created_at", | |
"message_html", "message_markdown", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "messages" ("chat_channel_id", "created_at", "message_html", | |
"message_markdown", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "navigation_links" ("created_at", "icon", "name", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "notes" ("author_id", "content", "created_at", "noteable_id", | |
"noteable_type", "reason", "updated_at") VALUES ($?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notification_subscriptions" ("created_at", "notifiable_id", | |
"notifiable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "notifications" ("created_at", "json_data", "notifiable_id", | |
"notifiable_type", "notified_at", "updated_at", "user_id") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organization_memberships" ("created_at", "organization_id", | |
"type_of_user", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "company_size", "created_at", | |
"cta_body_markdown", "cta_button_text", "cta_button_url", "email", | |
"github_username", "location", "name", "profile_image", "proof", "secret", | |
"slug", "story", "summary", "tag_line", "tech_stack", "text_color_hex", | |
"twitter_username", "updated_at", "url") VALUES ($?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "organizations" ("bg_color_hex", "created_at", | |
"github_username", "name", "nav_image", "profile_image", "proof", "secret", | |
"slug", "summary", "text_color_hex", "twitter_username", "updated_at", | |
"url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "domain", "path", "referrer", "updated_at") VALUES ($?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "path", "referrer", "updated_at") VALUES ($?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "counts_for_number_of_views", | |
"created_at", "updated_at", "user_agent") VALUES ($?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "path", "referrer", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_agent", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "page_views" ("article_id", "created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcast_ownerships" ("created_at", "podcast_id", "updated_at", | |
"user_id") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "podcasts" ("created_at", "creator_id", "description", | |
"feed_url", "image", "main_color_hex", "slug", "title", "twitter_username", | |
"updated_at", "website_url") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_skips" ("created_at", "poll_id", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "poll_votes" ("created_at", "poll_id", "poll_option_id", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_field_groups" ("created_at", "description", "name", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "profile_fields" ("attribute_name", "created_at", "description", | |
"label", "placeholder_text", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profile_pins" ("created_at", "pinnable_id", "pinnable_type", | |
"profile_id", "profile_type", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "profiles" ("created_at", "data", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "rating_votes" ("article_id", "created_at", "group", "rating", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "status", "updated_at", "user_id") VALUES ($?, $?, $?, $?, | |
$?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "points", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "reactions" ("category", "created_at", "reactable_id", | |
"reactable_type", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at") VALUES ($?, $?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "response_templates" ("content", "content_type", "created_at", | |
"title", "type_of", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "resource_id", "resource_type", | |
"updated_at") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "roles" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "settings_authentications" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_campaigns" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_communities" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_rate_limits" ("created_at", "updated_at", "value", | |
"var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "settings_user_experiences" ("created_at", "updated_at", | |
"value", "var") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "site_configs" ("created_at", "updated_at", "value", "var") | |
VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "sponsorable_id", "sponsorable_type", "status", | |
"updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "sponsorships" ("blurb_html", "created_at", "expires_at", | |
"level", "organization_id", "status", "updated_at", "user_id") VALUES ($?, | |
$?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", | |
"taggable_type") VALUES ($?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("badge_id", "bg_color_hex", "category", "created_at", | |
"name", "pretty_name", "requires_approval", "rules_html", "rules_markdown", | |
"short_summary", "submission_template", "supported", "text_color_hex", | |
"updated_at", "wiki_body_html", "wiki_body_markdown") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "tags" ("created_at", "name", "updated_at") VALUES ($?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "tweets" ("created_at", "extended_entities_serialized", | |
"favorite_count", "full_fetched_object_serialized", | |
"in_reply_to_status_id_code", "in_reply_to_user_id_code", | |
"in_reply_to_username", "is_quote_status", "last_fetched_at", | |
"media_serialized", "profile_image", "retweet_count", "source", "text", | |
"tweeted_at", "twitter_id_code", "twitter_name", "twitter_uid", | |
"twitter_user_followers_count", "twitter_user_following_count", | |
"twitter_username", "updated_at", "user_is_verified") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?) RETURNING "id" | |
- >- | |
INSERT INTO "user_blocks" ("blocked_id", "blocker_id", "created_at", | |
"updated_at") VALUES ($?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "user_subscriptions" ("author_id", "created_at", | |
"subscriber_email", "subscriber_id", "updated_at", | |
"user_subscription_sourceable_id", "user_subscription_sourceable_type") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("checked_code_of_conduct", | |
"checked_terms_and_conditions", "confirmed_at", "created_at", "email", | |
"email_mention_notifications", "github_username", "name", "profile_image", | |
"registered_at", "saw_onboarding", "signup_cta_variant", "twitter_username", | |
"updated_at", "username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, | |
$?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("checked_code_of_conduct", | |
"checked_terms_and_conditions", "confirmed_at", "created_at", "email", | |
"github_username", "name", "profile_image", "registered_at", | |
"saw_onboarding", "signup_cta_variant", "twitter_username", "updated_at", | |
"username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("confirmed_at", "created_at", "email", | |
"encrypted_password", "name", "profile_image", "registered_at", | |
"updated_at", "username") VALUES ($?, $?, $?, $?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", | |
"invitation_created_at", "invitation_sent_at", "invitation_token", "name", | |
"profile_image", "registered", "updated_at", "username") VALUES ($?, $?, $?, | |
$?, $?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users" ("created_at", "email", "encrypted_password", "name", | |
"profile_image", "registered_at", "updated_at", "username") VALUES ($?, $?, | |
$?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "users_gdpr_delete_requests" ("created_at", "email", | |
"updated_at", "user_id", "username") VALUES ($?, $?, $?, $?, $?) RETURNING | |
"id" | |
- >- | |
INSERT INTO "users_notification_settings" ("created_at", "updated_at", | |
"user_id") VALUES ($?, $?, $?) RETURNING "id" | |
- 'INSERT INTO "users_roles" ("role_id", "user_id") VALUES ($?, $?)' | |
- >- | |
INSERT INTO "users_settings" ("created_at", "updated_at", "user_id") VALUES | |
($?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", | |
"oauth_application_id", "source", "target_url", "updated_at", "user_id") | |
VALUES ($?, $?, $?, $?, $?, $?, $?) RETURNING "id" | |
- >- | |
INSERT INTO "webhook_endpoints" ("created_at", "events", "source", | |
"target_url", "updated_at", "user_id") VALUES ($?, $?, $?, $?, $?, $?) | |
RETURNING "id" | |
- RELEASE SAVEPOINT active_record_1 | |
- ROLLBACK TO SAVEPOINT active_record_1 | |
- SAVEPOINT active_record_1 | |
- >- | |
SELECT ( (reltuples / GREATEST(relpages, ?)) * (pg_relation_size(?) / | |
(GREATEST(current_setting(?)::integer, ?))) )::bigint AS count FROM pg_class | |
WHERE relname = ? AND relkind = ?; | |
- >- | |
SELECT ((ts_headline(?, (coalesce("comments"."body_markdown"::text, ?)), | |
(to_tsquery(?, ? || ? || ? || ?)), ?))) AS pg_search_highlight, comments.*, | |
COALESCE(articles.published, ?) AS commentable_published, | |
COALESCE(articles.title, ?) AS commentable_title, | |
"comments"."body_markdown", "comments"."commentable_id", | |
"comments"."commentable_type", "comments"."created_at", comments.id AS id, | |
"comments"."public_reactions_count", "comments"."score", | |
"comments"."user_id" FROM "comments" join articles on articles.id = | |
comments.commentable_id INNER JOIN (SELECT "comments"."id" AS pg_search_id, | |
(ts_rank((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))), | |
(to_tsquery(?, ? || ? || ? || ?)), ?)) AS rank FROM "comments" WHERE | |
((to_tsvector(?, coalesce("comments"."body_markdown"::text, ?))) @@ | |
(to_tsquery(?, ? || ? || ? || ?)))) AS pg_search_2b4244fb2663714ee72419 ON | |
"comments"."id" = pg_search_2b4244fb2663714ee72419.pg_search_id WHERE | |
"comments"."deleted" = $? AND "comments"."hidden_by_commentable_user" = $? | |
AND "comments"."commentable_type" = $? AND "articles"."published" = $? ORDER | |
BY "comments"."score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "api_secrets" WHERE "api_secrets"."user_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" = $? AND | |
"articles"."user_id" = $? AND "articles"."title" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? AND "articles"."title" | |
IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."body_markdown" IS ? AND | |
"articles"."user_id" = $? AND "articles"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."canonical_url" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND ("articles"."featured" = $? OR "articles"."score" >= | |
$?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."organization_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? AND "articles"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."id" != $? AND "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" = $? AND | |
"articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "articles" WHERE "articles"."slug" IS ? AND | |
"articles"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "articles" WHERE "articles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badge_achievements" WHERE | |
"badge_achievements"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? AND "badges"."id" | |
!= $? LIMIT $? | |
- SELECT ? AS one FROM "badges" WHERE "badges"."title" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "banished_users" WHERE "banished_users"."username" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."id" != $? AND "broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "broadcasts" WHERE "broadcasts"."title" = $? AND | |
"broadcasts"."type_of" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."id" != $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."user_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channel_memberships" WHERE | |
"chat_channel_memberships"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" INNER JOIN "chat_channel_memberships" | |
ON "chat_channels"."id" = "chat_channel_memberships"."chat_channel_id" WHERE | |
"chat_channel_memberships"."user_id" = $? AND "chat_channels"."slug" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? AND | |
"chat_channels"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "chat_channels" WHERE "chat_channels"."slug" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? AND | |
"classified_listing_categories"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listing_categories" WHERE | |
"classified_listing_categories"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."classified_listing_category_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "collections" WHERE "collections"."slug" = $? AND | |
"collections"."user_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."ancestry" = ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" = $? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."id" != $? AND "comments"."user_id" = $? AND | |
"comments"."ancestry" IS ? AND "comments"."commentable_id" IS ? AND | |
"comments"."commentable_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" = $? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."body_markdown" = $? AND | |
"comments"."user_id" = $? AND "comments"."ancestry" IS ? AND | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at < ?) LIMIT $? | |
- SELECT ? AS one FROM "comments" WHERE "comments"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."id" != $? AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "consumer_apps" WHERE "consumer_apps"."app_bundle" = $? | |
AND "consumer_apps"."platform" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "devices" WHERE "devices"."token" = $? AND | |
"devices"."user_id" = $? AND "devices"."platform" = $? AND | |
"devices"."consumer_app_id" = $? LIMIT $? | |
- SELECT ? AS one FROM "devices" WHERE "devices"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "discussion_locks" WHERE | |
"discussion_locks"."article_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "feedback_messages" WHERE | |
"feedback_messages"."reporter_id" = $? AND | |
"feedback_messages"."reported_url" = $? AND | |
"feedback_messages"."feedback_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? AND "github_repos"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."github_id_code" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? AND | |
"github_repos"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "github_repos" WHERE "github_repos"."url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "github_repos" WHERE "github_repos"."user_id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? AND | |
"html_variants"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "html_variants" WHERE "html_variants"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?, $?, $?) AND "identities"."provider" = $? | |
LIMIT $? | |
- SELECT ? AS one FROM "identities" WHERE "identities"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "mentions" WHERE "mentions"."mentionable_id" = $? AND | |
"mentions"."mentionable_type" = $? LIMIT $? | |
- SELECT ? AS one FROM "mentions" WHERE "mentions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."id" != $? AND "navigation_links"."name" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "navigation_links" WHERE "navigation_links"."url" = $? | |
AND "navigation_links"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notes" WHERE "notes"."noteable_id" = $? AND | |
"notes"."noteable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notification_subscriptions" WHERE | |
"notification_subscriptions"."user_id" = $? AND | |
"notification_subscriptions"."notifiable_type" = $? AND | |
"notification_subscriptions"."notifiable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."notifiable_id" = | |
$? AND "notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."notifiable_id" = $? AND | |
"notifications"."notifiable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."organization_id" IS ? AND | |
"notifications"."notifiable_id" = $? AND "notifications"."notifiable_type" = | |
$? AND "notifications"."action" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."resource_owner_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "oauth_access_tokens" WHERE | |
"oauth_access_tokens"."token" = $? AND "oauth_access_tokens"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."id" != $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? AND | |
"organization_memberships"."type_of_user" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organization_memberships" WHERE | |
"organization_memberships"."user_id" = $? AND | |
"organization_memberships"."organization_id" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? AND "organizations"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) AND "organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE LOWER("organizations"."slug") = | |
LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" = $? AND | |
"organizations"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."secret" IS ? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "organizations" WHERE "organizations"."slug" = $? LIMIT | |
$? | |
- SELECT ? AS one FROM "pages" WHERE "pages"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcast_ownerships" WHERE | |
"podcast_ownerships"."podcast_id" = $? AND "podcast_ownerships"."user_id" = | |
$? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."feed_url" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? AND | |
"podcasts"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "podcasts" WHERE "podcasts"."slug" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_skips" WHERE "poll_skips"."poll_id" = $? AND | |
"poll_skips"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? AND | |
"poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
AND "poll_votes"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? AND "profile_field_groups"."id" != $? | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_field_groups" WHERE | |
"profile_field_groups"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) AND "profile_fields"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_fields" WHERE LOWER("profile_fields"."label") | |
= LOWER($?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profile_pins" WHERE "profile_pins"."pinnable_id" = $? | |
AND "profile_pins"."profile_id" = $? AND "profile_pins"."profile_type" = $? | |
AND "profile_pins"."pinnable_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? AND | |
"profiles"."id" != $? LIMIT $? | |
- SELECT ? AS one FROM "profiles" WHERE "profiles"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "rating_votes" WHERE "rating_votes"."user_id" = $? AND | |
"rating_votes"."article_id" = $? AND "rating_votes"."context" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."category" = $? AND (?=? | |
AND ("reactions"."reactable_type" = $? OR "reactions"."reactable_type" = $?) | |
OR "reactions"."reactable_type" = $? AND "reactions"."user_id" = $?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? AND | |
"reactions"."status" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."user_id" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."id" != $? AND "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."category" = $? LIMIT $? | |
- SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "reactions" WHERE "reactions"."user_id" IS ? AND | |
"reactions"."reactable_type" = $? AND "reactions"."reactable_id" = $? LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."id" != $? AND | |
"response_templates"."user_id" = $? AND "response_templates"."type_of" = $? | |
AND "response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" = $? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "response_templates" WHERE | |
"response_templates"."content" = $? AND "response_templates"."user_id" IS ? | |
AND "response_templates"."type_of" = $? AND | |
"response_templates"."content_type" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND "roles"."id" | |
= $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
"roles"."name" IN ($?, $?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."organization_id" = | |
$? AND (level IN (?,?,?) AND expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "sponsorships" WHERE "sponsorships"."sponsorable_id" IS | |
? AND "sponsorships"."level" = $? AND (expires_at > ? AND id != ?) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "taggings" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = $? AND | |
"taggings"."context" = $? AND "taggings"."tagger_id" IS ? AND | |
"taggings"."tagger_type" IS ? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" INNER JOIN "roles" ON "roles".resource_type IN | |
(?) AND | |
("roles".resource_id IS ? OR "roles".resource_id = "tags"."id") WHERE ("roles".name IN (?) AND "roles".resource_type IN (?)) AND ("roles"."id" IN (SELECT "roles"."id" FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = ? AND "roles"."name" = ?) AND (("roles".resource_id = "tags"."id") OR ("roles".resource_id IS ?))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? AND "tags"."id" != $? | |
LIMIT $? | |
- SELECT ? AS one FROM "tags" WHERE "tags"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocked_id" = $? AND | |
"user_blocks"."blocker_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_blocks" WHERE "user_blocks"."blocker_id" = $? AND | |
"user_blocks"."blocked_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."subscriber_email" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."subscriber_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? AND | |
"chat_channel_memberships"."status" = $? AND "users"."id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "organization_memberships" ON | |
"users"."id" = "organization_memberships"."user_id" WHERE | |
"organization_memberships"."organization_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON "users"."id" = | |
"users_roles"."user_id" WHERE "users_roles"."role_id" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE ((((roles.name = ?) AND (roles.resource_type | |
IS ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type = ?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) | |
AND (roles.resource_type = ?) AND (roles.resource_id = ?)))) LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) LIMIT $? OFFSET $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."email") = LOWER($?) LIMIT | |
$? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) AND | |
"users"."id" != $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE LOWER("users"."username") = LOWER($?) | |
LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users" WHERE "users"."email" = $? AND | |
"users"."registered" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."github_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."twitter_username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users" WHERE "users"."username" = $? LIMIT $? | |
- SELECT ? AS one FROM "users_gdpr_delete_requests" LIMIT $? | |
- >- | |
SELECT ? AS one FROM "users_roles" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "roles"."name" = $? LIMIT $? | |
- >- | |
SELECT ? AS one FROM "webhook_endpoints" WHERE | |
"webhook_endpoints"."target_url" = $? LIMIT $? | |
- >- | |
SELECT AVG("articles"."score") FROM "articles" WHERE "articles"."score" >= | |
$? | |
- SELECT AVG("users"."articles_count") FROM "users" WHERE (articles_count > ?) | |
- SELECT AVG("users"."articles_count") FROM "users" | |
- >- | |
SELECT AVG("users"."comments_count") FROM "users" WHERE | |
"users"."comments_count" = $? | |
- SELECT AVG("users"."comments_count") FROM "users" | |
- >- | |
SELECT AVG(time_tracked_in_seconds) FROM "page_views" WHERE | |
"page_views"."article_id" = $? AND "page_views"."user_id" IS NOT ? LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE ?=? AND "comments"."commentable_type" = $? AND (score > ?) | |
AND "comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) AND | |
"comments"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"comments" WHERE "comments"."user_id" = $? AND (created_at > ?) GROUP BY | |
DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, DATE(created_at) AS date_created_at FROM | |
"follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? GROUP BY DATE(created_at) | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE ?=? GROUP BY "page_views"."domain" ORDER BY | |
"count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "page_views"."domain" AS page_views_domain | |
FROM "page_views" WHERE "page_views"."article_id" = $? GROUP BY | |
"page_views"."domain" ORDER BY "count_all" DESC LIMIT $? | |
- >- | |
SELECT COUNT(*) AS count_all, "podcasts"."id" AS podcasts_id FROM "podcasts" | |
LEFT OUTER JOIN "podcast_episodes" ON "podcast_episodes"."podcast_id" = | |
"podcasts"."id" GROUP BY "podcasts"."id" | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (public_reactions_count > ? OR | |
comments_count > ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
AND (featured_number > ?) ORDER BY RANDOM() LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM (SELECT ? AS one FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT * | |
FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
(public_reactions_count > ? OR comments_count > ?) AND "articles"."id" != $? | |
AND "articles"."user_id" != $? AND (featured_number > ?) ORDER BY RANDOM() | |
LIMIT $?) subquery_for_count | |
- >- | |
SELECT COUNT(*) FROM "ahoy_messages" WHERE "ahoy_messages"."to" = $? AND | |
(sent_at > ?) | |
- SELECT COUNT(*) FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN (SELECT "reactions"."id", | |
"reactions"."reactable_id", "reactions"."user_id" FROM "reactions" WHERE | |
"reactions"."user_id" = ? AND "reactions"."category" = ? AND | |
"reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id | |
- >- | |
SELECT COUNT(*) FROM "articles" INNER JOIN "taggings" ON "articles"."id" = | |
"taggings"."taggable_id" WHERE "taggings"."tag_id" = $? AND | |
"taggings"."taggable_type" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) AND (score >= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."collection_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) AND (created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) | |
- SELECT COUNT(*) FROM "articles" WHERE "articles"."user_id" = $? | |
- SELECT COUNT(*) FROM "audit_logs" WHERE "audit_logs"."category" = $? | |
- SELECT COUNT(*) FROM "classified_listing_categories" | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" WHERE | |
"classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."published" = $? | |
- >- | |
SELECT COUNT(*) FROM "classified_listings" WHERE | |
"classified_listings"."user_id" = $? | |
- SELECT COUNT(*) FROM "classified_listings" | |
- SELECT COUNT(*) FROM "collections" WHERE "collections"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ("comments"."ancestry" LIKE ? OR | |
"comments"."ancestry" = ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE ?=? AND "comments"."commentable_type" | |
= $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."commentable_id" = $? AND | |
"comments"."commentable_type" = $? AND (score > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
(created_at > ?) | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."created_at" >= $? | |
- >- | |
SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? AND | |
"comments"."deleted" = $? | |
- SELECT COUNT(*) FROM "comments" WHERE "comments"."user_id" = $? | |
- SELECT COUNT(*) FROM "comments" | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? AND | |
"credits"."spent" = $? | |
- SELECT COUNT(*) FROM "credits" WHERE "credits"."user_id" = $? | |
- SELECT COUNT(*) FROM "devices" WHERE "devices"."consumer_app_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "display_ad_events" WHERE | |
"display_ad_events"."display_ad_id" = $? AND "display_ad_events"."category" | |
= $? | |
- >- | |
SELECT COUNT(*) FROM "display_ads" INNER JOIN "organizations" ON | |
"organizations"."id" = "display_ads"."organization_id" | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE | |
"feedback_messages"."offender_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "feedback_messages" WHERE "feedback_messages"."status" | |
= $? AND "feedback_messages"."feedback_type" = $? | |
- SELECT COUNT(*) FROM "feedback_messages" | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."blocked" = $? AND | |
"follows"."follower_id" = $? AND "follows"."follower_type" = $? AND | |
"follows"."followable_id" = $? AND "follows"."followable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_id" = $? AND | |
"follows"."followable_type" = $? AND "follows"."blocked" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."followable_type" = $? AND | |
"follows"."followable_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "follows" WHERE "follows"."follower_id" = $? AND | |
"follows"."follower_type" = $? AND "follows"."blocked" = $? AND | |
"follows"."followable_type" = $? | |
- SELECT COUNT(*) FROM "html_variant_successes" | |
- SELECT COUNT(*) FROM "html_variant_trials" | |
- >- | |
SELECT COUNT(*) FROM "html_variants" WHERE "html_variants"."published" = $? | |
AND "html_variants"."approved" = $? | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND ?=? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? AND "identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" = $? | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) AND "identities"."provider" IN ($?, $?, | |
$?, $?) | |
- >- | |
SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? AND | |
"identities"."provider" IN ($?, $?) | |
- SELECT COUNT(*) FROM "identities" WHERE "identities"."user_id" = $? | |
- SELECT COUNT(*) FROM "messages" WHERE "messages"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "notifications" WHERE "notifications"."user_id" = $? | |
AND "notifications"."read" = $? | |
- >- | |
SELECT COUNT(*) FROM "organization_memberships" WHERE | |
"organization_memberships"."organization_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "organizations" INNER JOIN "organization_memberships" | |
ON "organizations"."id" = "organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- SELECT COUNT(*) FROM "organizations" WHERE (name ILIKE ?) | |
- SELECT COUNT(*) FROM "organizations" | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."article_id" = $? | |
- SELECT COUNT(*) FROM "page_views" WHERE "page_views"."user_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_id" = $? | |
- SELECT COUNT(*) FROM "poll_votes" WHERE "poll_votes"."poll_option_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "profile_pins" WHERE "profile_pins"."profile_id" = $? | |
AND "profile_pins"."profile_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."category" IN ($?, $?, | |
$?) | |
- >- | |
SELECT COUNT(*) FROM "reactions" WHERE "reactions"."reactable_id" = $? AND | |
"reactions"."reactable_type" = $? AND "reactions"."category" IN ($?, $?, $?, | |
$?, $?) | |
- SELECT COUNT(*) FROM "reactions" WHERE "reactions"."user_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "response_templates" WHERE | |
"response_templates"."user_id" = $? | |
- SELECT COUNT(*) FROM "response_templates" | |
- >- | |
SELECT COUNT(*) FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."user_id" = $? AND | |
((((roles.name = ?) AND (roles.resource_type IS ?) AND (roles.resource_id IS | |
?)) OR ((roles.name = ?) AND (roles.resource_type = ?) AND | |
(roles.resource_id IS ?))) OR ((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)) OR ((roles.name = ?) AND | |
(roles.resource_type IS ?) AND (roles.resource_id IS ?))) | |
- SELECT COUNT(*) FROM "sponsorships" | |
- SELECT COUNT(*) FROM "tags" WHERE "tags"."supported" IS NOT ? | |
- >- | |
SELECT COUNT(*) FROM "user_subscriptions" WHERE | |
"user_subscriptions"."user_subscription_sourceable_id" = $? AND | |
"user_subscriptions"."user_subscription_sourceable_type" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "chat_channel_memberships" ON | |
"users"."id" = "chat_channel_memberships"."user_id" WHERE | |
"chat_channel_memberships"."chat_channel_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE "users_roles"."role_id" = $? | |
- >- | |
SELECT COUNT(*) FROM "users" WHERE (id NOT IN (SELECT user_id FROM | |
users_roles WHERE role_id IN (SELECT "roles"."id" FROM "roles" WHERE | |
"roles"."name" IN (?, ?, ?, ?, ?, ?)))) | |
- SELECT COUNT(*) FROM "users" WHERE "users"."registered" = $? | |
- SELECT COUNT(*) FROM "users" WHERE "users"."username" = $? | |
- SELECT COUNT(*) FROM "users_gdpr_delete_requests" | |
- >- | |
SELECT COUNT(*), COUNT(*) FILTER (WHERE category = ?), COUNT(*) FILTER | |
(WHERE category = ?), COUNT(*) FILTER (WHERE category = ?) FROM "reactions" | |
WHERE "reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? LIMIT | |
$? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? | |
- >- | |
SELECT COUNT("articles".*) FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) | |
- >- | |
SELECT DATE(created_at) AS date, COUNT(*) AS total, COUNT(*) FILTER (WHERE | |
category = ?) AS like, COUNT(*) FILTER (WHERE category = ?) AS readinglist, | |
COUNT(*) FILTER (WHERE category = ?) AS unicorn FROM "reactions" WHERE | |
"reactions"."category" IN ($?, $?, $?, $?, $?) AND | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? AND | |
"reactions"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DATE(created_at) AS date, SUM(counts_for_number_of_views) AS total, | |
AVG(time_tracked_in_seconds) FILTER (WHERE user_id IS NOT ?) AS average FROM | |
"page_views" WHERE "page_views"."article_id" = $? AND | |
"page_views"."created_at" BETWEEN $? AND $? GROUP BY DATE(created_at) | |
- >- | |
SELECT DISTINCT "classified_listings"."bumped_at" AS alias_0, | |
"classified_listings"."id" FROM "classified_listings" INNER JOIN | |
"classified_listing_categories" ON "classified_listing_categories"."id" = | |
"classified_listings"."classified_listing_category_id" LEFT OUTER JOIN | |
"users" ON "users"."id" = "classified_listings"."user_id" LEFT OUTER JOIN | |
"organizations" ON "organizations"."id" = | |
"classified_listings"."organization_id" LEFT OUTER JOIN "taggings" ON | |
"taggings"."taggable_type" = $? AND "taggings"."taggable_id" = | |
"classified_listings"."id" WHERE "classified_listings"."published" = $? AND | |
"classified_listing_categories"."slug" = $? ORDER BY | |
"classified_listings"."bumped_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT DISTINCT "collections".* FROM "collections" INNER JOIN "articles" ON | |
"articles"."collection_id" = "collections"."id" WHERE | |
"collections"."user_id" = $? ORDER BY "collections"."created_at" DESC | |
- >- | |
SELECT DISTINCT "github_repos".* FROM "github_repos" WHERE | |
"github_repos"."user_id" = $? AND "github_repos"."featured" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."organization_id" = $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? AND "articles"."id" = $? | |
- >- | |
SELECT SUM("articles"."page_views_count") FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND "articles"."user_id" | |
= $? | |
- >- | |
SELECT SUM("comments"."score") FROM "comments" WHERE | |
"comments"."commentable_id" = $? AND "comments"."commentable_type" = $? | |
- >- | |
SELECT SUM("organizations"."unspent_credits_count") FROM "organizations" | |
INNER JOIN "organization_memberships" ON "organizations"."id" = | |
"organization_memberships"."organization_id" WHERE | |
"organization_memberships"."user_id" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? AND | |
"page_views"."created_at" >= $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? AND "page_views"."referrer" = $? | |
- >- | |
SELECT SUM("page_views"."counts_for_number_of_views") FROM "page_views" | |
WHERE "page_views"."article_id" = $? | |
- >- | |
SELECT SUM("reactions"."points") FROM "reactions" WHERE | |
"reactions"."reactable_id" = $? AND "reactions"."reactable_type" = $? | |
- SELECT "ahoy_events".* FROM "ahoy_events" WHERE "ahoy_events"."user_id" = $? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? ORDER BY "ahoy_messages"."sent_at" DESC LIMIT | |
$? | |
- >- | |
SELECT "ahoy_messages".* FROM "ahoy_messages" WHERE | |
"ahoy_messages"."user_id" = $? | |
- SELECT "ahoy_visits".* FROM "ahoy_visits" WHERE "ahoy_visits"."user_id" = $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."id" = $? | |
LIMIT $? | |
- >- | |
SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."secret" = $? | |
LIMIT $? | |
- SELECT "api_secrets".* FROM "api_secrets" WHERE "api_secrets"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_09eac80" ON "article_taggings_09eac80"."taggable_id" = | |
"articles"."id" AND "article_taggings_09eac80"."taggable_type" = ? AND | |
"article_taggings_09eac80"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1e74a1f" ON "article_taggings_1e74a1f"."taggable_id" = | |
"articles"."id" AND "article_taggings_1e74a1f"."taggable_type" = ? AND | |
"article_taggings_1e74a1f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_637d1f5" ON "article_taggings_637d1f5"."taggable_id" = | |
"articles"."id" AND "article_taggings_637d1f5"."taggable_type" = ? AND | |
"article_taggings_637d1f5"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_7f550a9" ON "article_taggings_7f550a9"."taggable_id" = | |
"articles"."id" AND "article_taggings_7f550a9"."taggable_type" = ? AND | |
"article_taggings_7f550a9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_9810c56" ON "article_taggings_9810c56"."taggable_id" = | |
"articles"."id" AND "article_taggings_9810c56"."taggable_type" = ? AND | |
"article_taggings_9810c56"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_99ac1b1" ON "article_taggings_99ac1b1"."taggable_id" = | |
"articles"."id" AND "article_taggings_99ac1b1"."taggable_type" = ? AND | |
"article_taggings_99ac1b1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_bb064b2" ON "article_taggings_bb064b2"."taggable_id" = | |
"articles"."id" AND "article_taggings_bb064b2"."taggable_type" = ? AND | |
"article_taggings_bb064b2"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM ( (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE (((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)))) UNION (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE (((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)))) ) "users") UNION (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" WHERE "users"."id" = $?) ) | |
"users") ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c0b137f" ON "article_taggings_c0b137f"."taggable_id" = | |
"articles"."id" AND "article_taggings_c0b137f"."taggable_type" = ? AND | |
"article_taggings_c0b137f"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IN (SELECT "id" FROM ( (SELECT | |
"users"."id", "users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM ( (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE (((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)))) UNION (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" INNER JOIN "users_roles" ON | |
"users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = | |
"users_roles"."role_id" WHERE (((roles.name = ?) AND (roles.resource_type IS | |
?) AND (roles.resource_id IS ?)))) ) "users") UNION (SELECT "users"."id", | |
"users"."apple_username", "users"."articles_count", | |
"users"."badge_achievements_count", "users"."blocked_by_count", | |
"users"."blocking_others_count", "users"."checked_code_of_conduct", | |
"users"."checked_terms_and_conditions", "users"."comments_count", | |
"users"."config_font", "users"."config_navbar", "users"."config_theme", | |
"users"."confirmation_sent_at", "users"."confirmation_token", | |
"users"."confirmed_at", "users"."created_at", "users"."credits_count", | |
"users"."current_sign_in_at", "users"."current_sign_in_ip", | |
"users"."display_announcements", "users"."display_sponsors", | |
"users"."editor_version", "users"."email", | |
"users"."email_badge_notifications", "users"."email_comment_notifications", | |
"users"."email_community_mod_newsletter", "users"."email_connect_messages", | |
"users"."email_digest_periodic", "users"."email_follower_notifications", | |
"users"."email_membership_newsletter", | |
"users"."email_mention_notifications", "users"."email_newsletter", | |
"users"."email_tag_mod_newsletter", "users"."email_unread_notifications", | |
"users"."encrypted_password", "users"."experience_level", | |
"users"."export_requested", "users"."exported_at", | |
"users"."facebook_username", "users"."failed_attempts", | |
"users"."feed_fetched_at", "users"."feed_mark_canonical", | |
"users"."feed_referential_link", "users"."feed_url", | |
"users"."following_orgs_count", "users"."following_tags_count", | |
"users"."following_users_count", "users"."github_repos_updated_at", | |
"users"."github_username", "users"."inbox_guidelines", "users"."inbox_type", | |
"users"."invitation_accepted_at", "users"."invitation_created_at", | |
"users"."invitation_limit", "users"."invitation_sent_at", | |
"users"."invitation_token", "users"."invitations_count", | |
"users"."invited_by_id", "users"."invited_by_type", | |
"users"."last_article_at", "users"."last_comment_at", | |
"users"."last_followed_at", "users"."last_moderation_notification", | |
"users"."last_notification_activity", "users"."last_onboarding_page", | |
"users"."last_reacted_at", "users"."last_sign_in_at", | |
"users"."last_sign_in_ip", "users"."latest_article_updated_at", | |
"users"."locked_at", "users"."mobile_comment_notifications", | |
"users"."mod_roundrobin_notifications", "users"."monthly_dues", | |
"users"."name", "users"."old_old_username", "users"."old_username", | |
"users"."onboarding_package_requested", | |
"users"."organization_info_updated_at", "users"."payment_pointer", | |
"users"."permit_adjacent_sponsors", "users"."profile_image", | |
"users"."profile_updated_at", "users"."rating_votes_count", | |
"users"."reaction_notifications", "users"."reactions_count", | |
"users"."registered", "users"."registered_at", | |
"users"."remember_created_at", "users"."remember_token", | |
"users"."reputation_modifier", "users"."reset_password_sent_at", | |
"users"."reset_password_token", "users"."saw_onboarding", "users"."score", | |
"users"."secret", "users"."sign_in_count", "users"."signup_cta_variant", | |
"users"."spent_credits_count", "users"."stripe_id_code", | |
"users"."subscribed_to_user_subscriptions_count", | |
"users"."twitter_username", "users"."unconfirmed_email", | |
"users"."unlock_token", "users"."unspent_credits_count", | |
"users"."updated_at", "users"."username", "users"."welcome_notifications", | |
"users"."workshop_expiration" FROM "users" WHERE "users"."id" = $?) ) | |
"users") ORDER BY "articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c50267b" ON "article_taggings_c50267b"."taggable_id" = | |
"articles"."id" AND "article_taggings_c50267b"."taggable_type" = ? AND | |
"article_taggings_c50267b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_d252928" ON "article_taggings_d252928"."taggable_id" = | |
"articles"."id" AND "article_taggings_d252928"."taggable_type" = ? AND | |
"article_taggings_d252928"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e4e7619" ON "article_taggings_e4e7619"."taggable_id" = | |
"articles"."id" AND "article_taggings_e4e7619"."taggable_type" = ? AND | |
"article_taggings_e4e7619"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_e7ca8de" ON "article_taggings_e7ca8de"."taggable_id" = | |
"articles"."id" AND "article_taggings_e7ca8de"."taggable_type" = ? AND | |
"article_taggings_e7ca8de"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."published_at" >= $? AND | |
"articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ef68b39" ON "article_taggings_ef68b39"."taggable_id" = | |
"articles"."id" AND "article_taggings_ef68b39"."taggable_type" = ? AND | |
"article_taggings_ef68b39"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_f4ef75c" ON "article_taggings_f4ef75c"."taggable_id" = | |
"articles"."id" AND "article_taggings_f4ef75c"."taggable_type" = ? AND | |
"article_taggings_f4ef75c"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- >- | |
SELECT "articles".* FROM "articles" INNER JOIN "taggings" | |
"article_taggings_ffa6706" ON "article_taggings_ffa6706"."taggable_id" = | |
"articles"."id" AND "article_taggings_ffa6706"."taggable_type" = ? AND | |
"article_taggings_ffa6706"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE (articles.featured_number > ?) | |
- SELECT "articles".* FROM "articles" WHERE (cached_tag_list ~ ?) LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."collection_id" = $? | |
AND "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
COALESCE(crossposted_at, published_at) ASC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
ORDER BY "articles"."created_at" DESC | |
- SELECT "articles".* FROM "articles" WHERE "articles"."organization_id" = $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ? OR cached_tag_list ~ ? OR | |
cached_tag_list ~ ?) AND "articles"."user_id" != $? AND (score > ?) ORDER BY | |
"articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."published_at" | |
>= $? AND "articles"."score" >= $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) AND "articles"."user_id" != $? | |
AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" != $? AND "articles"."user_id" != $? | |
ORDER BY "articles"."hotness_score" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" IS ? ORDER BY | |
"articles"."published_at" DESC LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" = $? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."slug" IS ? LIMIT $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."created_at" DESC | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? ORDER BY | |
"articles"."id" ASC LIMIT $? | |
- SELECT "articles".* FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles".* FROM "articles" WHERE "articles"."video_code" = $? LIMIT | |
$? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS rank FROM | |
"articles" WHERE (("articles"."reading_list_document") @@ (to_tsquery(?, ? | |
|| unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)))) AS | |
pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" INNER JOIN (SELECT | |
"articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? AND "articles"."published_at" >= $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."comments_count", | |
"articles"."crossposted_at", "articles"."id", "articles"."organization_id", | |
"articles"."path", "articles"."public_reactions_count", | |
"articles"."published_at", "articles"."reading_time", "articles"."title", | |
"articles"."user_id", "articles"."video_duration_in_seconds", | |
"articles"."video_thumbnail_url" FROM "articles" WHERE (published_at <= ?) | |
AND "articles"."published" = $? ORDER BY hotness_score DESC, comments_count | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" = ? AND "reactions"."reactable_type" = ? ORDER BY | |
"reactions"."created_at" DESC) reactions ON reactions.reactable_id = | |
articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."cached_tag_list", "articles"."crossposted_at", | |
"articles"."path", "articles"."published_at", "articles"."reading_time", | |
"articles"."title", "articles"."user_id", reactions.id AS reaction_id, | |
reactions.user_id AS reaction_user_id FROM "articles" INNER JOIN (SELECT | |
"reactions"."id", "reactions"."reactable_id", "reactions"."user_id" FROM | |
"reactions" WHERE "reactions"."user_id" = ? AND "reactions"."category" = ? | |
AND "reactions"."status" IN (?, ?) AND "reactions"."reactable_type" = ? | |
ORDER BY "reactions"."created_at" DESC) reactions ON reactions.reactable_id | |
= articles.id LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_950a39b" ON "article_taggings_950a39b"."taggable_id" = | |
"articles"."id" AND "article_taggings_950a39b"."taggable_type" = ? AND | |
"article_taggings_950a39b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_b6e13ad" ON "article_taggings_b6e13ad"."taggable_id" = | |
"articles"."id" AND "article_taggings_b6e13ad"."taggable_type" = ? AND | |
"article_taggings_b6e13ad"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) AND "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" ASC | |
- SELECT "articles"."id" FROM "articles" WHERE "articles"."user_id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)), ?)) AS rank FROM | |
"articles" WHERE (("articles"."reading_list_document") @@ (to_tsquery(?, ? | |
|| unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?) && | |
to_tsquery(?, ? || unaccent(?) || ? || ?) && to_tsquery(?, ? || unaccent(?) | |
|| ? || ?) && to_tsquery(?, ? || unaccent(?) || ? || ?)))) AS | |
pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" INNER | |
JOIN (SELECT "articles"."id" AS pg_search_id, | |
(ts_rank(("articles"."reading_list_document"), (to_tsquery(?, ? || | |
unaccent(?) || ? || ?)), ?)) AS rank FROM "articles" WHERE | |
(("articles"."reading_list_document") @@ (to_tsquery(?, ? || unaccent(?) || | |
? || ?)))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = | |
pg_search_906c7ff47cd7c682246c27.pg_search_id WHERE (published_at <= ?) AND | |
"articles"."published" = $? ORDER BY pg_search_906c7ff47cd7c682246c27.rank | |
DESC, "articles"."id" ASC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? AND | |
"articles"."published_at" >= $? ORDER BY "articles"."published_at" DESC | |
LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."cached_tag_list" FROM "articles" WHERE | |
(published_at <= ?) AND "articles"."published" = $? ORDER BY hotness_score | |
DESC, comments_count DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND ("articles"."featured" = $? OR | |
"articles"."score" >= $?) ORDER BY "articles"."published_at" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."published_at", | |
"articles"."processed_html", "articles"."user_id", | |
"articles"."organization_id", "articles"."title", "articles"."path", | |
"articles"."cached_tag_list" FROM "articles" WHERE "articles"."published" = | |
$? AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."id" = $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."organization_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND (published_at > ?) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) AND "articles"."approved" = $? ORDER BY | |
"articles"."featured_number" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(cached_tag_list ~ ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count < ? AND featured_number > ? AND score > ?) LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
(public_reactions_count > ? AND public_reactions_count < ? AND | |
featured_number > ?) LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND (published_at | |
> ?) ORDER BY "articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?))) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND "articles"."id" NOT IN (SELECT | |
"taggings"."taggable_id" FROM "taggings" INNER JOIN "tags" ON | |
"taggings"."tag_id" = "tags"."id" AND "taggings"."taggable_type" = ? AND | |
("tags"."name" LIKE ? ESCAPE ? OR "tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND EXISTS (SELECT | |
* FROM "taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ?))) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ?)) ORDER BY | |
"articles"."public_reactions_count" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."collection_id" = $? ORDER BY "articles"."published_at" ASC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."featured" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" NOT IN (SELECT "taggings"."taggable_id" FROM "taggings" | |
INNER JOIN "tags" ON "taggings"."tag_id" = "tags"."id" AND | |
"taggings"."taggable_type" = ? AND ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?)) ORDER BY "articles"."public_reactions_count" | |
DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time" FROM "articles" | |
WHERE "articles"."user_id" = $? AND "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."published_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."id" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."collection_id", "articles"."title", "articles"."description", | |
"articles"."main_image", "articles"."published_at", | |
"articles"."crossposted_at", "articles"."social_image", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."created_at", | |
"articles"."edited_at", "articles"."last_comment_at", | |
"articles"."published", "articles"."updated_at", | |
"articles"."video_thumbnail_url", "articles"."reading_time", | |
"articles"."body_markdown", "articles"."processed_html" FROM "articles" | |
WHERE "articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."path" = $? LIMIT $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? AND (published_at <= ?) ORDER BY | |
"articles"."published_at" DESC, "articles"."created_at" DESC LIMIT $? OFFSET | |
$? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? AND | |
"articles"."published" = $? ORDER BY "articles"."published_at" DESC, | |
"articles"."created_at" DESC LIMIT $? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."user_id", "articles"."organization_id", | |
"articles"."title", "articles"."description", "articles"."main_image", | |
"articles"."published", "articles"."published_at", | |
"articles"."cached_tag_list", "articles"."slug", "articles"."path", | |
"articles"."canonical_url", "articles"."comments_count", | |
"articles"."public_reactions_count", "articles"."page_views_count", | |
"articles"."crossposted_at", "articles"."body_markdown", | |
"articles"."updated_at" FROM "articles" WHERE "articles"."user_id" = $? | |
ORDER BY "articles"."published_at" DESC, "articles"."created_at" DESC LIMIT | |
$? OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."id", "articles"."video", "articles"."path", | |
"articles"."title", "articles"."video_thumbnail_url", "articles"."user_id", | |
"articles"."video_duration_in_seconds", "articles"."video_source_url" FROM | |
"articles" WHERE "articles"."published" = $? AND (published_at <= ?) AND NOT | |
(("articles"."video" = $? OR "articles"."video" IS ?)) AND NOT | |
(("articles"."video_thumbnail_url" = $? OR "articles"."video_thumbnail_url" | |
IS ?)) AND (score > ?) ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
OFFSET $? | |
- >- | |
SELECT "articles"."path", "articles"."last_comment_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND (published_at > ? | |
AND published_at < ? AND score > ?) | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? AND (cached_tag_list ~ | |
?) ORDER BY "articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."search_optimized_title_preamble", | |
"articles"."comments_count", "articles"."created_at" FROM "articles" WHERE | |
"articles"."published" = $? AND (published_at <= ?) AND | |
"articles"."search_optimized_title_preamble" IS NOT ? ORDER BY | |
"articles"."updated_at" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_00f957b" ON "article_taggings_00f957b"."taggable_id" = | |
"articles"."id" AND "article_taggings_00f957b"."taggable_type" = ? AND | |
"article_taggings_00f957b"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_12e84f3" ON "article_taggings_12e84f3"."taggable_id" = | |
"articles"."id" AND "article_taggings_12e84f3"."taggable_type" = ? AND | |
"article_taggings_12e84f3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2c10432" ON "article_taggings_2c10432"."taggable_id" = | |
"articles"."id" AND "article_taggings_2c10432"."taggable_type" = ? AND | |
"article_taggings_2c10432"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY "articles"."comments_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_2cf0518" ON "article_taggings_2cf0518"."taggable_id" = | |
"articles"."id" AND "article_taggings_2cf0518"."taggable_type" = ? AND | |
"article_taggings_2cf0518"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_548c6aa" ON "article_taggings_548c6aa"."taggable_id" = | |
"articles"."id" AND "article_taggings_548c6aa"."taggable_type" = ? AND | |
"article_taggings_548c6aa"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_717f78e" ON "article_taggings_717f78e"."taggable_id" = | |
"articles"."id" AND "article_taggings_717f78e"."taggable_type" = ? AND | |
"article_taggings_717f78e"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_8f399e9" ON "article_taggings_8f399e9"."taggable_id" = | |
"articles"."id" AND "article_taggings_8f399e9"."taggable_type" = ? AND | |
"article_taggings_8f399e9"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_995ede1" ON "article_taggings_995ede1"."taggable_id" = | |
"articles"."id" AND "article_taggings_995ede1"."taggable_type" = ? AND | |
"article_taggings_995ede1"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_a9139cc" ON "article_taggings_a9139cc"."taggable_id" = | |
"articles"."id" AND "article_taggings_a9139cc"."taggable_type" = ? AND | |
"article_taggings_a9139cc"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c321bb4" ON "article_taggings_c321bb4"."taggable_id" = | |
"articles"."id" AND "article_taggings_c321bb4"."taggable_type" = ? AND | |
"article_taggings_c321bb4"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_c9acc79" ON "article_taggings_c9acc79"."taggable_id" = | |
"articles"."id" AND "article_taggings_c9acc79"."taggable_type" = ? AND | |
"article_taggings_c9acc79"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" INNER JOIN "taggings" | |
"article_taggings_eefd9d3" ON "article_taggings_eefd9d3"."taggable_id" = | |
"articles"."id" AND "article_taggings_eefd9d3"."taggable_type" = ? AND | |
"article_taggings_eefd9d3"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) INNER JOIN "taggings" | |
"article_taggings_1b7949a" ON "article_taggings_1b7949a"."taggable_id" = | |
"articles"."id" AND "article_taggings_1b7949a"."taggable_type" = ? AND | |
"article_taggings_1b7949a"."tag_id" IN (SELECT "tags"."id" FROM "tags" WHERE | |
"tags"."name" LIKE ? ESCAPE ?) WHERE "articles"."published" = $? AND | |
(published_at <= ?) ORDER BY last_comment_at DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) AND | |
"articles"."approved" = $? ORDER BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE EXISTS (SELECT * FROM | |
"taggings" WHERE "taggings"."taggable_id" = "articles"."id" AND | |
"taggings"."taggable_type" = ? AND "taggings"."tag_id" IN (SELECT | |
"tags"."id" FROM "tags" WHERE ("tags"."name" LIKE ? ESCAPE ? OR | |
"tags"."name" LIKE ? ESCAPE ?))) AND (published_at > ? AND score > ?) ORDER | |
BY "articles"."hotness_score" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (cached_tag_list ~ ?) ORDER BY last_comment_at | |
DESC NULLS LAST LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) AND | |
(cached_tag_list ~ ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."comments_count", | |
"articles"."created_at" FROM "articles" WHERE "articles"."published" = $? | |
AND (published_at <= ?) AND (score > ?) AND (published_at > ?) ORDER BY | |
"articles"."organic_page_views_past_month_count" DESC LIMIT $? | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "articles"."public_reactions_count", | |
"articles"."cached_tag_list", "articles"."main_image", | |
"articles"."main_image_background_hex_color", "articles"."updated_at", | |
"articles"."boost_states", "articles"."video", "articles"."user_id", | |
"articles"."organization_id", "articles"."video_source_url", | |
"articles"."video_code", "articles"."video_thumbnail_url", | |
"articles"."video_closed_caption_track_url", "articles"."social_image", | |
"articles"."published_from_feed", "articles"."crossposted_at", | |
"articles"."published_at", "articles"."featured_number", | |
"articles"."created_at", "articles"."body_markdown", | |
"articles"."email_digest_eligible", "articles"."processed_html", | |
"articles"."co_author_ids" FROM "articles" WHERE ("articles"."published" = | |
$? AND (published_at <= ?) OR "articles"."published_from_feed" = $?) AND | |
"articles"."featured" = $? AND (featured_number > ?) ORDER BY | |
"articles"."featured_number" DESC | |
- >- | |
SELECT "articles"."path", "articles"."title", "articles"."id", | |
"articles"."featured", "articles"."approved", "articles"."published", | |
"articles"."comments_count", "arti |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment