Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ivanminutillo/f496d4ffd4fffa8527ca21e2af3ab270 to your computer and use it in GitHub Desktop.
Save ivanminutillo/f496d4ffd4fffa8527ca21e2af3ab270 to your computer and use it in GitHub Desktop.
Sort (cost=6976.13..6976.15 rows=7 width=3472) (actual time=26.083..26.099 rows=39 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p7.id, p7.table_id, p7.deleted_at, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b16.id, b16.peer_id, b16.canonical_uri, b15.id, b15.name, b15.summary, b15.html_body, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id, b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, p20.id, p20.table_id, p20.deleted_at, b21.id, b21.name, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, b13.id, b13.verb
Sort Key: b0.id DESC
Sort Method: quicksort Memory: 99kB
-> Hash Join (cost=6392.47..6976.03 rows=7 width=3472) (actual time=24.984..25.964 rows=39 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p7.id, p7.table_id, p7.deleted_at, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b16.id, b16.peer_id, b16.canonical_uri, b15.id, b15.name, b15.summary, b15.html_body, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id, b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, p20.id, p20.table_id, p20.deleted_at, b21.id, b21.name, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, b13.id, b13.verb
Inner Unique: true
Hash Cond: (b1.object_id = s22.object_id)
-> Nested Loop Left Join (cost=165.52..749.00 rows=31 width=3472) (actual time=0.566..1.521 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id, b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at, p20.id, p20.table_id, p20.deleted_at, b21.id, b21.name
Inner Unique: true
-> Nested Loop Left Join (cost=165.36..743.62 rows=31 width=3424) (actual time=0.550..1.461 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id, b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at, p20.id, p20.table_id, p20.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=165.08..633.34 rows=31 width=3384) (actual time=0.536..1.379 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id, b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=164.80..546.23 rows=31 width=3211) (actual time=0.529..1.340 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id, b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id
Inner Unique: true
-> Nested Loop Left Join (cost=164.66..541.01 rows=31 width=2664) (actual time=0.521..1.277 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri, b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id
Inner Unique: true
-> Nested Loop Left Join (cost=164.52..535.96 rows=31 width=2532) (actual time=0.498..1.211 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body, b16.id, b16.peer_id, b16.canonical_uri
Inner Unique: true
-> Nested Loop Left Join (cost=164.24..526.79 rows=31 width=2445) (actual time=0.483..1.139 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path, b15.id, b15.name, b15.summary, b15.html_body
Inner Unique: true
-> Nested Loop Left Join (cost=163.97..517.35 rows=31 width=2084) (actual time=0.466..1.055 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb, b14.id, b14.reply_to_id, b14.thread_id, b14.direct_replies_count, b14.nested_replies_count, b14.path
Inner Unique: true
-> Nested Loop Left Join (cost=163.70..503.64 rows=31 width=2000) (actual time=0.450..0.967 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at, b13.id, b13.verb
Inner Unique: true
-> Nested Loop Left Join (cost=163.55..495.68 rows=31 width=1952) (actual time=0.439..0.900 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id, b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=163.27..408.56 rows=31 width=1779) (actual time=0.426..0.846 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id, b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id
Inner Unique: true
-> Nested Loop Left Join (cost=163.13..403.34 rows=31 width=1232) (actual time=0.413..0.774 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at, b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id
Inner Unique: true
-> Nested Loop Left Join (cost=162.98..398.29 rows=31 width=1100) (actual time=0.395..0.701 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id, p9.id, p9.table_id, p9.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=162.70..314.84 rows=31 width=1060) (actual time=0.366..0.607 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at, b8.id, b8.creator_id
Inner Unique: true
-> Nested Loop (cost=162.42..305.65 rows=31 width=1028) (actual time=0.347..0.519 rows=43 loops=1)
Output: b0.id, b0.feed_id, b1.id, b1.subject_id, b1.object_id, b1.verb_id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at
-> Nested Loop Left Join (cost=162.15..296.36 rows=13 width=1012) (actual time=0.325..0.451 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at, p7.id, p7.table_id, p7.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=161.86..262.66 rows=13 width=972) (actual time=0.309..0.414 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id, b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at
Inner Unique: true
-> Nested Loop Left Join (cost=161.59..226.12 rows=13 width=799) (actual time=0.302..0.388 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id, b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id
Inner Unique: true
-> Nested Loop Left Join (cost=161.44..223.93 rows=13 width=252) (actual time=0.285..0.354 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id, p3.id, p3.table_id, p3.deleted_at, b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id
Inner Unique: true
-> Nested Loop Left Join (cost=161.30..221.82 rows=13 width=120) (actual time=0.270..0.322 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id, p3.id, p3.table_id, p3.deleted_at
Inner Unique: true
-> Hash Join (cost=161.01..188.11 rows=13 width=80) (actual time=0.257..0.286 rows=13 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id, sb0.id
Hash Cond: (b1.id = sb0.id)
-> Seq Scan on public.bonfire_data_social_activity b1 (cost=0.00..23.52 rows=552 width=64) (actual time=0.010..0.062 rows=556 loops=1)
Output: b1.id, b1.subject_id, b1.object_id, b1.verb_id
-> Hash (cost=160.85..160.85 rows=13 width=16) (actual time=0.137..0.141 rows=13 loops=1)
Output: sb0.id
Buckets: 1024 Batches: 1 Memory Usage: 9kB
-> Limit (cost=10.41..160.72 rows=13 width=16) (actual time=0.096..0.132 rows=13 loops=1)
Output: sb0.id
-> Nested Loop (cost=10.41..2045.39 rows=176 width=16) (actual time=0.095..0.129 rows=13 loops=1)
Output: sb0.id
Inner Unique: true
Join Filter: (sb1.id = sp2.id)
-> Merge Join (cost=10.13..1821.19 rows=176 width=32) (actual time=0.081..0.102 rows=13 loops=1)
Output: sb0.id, sb1.id
Merge Cond: (sb1.id = sb0.id)
Join Filter: ((sb0.feed_id = ANY ('{797632fc-029e-06f0-1031-410d73a5558e}'::uuid[])) OR (sb4.id IS NULL))
-> Nested Loop Left Join (cost=0.83..1646.37 rows=548 width=32) (actual time=0.056..0.072 rows=5 loops=1)
Output: sb1.id, sb4.id
Inner Unique: true
-> Nested Loop (cost=0.56..1484.14 rows=548 width=32) (actual time=0.037..0.047 rows=5 loops=1)
Output: sb1.id, sp3.id
Inner Unique: true
-> Index Scan Backward using bonfire_data_social_activity_pkey on public.bonfire_data_social_activity sb1 (cost=0.28..53.38 rows=549 width=32) (actual time=0.023..0.025 rows=5 loops=1)
Output: sb1.id, sb1.subject_id, sb1.object_id, sb1.verb_id
Filter: (sb1.verb_id <> ALL ('{80ae94cd-703a-8aad-80ed-5a751d9caa0e,e1543365-5018-dd54-c63a-da52c2e0e9d4,e1543365-5018-dd54-c63a-da52c2e0e9d4}'::uuid[]))
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer sp3 (cost=0.29..2.61 rows=1 width=16) (actual time=0.004..0.004 rows=1 loops=5)
Output: sp3.id, sp3.table_id, sp3.deleted_at
Index Cond: (sp3.id = sb1.object_id)
Filter: ((sp3.deleted_at IS NULL) AND (sp3.table_id <> ALL ('{d80ed5a7-51d9-541c-c052-9ba858ad0415}'::uuid[])))
-> Index Only Scan using bonfire_data_activity_pub_peered_pkey on public.bonfire_data_activity_pub_peered sb4 (cost=0.27..0.30 rows=1 width=16) (actual time=0.004..0.004 rows=0 loops=5)
Output: sb4.id
Index Cond: (sb4.id = sp3.id)
Heap Fetches: 0
-> Index Only Scan Backward using bonfire_data_social_feed_publish_pkey on public.bonfire_data_social_feed_publish sb0 (cost=0.28..155.41 rows=1320 width=32) (actual time=0.022..0.024 rows=13 loops=1)
Output: sb0.id, sb0.feed_id
Heap Fetches: 13
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer sp2 (cost=0.29..1.26 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=13)
Output: sp2.id, sp2.table_id, sp2.deleted_at
Index Cond: (sp2.id = sb0.id)
Filter: ((sp2.deleted_at IS NULL) AND (sp2.table_id <> ALL ('{d80ed5a7-51d9-541c-c052-9ba858ad0415}'::uuid[])))
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer p3 (cost=0.29..2.59 rows=1 width=40) (actual time=0.002..0.002 rows=1 loops=13)
Output: p3.id, p3.table_id, p3.deleted_at
Index Cond: (p3.id = b1.subject_id)
-> Index Scan using bonfire_data_identity_character_pkey on public.bonfire_data_identity_character b4 (cost=0.14..0.16 rows=1 width=132) (actual time=0.002..0.002 rows=1 loops=13)
Output: b4.id, b4.username, b4.username_hash, b4.outbox_id, b4.inbox_id, b4.notifications_id
Index Cond: (b4.id = p3.id)
-> Index Scan using bonfire_data_social_profile_pkey on public.bonfire_data_social_profile b5 (cost=0.14..0.17 rows=1 width=547) (actual time=0.002..0.002 rows=1 loops=13)
Output: b5.id, b5.name, b5.summary, b5.website, b5.location, b5.icon_id, b5.image_id
Index Cond: (b5.id = p3.id)
-> Index Scan using bonfire_files_media_pkey on public.bonfire_files_media b6 (cost=0.28..2.81 rows=1 width=173) (actual time=0.001..0.001 rows=1 loops=13)
Output: b6.id, b6.user_id, b6.path, b6.size, b6.media_type, b6.metadata, b6.deleted_at
Index Cond: (b6.id = b5.icon_id)
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer p7 (cost=0.29..2.59 rows=1 width=40) (actual time=0.002..0.002 rows=1 loops=13)
Output: p7.id, p7.table_id, p7.deleted_at
Index Cond: (p7.id = b1.object_id)
-> Index Only Scan using bonfire_data_social_feed_publish_pkey on public.bonfire_data_social_feed_publish b0 (cost=0.28..0.69 rows=3 width=32) (actual time=0.003..0.004 rows=3 loops=13)
Output: b0.id, b0.feed_id
Index Cond: (b0.id = b1.id)
Heap Fetches: 43
-> Index Scan using bonfire_data_social_created_pkey on public.bonfire_data_social_created b8 (cost=0.28..0.30 rows=1 width=32) (actual time=0.001..0.001 rows=1 loops=43)
Output: b8.id, b8.creator_id
Index Cond: (b8.id = p7.id)
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer p9 (cost=0.29..2.69 rows=1 width=40) (actual time=0.002..0.002 rows=1 loops=43)
Output: p9.id, p9.table_id, p9.deleted_at
Index Cond: (p9.id = b8.creator_id)
-> Index Scan using bonfire_data_identity_character_pkey on public.bonfire_data_identity_character b10 (cost=0.14..0.16 rows=1 width=132) (actual time=0.001..0.001 rows=1 loops=43)
Output: b10.id, b10.username, b10.username_hash, b10.outbox_id, b10.inbox_id, b10.notifications_id
Index Cond: (b10.id = p9.id)
-> Index Scan using bonfire_data_social_profile_pkey on public.bonfire_data_social_profile b11 (cost=0.14..0.17 rows=1 width=547) (actual time=0.001..0.001 rows=1 loops=43)
Output: b11.id, b11.name, b11.summary, b11.website, b11.location, b11.icon_id, b11.image_id
Index Cond: (b11.id = p9.id)
-> Index Scan using bonfire_files_media_pkey on public.bonfire_files_media b12 (cost=0.28..2.81 rows=1 width=173) (actual time=0.001..0.001 rows=0 loops=43)
Output: b12.id, b12.user_id, b12.path, b12.size, b12.media_type, b12.metadata, b12.deleted_at
Index Cond: (b12.id = b11.icon_id)
-> Index Scan using bonfire_data_access_control_verb_pkey on public.bonfire_data_access_control_verb b13 (cost=0.15..0.26 rows=1 width=48) (actual time=0.001..0.001 rows=1 loops=43)
Output: b13.id, b13.verb
Index Cond: (b13.id = b1.verb_id)
-> Index Scan using bonfire_data_social_replied_pkey on public.bonfire_data_social_replied b14 (cost=0.27..0.44 rows=1 width=84) (actual time=0.001..0.001 rows=1 loops=43)
Output: b14.id, b14.reply_to_id, b14.thread_id, b14.path, b14.direct_replies_count, b14.nested_replies_count
Index Cond: (b14.id = b1.object_id)
-> Index Scan using bonfire_data_social_post_content_pkey on public.bonfire_data_social_post_content b15 (cost=0.27..0.30 rows=1 width=361) (actual time=0.001..0.001 rows=1 loops=43)
Output: b15.id, b15.name, b15.summary, b15.html_body
Index Cond: (b15.id = p7.id)
-> Index Scan using bonfire_data_activity_pub_peered_pkey on public.bonfire_data_activity_pub_peered b16 (cost=0.27..0.30 rows=1 width=87) (actual time=0.001..0.001 rows=0 loops=43)
Output: b16.id, b16.peer_id, b16.canonical_uri
Index Cond: (b16.id = p7.id)
-> Index Scan using bonfire_data_identity_character_pkey on public.bonfire_data_identity_character b17 (cost=0.14..0.16 rows=1 width=132) (actual time=0.001..0.001 rows=0 loops=43)
Output: b17.id, b17.username, b17.username_hash, b17.outbox_id, b17.inbox_id, b17.notifications_id
Index Cond: (b17.id = p7.id)
-> Index Scan using bonfire_data_social_profile_pkey on public.bonfire_data_social_profile b18 (cost=0.14..0.17 rows=1 width=547) (actual time=0.001..0.001 rows=0 loops=43)
Output: b18.id, b18.name, b18.summary, b18.website, b18.location, b18.icon_id, b18.image_id
Index Cond: (b18.id = p7.id)
-> Index Scan using bonfire_files_media_pkey on public.bonfire_files_media b19 (cost=0.28..2.81 rows=1 width=173) (actual time=0.000..0.000 rows=0 loops=43)
Output: b19.id, b19.user_id, b19.path, b19.size, b19.media_type, b19.metadata, b19.deleted_at
Index Cond: (b19.id = b18.icon_id)
-> Index Scan using pointers_pointer_pkey on public.pointers_pointer p20 (cost=0.29..3.56 rows=1 width=40) (actual time=0.001..0.001 rows=1 loops=43)
Output: p20.id, p20.table_id, p20.deleted_at
Index Cond: (p20.id = b14.thread_id)
-> Index Scan using bonfire_data_social_named_pkey on public.bonfire_data_social_named b21 (cost=0.15..0.17 rows=1 width=48) (actual time=0.001..0.001 rows=0 loops=43)
Output: b21.id, b21.name
Index Cond: (b21.id = p20.id)
-> Hash (cost=6225.70..6225.70 rows=100 width=16) (actual time=24.374..24.378 rows=379 loops=1)
Output: s22.object_id
Buckets: 1024 Batches: 1 Memory Usage: 26kB
-> Subquery Scan on s22 (cost=6222.70..6225.70 rows=100 width=16) (actual time=24.235..24.319 rows=379 loops=1)
Output: s22.object_id
-> HashAggregate (cost=6222.70..6224.70 rows=100 width=24) (actual time=24.234..24.286 rows=379 loops=1)
Output: NULL::bigint, controlled.id
Group Key: controlled.id
Filter: agg_perms((agg_perms(g.value)))
-> HashAggregate (cost=5842.29..5856.25 rows=1396 width=49) (actual time=23.285..23.403 rows=757 loops=1)
Output: pointer.id, controlled.id, verb.id, agg_perms(g.value)
Group Key: pointer.id, controlled.id, verb.id
-> Hash Left Join (cost=2344.42..2611.18 rows=12548 width=49) (actual time=18.776..22.597 rows=757 loops=1)
Output: pointer.id, controlled.id, verb.id, g.value
Inner Unique: true
Hash Cond: ((pointers_pointer.id = encircle.circle_id) AND (pointer.id = encircle.subject_id))
Filter: ((g.subject_id = pointer.id) OR (encircle.id IS NOT NULL))
Rows Removed by Filter: 11901
-> Hash Left Join (cost=2334.59..2535.48 rows=12548 width=81) (actual time=14.610..21.312 rows=12658 loops=1)
Output: pointer.id, controlled.id, verb.id, g.value, g.subject_id, pointers_pointer.id
Inner Unique: true
Hash Cond: (g.subject_id = pointers_pointer.id)
-> Merge Left Join (cost=2068.36..2236.31 rows=12548 width=65) (actual time=14.301..19.194 rows=12658 loops=1)
Output: pointer.id, controlled.id, verb.id, g.value, g.subject_id
Merge Cond: ((controlled.acl_id = g.acl_id) AND (verb.id = g.verb_id))
-> Sort (cost=1198.80..1230.17 rows=12548 width=64) (actual time=8.569..9.271 rows=12642 loops=1)
Output: pointer.id, controlled.id, controlled.acl_id, verb.id
Sort Key: controlled.acl_id, verb.id
Sort Method: quicksort Memory: 2162kB
-> Nested Loop (cost=8.61..344.58 rows=12548 width=64) (actual time=0.046..3.301 rows=12642 loops=1)
Output: pointer.id, controlled.id, controlled.acl_id, verb.id
-> Seq Scan on public.bonfire_data_access_control_controlled controlled (cost=0.00..165.74 rows=6274 width=32) (actual time=0.005..0.507 rows=6321 loops=1)
Output: controlled.id, controlled.acl_id
-> Materialize (cost=8.61..21.99 rows=2 width=32) (actual time=0.000..0.000 rows=2 loops=6321)
Output: pointer.id, verb.id
-> Nested Loop (cost=8.61..21.98 rows=2 width=32) (actual time=0.033..0.035 rows=2 loops=1)
Output: pointer.id, verb.id
-> Index Only Scan using pointers_pointer_pkey on public.pointers_pointer pointer (cost=0.29..8.30 rows=1 width=16) (actual time=0.028..0.029 rows=1 loops=1)
Output: pointer.id
Index Cond: (pointer.id = ANY ('{0aab414c-eb0a-ac1d-8c81-ef0d74ec55da}'::uuid[]))
Heap Fetches: 1
-> Bitmap Heap Scan on public.bonfire_data_access_control_verb verb (cost=8.32..13.66 rows=2 width=16) (actual time=0.003..0.003 rows=2 loops=1)
Output: verb.id, verb.verb
Recheck Cond: (verb.id = ANY ('{0bcbb1b0-d601-0e74-1ac3-2ee873a7558e,0e534358-677a-d3b0-1f3f-756aa8eae941}'::uuid[]))
Heap Blocks: exact=1
-> Bitmap Index Scan on bonfire_data_access_control_verb_pkey (cost=0.00..8.32 rows=2 width=0) (actual time=0.001..0.002 rows=2 loops=1)
Index Cond: (verb.id = ANY ('{0bcbb1b0-d601-0e74-1ac3-2ee873a7558e,0e534358-677a-d3b0-1f3f-756aa8eae941}'::uuid[]))
-> Sort (cost=869.57..893.71 rows=9655 width=49) (actual time=5.725..6.546 rows=16489 loops=1)
Output: g.value, g.acl_id, g.verb_id, g.subject_id
Sort Key: g.acl_id, g.verb_id
Sort Method: quicksort Memory: 1651kB
-> Seq Scan on public.bonfire_data_access_control_grant g (cost=0.00..230.55 rows=9655 width=49) (actual time=0.010..1.204 rows=9008 loops=1)
Output: g.value, g.acl_id, g.verb_id, g.subject_id
-> Hash (cost=255.95..255.95 rows=822 width=16) (actual time=0.302..0.303 rows=704 loops=1)
Output: pointers_pointer.id
Buckets: 1024 Batches: 1 Memory Usage: 41kB
-> Bitmap Heap Scan on public.pointers_pointer (cost=26.66..255.95 rows=822 width=16) (actual time=0.048..0.219 rows=704 loops=1)
Output: pointers_pointer.id
Recheck Cond: (pointers_pointer.table_id = '81c302ec-ab0e-56c3-90ac-210ebd9602ce'::uuid)
Filter: (pointers_pointer.deleted_at IS NULL)
Heap Blocks: exact=98
-> Bitmap Index Scan on pointers_pointer_table_id_index (cost=0.00..26.46 rows=823 width=0) (actual time=0.035..0.035 rows=704 loops=1)
Index Cond: (pointers_pointer.table_id = '81c302ec-ab0e-56c3-90ac-210ebd9602ce'::uuid)
-> Hash (cost=8.13..8.13 rows=113 width=48) (actual time=0.055..0.055 rows=187 loops=1)
Output: encircle.circle_id, encircle.subject_id, encircle.id
Buckets: 1024 Batches: 1 Memory Usage: 23kB
-> Seq Scan on public.bonfire_data_access_control_encircle encircle (cost=0.00..8.13 rows=113 width=48) (actual time=0.006..0.026 rows=187 loops=1)
Output: encircle.circle_id, encircle.subject_id, encircle.id
Planning Time: 18.887 ms
Execution Time: 27.815 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment