Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "Plan": {
- "Node Type": "Nested Loop",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 58.67,
- "Total Cost": 26783.54,
- "Plan Rows": 3550,
- "Plan Width": 178,
- "Actual Startup Time": 68.571,
- "Actual Total Time": 22767.543,
- "Actual Rows": 10000,
- "Actual Loops": 1,
- "Output": ["event.start_time", "event.event_id", "event.db2_station_code", "event.end_time", "event.panel_code", "event.duration_is_minutes", "event.date_of_transmission", "event.area_flags", "event.barb_content_id", "station.db2stationname", "panel.panelname", "(json_agg(json_build_object('d', category.category_description)))", "content.episode_name", "content.episode_number", "content.content_name"],
- "Inner Unique": false,
- "Shared Hit Blocks": 1790094,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Hash Join",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 58.38,
- "Total Cost": 25343.13,
- "Plan Rows": 3550,
- "Plan Width": 135,
- "Actual Startup Time": 68.550,
- "Actual Total Time": 22714.473,
- "Actual Rows": 10000,
- "Actual Loops": 1,
- "Output": ["event.start_time", "event.event_id", "event.db2_station_code", "event.end_time", "event.panel_code", "event.duration_is_minutes", "event.date_of_transmission", "event.area_flags", "event.barb_content_id", "(json_agg(json_build_object('d', category.category_description)))", "station.db2stationname", "panel.panelname"],
- "Inner Unique": false,
- "Hash Cond": "((event.db2_station_code)::numeric = station.db2stationcode)",
- "Shared Hit Blocks": 1760094,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Hash Join",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 35.68,
- "Total Cost": 25267.17,
- "Plan Rows": 3550,
- "Plan Width": 123,
- "Actual Startup Time": 68.314,
- "Actual Total Time": 22706.322,
- "Actual Rows": 10000,
- "Actual Loops": 1,
- "Output": ["event.start_time", "event.event_id", "event.db2_station_code", "event.end_time", "event.panel_code", "event.duration_is_minutes", "event.date_of_transmission", "event.area_flags", "event.barb_content_id", "(json_agg(json_build_object('d', category.category_description)))", "panel.panelname"],
- "Inner Unique": false,
- "Hash Cond": "((event.panel_code)::numeric = panel.panelcode)",
- "Shared Hit Blocks": 1760087,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Limit",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 33.08,
- "Total Cost": 25079.07,
- "Plan Rows": 10000,
- "Plan Width": 103,
- "Actual Startup Time": 68.282,
- "Actual Total Time": 22696.606,
- "Actual Rows": 10000,
- "Actual Loops": 1,
- "Output": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id", "(json_agg(json_build_object('d', category.category_description)))"],
- "Shared Hit Blocks": 1760086,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Aggregate",
- "Strategy": "Sorted",
- "Partial Mode": "Simple",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 33.08,
- "Total Cost": 1389058.93,
- "Plan Rows": 554590,
- "Plan Width": 103,
- "Actual Startup Time": 68.281,
- "Actual Total Time": 22694.339,
- "Actual Rows": 10000,
- "Actual Loops": 1,
- "Output": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id", "json_agg(json_build_object('d', category.category_description))"],
- "Group Key": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id"],
- "Shared Hit Blocks": 1760086,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Incremental Sort",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 33.08,
- "Total Cost": 1327984.67,
- "Plan Rows": 1968796,
- "Plan Width": 83,
- "Actual Startup Time": 36.885,
- "Actual Total Time": 22137.778,
- "Actual Rows": 600001,
- "Actual Loops": 1,
- "Output": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id", "category.category_description"],
- "Sort Key": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id"],
- "Presorted Key": ["event.date_of_transmission", "event.event_id"],
- "Full-sort Groups": {
- "Group Count": 10001,
- "Sort Methods Used": ["quicksort"],
- "Sort Space Memory": {
- "Average Sort Space Used": 33,
- "Peak Sort Space Used": 33
- }
- },
- "Shared Hit Blocks": 1760086,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Nested Loop",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Join Type": "Inner",
- "Startup Cost": 0.57,
- "Total Cost": 1208474.16,
- "Plan Rows": 1968796,
- "Plan Width": 83,
- "Actual Startup Time": 2.765,
- "Actual Total Time": 21822.989,
- "Actual Rows": 600061,
- "Actual Loops": 1,
- "Output": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id", "category.category_description"],
- "Inner Unique": false,
- "Shared Hit Blocks": 1760086,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Custom Scan",
- "Parent Relationship": "Outer",
- "Custom Plan Provider": "ChunkAppend",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "fact_program_event_audience_v1",
- "Schema": "v1",
- "Alias": "event",
- "Startup Cost": 0.43,
- "Total Cost": 251802.42,
- "Plan Rows": 5545904,
- "Plan Width": 75,
- "Actual Startup Time": 2.081,
- "Actual Total Time": 20653.451,
- "Actual Rows": 622441,
- "Actual Loops": 1,
- "Output": ["event.date_of_transmission", "event.event_id", "event.start_time", "event.end_time", "event.db2_station_code", "event.panel_code", "event.duration_is_minutes", "event.area_flags", "event.barb_content_id", "event.audience_category_number"],
- "Order": ["event.date_of_transmission", "event.event_id"],
- "Startup Exclusion": false,
- "Runtime Exclusion": false,
- "Shared Hit Blocks": 559964,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "children",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "_hyper_13_63_chunk_program_event_audience_v1_date_of_transmissi",
- "Relation Name": "_hyper_13_63_chunk",
- "Schema": "_timescaledb_internal",
- "Alias": "event_1",
- "Startup Cost": 0.43,
- "Total Cost": 121387.58,
- "Plan Rows": 2673096,
- "Plan Width": 75,
- "Actual Startup Time": 2.080,
- "Actual Total Time": 20584.884,
- "Actual Rows": 622441,
- "Actual Loops": 1,
- "Output": ["event_1.date_of_transmission", "event_1.event_id", "event_1.start_time", "event_1.end_time", "event_1.db2_station_code", "event_1.panel_code", "event_1.duration_is_minutes", "event_1.area_flags", "event_1.barb_content_id", "event_1.audience_category_number"],
- "Index Cond": "((event_1.date_of_transmission >= '2022-09-23'::date) AND (event_1.date_of_transmission <= '2022-09-24'::date))",
- "Rows Removed by Index Recheck": 0,
- "Shared Hit Blocks": 559964,
- "Shared Read Blocks": 62806,
- "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,
- "I/O Read Time": 19759.779,
- "I/O Write Time": 0.000
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "children",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "_hyper_13_64_chunk_program_event_audience_v1_date_of_transmissi",
- "Relation Name": "_hyper_13_64_chunk",
- "Schema": "_timescaledb_internal",
- "Alias": "event_2",
- "Startup Cost": 0.43,
- "Total Cost": 130414.84,
- "Plan Rows": 2872808,
- "Plan Width": 75,
- "Actual Startup Time": 0.000,
- "Actual Total Time": 0.000,
- "Actual Rows": 0,
- "Actual Loops": 0,
- "Output": ["event_2.date_of_transmission", "event_2.event_id", "event_2.start_time", "event_2.end_time", "event_2.db2_station_code", "event_2.panel_code", "event_2.duration_is_minutes", "event_2.area_flags", "event_2.barb_content_id", "event_2.audience_category_number"],
- "Index Cond": "((event_2.date_of_transmission >= '2022-09-23'::date) AND (event_2.date_of_transmission <= '2022-09-24'::date))",
- "Rows Removed by Index Recheck": 0,
- "Shared Hit Blocks": 0,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "dimension_audience_category_category_number",
- "Relation Name": "dimension_audience_category",
- "Schema": "v1",
- "Alias": "category",
- "Startup Cost": 0.14,
- "Total Cost": 0.16,
- "Plan Rows": 1,
- "Plan Width": 17,
- "Actual Startup Time": 0.001,
- "Actual Total Time": 0.001,
- "Actual Rows": 1,
- "Actual Loops": 622441,
- "Output": ["category.category_number", "category.barb_category_code", "category.category_description", "category.target_size_in_hundreds"],
- "Index Cond": "(category.category_number = (event.audience_category_number)::numeric)",
- "Rows Removed by Index Recheck": 0,
- "Shared Hit Blocks": 1200122,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Node Type": "Hash",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 1.71,
- "Total Cost": 1.71,
- "Plan Rows": 71,
- "Plan Width": 25,
- "Actual Startup Time": 0.023,
- "Actual Total Time": 0.024,
- "Actual Rows": 71,
- "Actual Loops": 1,
- "Output": ["panel.panelname", "panel.panelcode"],
- "Hash Buckets": 1024,
- "Original Hash Buckets": 1024,
- "Hash Batches": 1,
- "Original Hash Batches": 1,
- "Peak Memory Usage": 13,
- "Shared Hit Blocks": 1,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "dimension_panel",
- "Schema": "v1",
- "Alias": "panel",
- "Startup Cost": 0.00,
- "Total Cost": 1.71,
- "Plan Rows": 71,
- "Plan Width": 25,
- "Actual Startup Time": 0.004,
- "Actual Total Time": 0.010,
- "Actual Rows": 71,
- "Actual Loops": 1,
- "Output": ["panel.panelname", "panel.panelcode"],
- "Shared Hit Blocks": 1,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- }
- ]
- }
- ]
- },
- {
- "Node Type": "Hash",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Startup Cost": 13.98,
- "Total Cost": 13.98,
- "Plan Rows": 698,
- "Plan Width": 17,
- "Actual Startup Time": 0.229,
- "Actual Total Time": 0.230,
- "Actual Rows": 698,
- "Actual Loops": 1,
- "Output": ["station.db2stationname", "station.db2stationcode"],
- "Hash Buckets": 1024,
- "Original Hash Buckets": 1024,
- "Hash Batches": 1,
- "Original Hash Batches": 1,
- "Peak Memory Usage": 42,
- "Shared Hit Blocks": 7,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000,
- "Plans": [
- {
- "Node Type": "Seq Scan",
- "Parent Relationship": "Outer",
- "Parallel Aware": false,
- "Async Capable": false,
- "Relation Name": "dimension_db2_station",
- "Schema": "v1",
- "Alias": "station",
- "Startup Cost": 0.00,
- "Total Cost": 13.98,
- "Plan Rows": 698,
- "Plan Width": 17,
- "Actual Startup Time": 0.006,
- "Actual Total Time": 0.106,
- "Actual Rows": 698,
- "Actual Loops": 1,
- "Output": ["station.db2stationname", "station.db2stationcode"],
- "Shared Hit Blocks": 7,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- }
- ]
- }
- ]
- },
- {
- "Node Type": "Index Scan",
- "Parent Relationship": "Inner",
- "Parallel Aware": false,
- "Async Capable": false,
- "Scan Direction": "Forward",
- "Index Name": "dimension_program_content_barb_content_id",
- "Relation Name": "dimension_program_content",
- "Schema": "v1",
- "Alias": "content",
- "Startup Cost": 0.29,
- "Total Cost": 0.40,
- "Plan Rows": 1,
- "Plan Width": 62,
- "Actual Startup Time": 0.004,
- "Actual Total Time": 0.005,
- "Actual Rows": 1,
- "Actual Loops": 10000,
- "Output": ["content.barb_content_id", "content.broadcaster_content_id", "content.metabroadcast_content_id", "content.content_name", "content.episode_number", "content.episode_name", "content.products"],
- "Index Cond": "(content.barb_content_id = event.barb_content_id)",
- "Rows Removed by Index Recheck": 0,
- "Shared Hit Blocks": 30000,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- }
- ]
- },
- "Query Identifier": -7774451985310094559,
- "Planning": {
- "Shared Hit Blocks": 29,
- "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,
- "I/O Read Time": 0.000,
- "I/O Write Time": 0.000
- },
- "Planning Time": 0.776,
- "Triggers": [
- ],
- "Execution Time": 22768.886
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment