Request time - vote_count

[                                                                                                                                                                                                                      +
   {                                                                                                                                                                                                                    +
     "Plan": {                                                                                                                                                                                                          +
       "Node Type": "Bitmap Heap Scan",                                                                                                                                                                                 +
       "Relation Name": "topic_custom_fields",                                                                                                                                                                          +
       "Schema": "public",                                                                                                                                                                                              +
       "Alias": "topic_custom_fields",                                                                                                                                                                                  +
       "Startup Cost": 44.78,                                                                                                                                                                                           +
       "Total Cost": 59.23,                                                                                                                                                                                             +
       "Plan Rows": 25,                                                                                                                                                                                                 +
       "Plan Width": 22,                                                                                                                                                                                                +
       "Actual Startup Time": 0.127,                                                                                                                                                                                    +
       "Actual Total Time": 0.184,                                                                                                                                                                                      +
       "Actual Rows": 30,                                                                                                                                                                                               +
       "Actual Loops": 1,                                                                                                                                                                                               +
       "Output": ["topic_id", "name", "value"],                                                                                                                                                                         +
       "Recheck Cond": "(topic_custom_fields.topic_id = ANY ('{756,159,134,1041,958,1037,260,900,1016,1018,773,1015,1034,428,301,998,1005,1006,1008,1012,1010,1007,680,1003,781,886,1002,899,662,1000}'::integer[]))",  +
       "Rows Removed by Index Recheck": 0,                                                                                                                                                                              +
       "Filter": "((topic_custom_fields.name)::text = ANY ('{accepted_answer_post_id,vote_count}'::text[]))",                                                                                                           +
       "Rows Removed by Filter": 9,                                                                                                                                                                                     +
       "Exact Heap Blocks": 9,                                                                                                                                                                                          +
       "Lossy Heap Blocks": 0,                                                                                                                                                                                          +
       "Shared Hit Blocks": 69,                                                                                                                                                                                         +
       "Shared Read Blocks": 0,                                                                                                                                                                                         +
       "Shared Dirtied Blocks": 0,                                                                                                                                                                                      +
       "Shared Written Blocks": 0,                                                                                                                                                                                      +
       "Local Hit Blocks": 0,                                                                                                                                                                                           +
       "Local Read Blocks": 0,                                                                                                                                                                                          +
       "Local Dirtied Blocks": 0,                                                                                                                                                                                       +
       "Local Written Blocks": 0,                                                                                                                                                                                       +
       "Temp Read Blocks": 0,                                                                                                                                                                                           +
       "Temp Written Blocks": 0,                                                                                                                                                                                        +
       "Plans": [                                                                                                                                                                                                       +
         {                                                                                                                                                                                                              +
           "Node Type": "Bitmap Index Scan",                                                                                                                                                                            +
           "Parent Relationship": "Outer", 



   "Index Name": "tmpindex",                                                                                                                                                                                    +
       "Startup Cost": 0.00,                                                                                                                                                                                        +
       "Total Cost": 44.78,                                                                                                                                                                                         +
       "Plan Rows": 49,                                                                                                                                                                                             +
       "Plan Width": 0,                                                                                                                                                                                             +
       "Actual Startup Time": 0.102,                                                                                                                                                                                +
       "Actual Total Time": 0.102,                                                                                                                                                                                  +
       "Actual Rows": 39,                                                                                                                                                                                           +
       "Actual Loops": 1,                                                                                                                                                                                           +
       "Index Cond": "(topic_custom_fields.topic_id = ANY ('{756,159,134,1041,958,1037,260,900,1016,1018,773,1015,1034,428,301,998,1005,1006,1008,1012,1010,1007,680,1003,781,886,1002,899,662,1000}'::integer[]))",+
       "Shared Hit Blocks": 60,                                                                                                                                                                                     +
       "Shared Read Blocks": 0,                                                                                                                                                                                     +
       "Shared Dirtied Blocks": 0,                                                                                                                                                                                  +
       "Shared Written Blocks": 0,                                                                                                                                                                                  +
       "Local Hit Blocks": 0,                                                                                                                                                                                       +
       "Local Read Blocks": 0,                                                                                                                                                                                      +
       "Local Dirtied Blocks": 0,                                                                                                                                                                                   +
       "Local Written Blocks": 0,                                                                                                                                                                                   +
       "Temp Read Blocks": 0,                                                                                                                                                                                       +
       "Temp Written Blocks": 0                                                                                                                                                                                     +
     }                                                                                                                                                                                                              +
   ]                                                                                                                                                                                                                +
 },                                                                                                                                                                                                                 +

                        +
   "Plans": [                                                                                                                                                                                                       +
     {                                                                                                                                                                                                              +
       "Node Type": "Bitmap Index Scan",                                                                                                                                                                            +
       "Parent Relationship": "Outer",                                                                                                                                                                              +
       "Index Name": "tmpindex",                                                                                                                                                                                    +
       "Startup Cost": 0.00,                                                                                                                                                                                        +
       "Total Cost": 44.78,                                                                                                                                                                                         +
       "Plan Rows": 49,                                                                                                                                                                                             +
       "Plan Width": 0,                                                                                                                                                                                             +
       "Actual Startup Time": 0.102,                                                                                                                                                                                +
       "Actual Total Time": 0.102,                                                                                                                                                                                  +
       "Actual Rows": 39,                                                                                                                                                                                           +
       "Actual Loops": 1,                                                                                                                                                                                           +
       "Index Cond": "(topic_custom_fields.topic_id = ANY ('{756,159,134,1041,958,1037,260,900,1016,1018,773,1015,1034,428,301,998,1005,1006,1008,1012,1010,1007,680,1003,781,886,1002,899,662,1000}'::integer[]))",+
       "Shared Hit Blocks": 60,                                                                                                                                                                                     +
       "Shared Read Blocks": 0,                                                                                                                                                                                     +
       "Shared Dirtied Blocks": 0,                                                                                                                                                                                  +
       "Shared Written Blocks": 0,                                                                                                                                                                                  +
       "Local Hit Blocks": 0,                                                                                                                                                                                       +
       "Local Read Blocks": 0,                                                                                                                                                                                      +
       "Local Dirtied Blocks": 0,                                                                                                                                                                                   +
       "Local Written Blocks": 0,                                                                                                                                                                                   +
       "Temp Read Blocks": 0,                                                                                                                                                                                       +
       "Temp Written Blocks": 0                                                                                                                                                                                     +
     }                                                                                                                                                                                                              +
   ]                                                                                                                                                                                                                +
 },                                                                                                                                                                                                                 +
 "Planning Time": 0.369,                                                                                                                                                                                            +
 "Triggers": [                                                                                                                                                                                                      +
 ],                                                                                                                                                                                                                 +
 "Execution Time": 0.254                                                                                                                                                                                            +

} +
]
(1 row)

(END)

After

create index tmpIndex on topic_custom_fields(topic_id, name, value)

Executing action: latest — 134.50 ms (-20ms)