Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "Plan": {
- "Node Type": "Aggregate",
- "Strategy": "Hashed",
- "Partial Mode": "Simple",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 179.56,
- "Total Cost": 180.07,
- "Plan Rows": 51,
- "Plan Width": 57,
- "Actual Startup Time": 39.554,
- "Actual Total Time": 39.564,
- "Actual Rows": 3,
- "Actual Loops": 1,
- "Group Key": ["prompt_sets_conversation.prompt_set_id", "prompts_evaluation.ai_model", "prompt_sets_promptset.name"],
- "Planned Partitions": 0,
- "HashAgg Batches": 1,
- "Peak Memory Usage": 24,
- "Disk Usage": 0,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Left",
- "Startup Cost": 143.51,
- "Total Cost": 178.07,
- "Plan Rows": 85,
- "Plan Width": 34,
- "Actual Startup Time": 8.952,
- "Actual Total Time": 28.547,
- "Actual Rows": 26491,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 135.86,
- "Total Cost": 162.62,
- "Plan Rows": 2,
- "Plan Width": 33,
- "Actual Startup Time": 8.862,
- "Actual Total Time": 11.426,
- "Actual Rows": 339,
- "Actual Loops": 1,
- "Inner Unique": true,
- "Join Filter": "((prompts_evaluation.datetime = temp.max) AND ((prompts_evaluation.ai_model)::text = (temp.ai_model)::text))",
- "Rows Removed by Join Filter": 564,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 135.57,
- "Total Cost": 147.42,
- "Plan Rows": 2,
- "Plan Width": 41,
- "Actual Startup Time": 8.851,
- "Actual Total Time": 9.958,
- "Actual Rows": 339,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 135.43,
- "Total Cost": 146.96,
- "Plan Rows": 1,
- "Plan Width": 41,
- "Actual Startup Time": 8.844,
- "Actual Total Time": 9.172,
- "Actual Rows": 117,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 135.27,
- "Total Cost": 138.78,
- "Plan Rows": 1,
- "Plan Width": 49,
- "Actual Startup Time": 8.828,
- "Actual Total Time": 8.950,
- "Actual Rows": 117,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Join Filter": "(prompt_sets_conversation.prompt_set_id = prompt_sets_promptset.id)",
- "Rows Removed by Join Filter": 345,
- "Plans": [
- {
- "Node Type": "Merge Join",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 135.27,
- "Total Cost": 135.31,
- "Plan Rows": 1,
- "Plan Width": 49,
- "Actual Startup Time": 8.799,
- "Actual Total Time": 8.815,
- "Actual Rows": 3,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Merge Cond": "(prompt_sets_promptset.id = temp.id)",
- "Plans": [
- {
- "Node Type": "Sort",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 1.31,
- "Total Cost": 1.31,
- "Plan Rows": 1,
- "Plan Width": 25,
- "Actual Startup Time": 0.027,
- "Actual Total Time": 0.028,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Sort Key": ["prompt_sets_promptset.id"],
- "Sort Method": "quicksort",
- "Sort Space Used": 25,
- "Sort Space Type": "Memory",
- "Plans": [
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "prompt_sets_promptset",
- "Alias": "prompt_sets_promptset",
- "Startup Cost": 0.00,
- "Total Cost": 1.30,
- "Plan Rows": 1,
- "Plan Width": 25,
- "Actual Startup Time": 0.019,
- "Actual Total Time": 0.022,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Filter": "(project_id = 17)",
- "Rows Removed by Filter": 29
- }
- ]
- },
- {
- "Node Type": "Sort",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 133.96,
- "Total Cost": 133.97,
- "Plan Rows": 3,
- "Plan Width": 24,
- "Actual Startup Time": 8.767,
- "Actual Total Time": 8.775,
- "Actual Rows": 3,
- "Actual Loops": 1,
- "Sort Key": ["temp.id"],
- "Sort Method": "quicksort",
- "Sort Space Used": 25,
- "Sort Space Type": "Memory",
- "Plans": [
- {
- "Node Type": "Subquery Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Alias": "temp",
- "Startup Cost": 133.88,
- "Total Cost": 133.94,
- "Plan Rows": 3,
- "Plan Width": 24,
- "Actual Startup Time": 8.759,
- "Actual Total Time": 8.766,
- "Actual Rows": 3,
- "Actual Loops": 1,
- "Plans": [
- {
- "Node Type": "Aggregate",
- "Strategy": "Hashed",
- "Partial Mode": "Simple",
- "Parent Relationship": "Subquery",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 133.88,
- "Total Cost": 133.91,
- "Plan Rows": 3,
- "Plan Width": 24,
- "Actual Startup Time": 8.759,
- "Actual Total Time": 8.764,
- "Actual Rows": 3,
- "Actual Loops": 1,
- "Group Key": ["prompt_sets_promptset_1.id", "prompts_evaluation_1.ai_model"],
- "Planned Partitions": 0,
- "HashAgg Batches": 1,
- "Peak Memory Usage": 24,
- "Disk Usage": 0,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 9.93,
- "Total Cost": 122.19,
- "Plan Rows": 1559,
- "Plan Width": 24,
- "Actual Startup Time": 0.058,
- "Actual Total Time": 5.403,
- "Actual Rows": 11639,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 9.64,
- "Total Cost": 15.72,
- "Plan Rows": 15,
- "Plan Width": 16,
- "Actual Startup Time": 0.050,
- "Actual Total Time": 0.169,
- "Actual Rows": 113,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 9.49,
- "Total Cost": 12.98,
- "Plan Rows": 6,
- "Plan Width": 16,
- "Actual Startup Time": 0.044,
- "Actual Total Time": 0.067,
- "Actual Rows": 39,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Join Filter": "(prompt_sets_conversation_1.prompt_set_id = prompt_sets_promptset_1.id)",
- "Rows Removed by Join Filter": 115,
- "Plans": [
- {
- "Node Type": "Limit",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 9.49,
- "Total Cost": 9.50,
- "Plan Rows": 1,
- "Plan Width": 49,
- "Actual Startup Time": 0.023,
- "Actual Total Time": 0.027,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Plans": [
- {
- "Node Type": "Sort",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 9.49,
- "Total Cost": 9.50,
- "Plan Rows": 1,
- "Plan Width": 49,
- "Actual Startup Time": 0.023,
- "Actual Total Time": 0.025,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Sort Key": ["prompt_sets_promptset_1.id"],
- "Sort Method": "quicksort",
- "Sort Space Used": 25,
- "Sort Space Type": "Memory",
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 0.15,
- "Total Cost": 9.48,
- "Plan Rows": 1,
- "Plan Width": 49,
- "Actual Startup Time": 0.015,
- "Actual Total Time": 0.020,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Inner Unique": false,
- "Plans": [
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "prompt_sets_promptset",
- "Alias": "prompt_sets_promptset_1",
- "Startup Cost": 0.00,
- "Total Cost": 1.30,
- "Plan Rows": 1,
- "Plan Width": 16,
- "Actual Startup Time": 0.003,
- "Actual Total Time": 0.006,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Filter": "(project_id = 17)",
- "Rows Removed by Filter": 29
- },
- {
- "Node Type": "Index Only Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "projects_project_pkey",
- "Relation Name": "projects_project",
- "Alias": "projects_project_1",
- "Startup Cost": 0.15,
- "Total Cost": 8.17,
- "Plan Rows": 1,
- "Plan Width": 8,
- "Actual Startup Time": 0.010,
- "Actual Total Time": 0.011,
- "Actual Rows": 1,
- "Actual Loops": 1,
- "Index Cond": "(id = 17)",
- "Rows Removed by Index Recheck": 0,
- "Heap Fetches": 1
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "prompt_sets_conversation",
- "Alias": "prompt_sets_conversation_1",
- "Startup Cost": 0.00,
- "Total Cost": 2.10,
- "Plan Rows": 110,
- "Plan Width": 16,
- "Actual Startup Time": 0.006,
- "Actual Total Time": 0.019,
- "Actual Rows": 154,
- "Actual Loops": 1
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "prompts_prompt_conversation_id_62eb4525",
- "Relation Name": "prompts_prompt",
- "Alias": "prompts_prompt_1",
- "Startup Cost": 0.15,
- "Total Cost": 0.44,
- "Plan Rows": 2,
- "Plan Width": 16,
- "Actual Startup Time": 0.001,
- "Actual Total Time": 0.002,
- "Actual Rows": 3,
- "Actual Loops": 39,
- "Index Cond": "(conversation_id = prompt_sets_conversation_1.id)",
- "Rows Removed by Index Recheck": 0
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "prompts_evaluation_prompt_id_ad202430",
- "Relation Name": "prompts_evaluation",
- "Alias": "prompts_evaluation_1",
- "Startup Cost": 0.29,
- "Total Cost": 6.10,
- "Plan Rows": 100,
- "Plan Width": 24,
- "Actual Startup Time": 0.004,
- "Actual Total Time": 0.035,
- "Actual Rows": 103,
- "Actual Loops": 113,
- "Index Cond": "(prompt_id = prompts_prompt_1.id)",
- "Rows Removed by Index Recheck": 0
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "prompt_sets_conversation",
- "Alias": "prompt_sets_conversation",
- "Startup Cost": 0.00,
- "Total Cost": 2.10,
- "Plan Rows": 110,
- "Plan Width": 16,
- "Actual Startup Time": 0.008,
- "Actual Total Time": 0.021,
- "Actual Rows": 154,
- "Actual Loops": 3
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "projects_project_pkey",
- "Relation Name": "projects_project",
- "Alias": "projects_project",
- "Startup Cost": 0.15,
- "Total Cost": 8.17,
- "Plan Rows": 1,
- "Plan Width": 8,
- "Actual Startup Time": 0.001,
- "Actual Total Time": 0.002,
- "Actual Rows": 1,
- "Actual Loops": 117,
- "Index Cond": "(id = 17)",
- "Rows Removed by Index Recheck": 0,
- "Filter": "(user_id = 15)",
- "Rows Removed by Filter": 0
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "prompts_prompt_conversation_id_62eb4525",
- "Relation Name": "prompts_prompt",
- "Alias": "prompts_prompt",
- "Startup Cost": 0.15,
- "Total Cost": 0.44,
- "Plan Rows": 2,
- "Plan Width": 16,
- "Actual Startup Time": 0.001,
- "Actual Total Time": 0.002,
- "Actual Rows": 3,
- "Actual Loops": 117,
- "Index Cond": "(conversation_id = prompt_sets_conversation.id)",
- "Rows Removed by Index Recheck": 0
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "prompts_evaluation_prompt_id_ad202430",
- "Relation Name": "prompts_evaluation",
- "Alias": "prompts_evaluation",
- "Startup Cost": 0.29,
- "Total Cost": 6.10,
- "Plan Rows": 100,
- "Plan Width": 32,
- "Actual Startup Time": 0.003,
- "Actual Total Time": 0.004,
- "Actual Rows": 3,
- "Actual Loops": 339,
- "Index Cond": "(prompt_id = prompts_prompt.id)",
- "Rows Removed by Index Recheck": 0
- }
- ]
- },
- {
- "Node Type": "Hash Join",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Left",
- "Startup Cost": 7.65,
- "Total Cost": 10.72,
- "Plan Rows": 83,
- "Plan Width": 17,
- "Actual Startup Time": 0.004,
- "Actual Total Time": 0.041,
- "Actual Rows": 78,
- "Actual Loops": 339,
- "Inner Unique": true,
- "Hash Cond": "(prompts_evaluationcount.brand_id = projects_brand.id)",
- "Plans": [
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "prompts_evaluationcount_evaluation_id_81fb29cd",
- "Relation Name": "prompts_evaluationcount",
- "Alias": "prompts_evaluationcount",
- "Startup Cost": 0.43,
- "Total Cost": 3.27,
- "Plan Rows": 83,
- "Plan Width": 24,
- "Actual Startup Time": 0.003,
- "Actual Total Time": 0.021,
- "Actual Rows": 78,
- "Actual Loops": 339,
- "Index Cond": "(evaluation_id = prompts_evaluation.id)",
- "Rows Removed by Index Recheck": 0
- },
- {
- "Node Type": "Hash",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 5.43,
- "Total Cost": 5.43,
- "Plan Rows": 143,
- "Plan Width": 9,
- "Actual Startup Time": 0.060,
- "Actual Total Time": 0.061,
- "Actual Rows": 143,
- "Actual Loops": 1,
- "Hash Buckets": 1024,
- "Original Hash Buckets": 1024,
- "Hash Batches": 1,
- "Original Hash Batches": 1,
- "Peak Memory Usage": 15,
- "Plans": [
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "projects_brand",
- "Alias": "projects_brand",
- "Startup Cost": 0.00,
- "Total Cost": 5.43,
- "Plan Rows": 143,
- "Plan Width": 9,
- "Actual Startup Time": 0.007,
- "Actual Total Time": 0.034,
- "Actual Rows": 143,
- "Actual Loops": 1
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- "Planning Time": 4.859,
- "Triggers": [
- ],
- "Execution Time": 39.719
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment