Advertisement
Guest User

Untitled

a guest
May 1st, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 70.46 KB | None | 0 0
  1. [
  2.   {
  3.     "Plan": {
  4.       "Node Type": "Unique",
  5.       "Parallel Aware": false,
  6.       "Startup Cost": 4722.96,
  7.       "Total Cost": 5160.76,
  8.       "Plan Rows": 3980,
  9.       "Plan Width": 300,
  10.       "Actual Startup Time": 5938.802,
  11.       "Actual Total Time": 6088.501,
  12.       "Actual Rows": 9378,
  13.       "Actual Loops": 1,
  14.       "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank"],
  15.       "Shared Hit Blocks": 191109,
  16.       "Shared Read Blocks": 0,
  17.       "Shared Dirtied Blocks": 0,
  18.       "Shared Written Blocks": 0,
  19.       "Local Hit Blocks": 0,
  20.       "Local Read Blocks": 0,
  21.       "Local Dirtied Blocks": 0,
  22.       "Local Written Blocks": 0,
  23.       "Temp Read Blocks": 7436,
  24.       "Temp Written Blocks": 7412,
  25.       "Plans": [
  26.         {
  27.           "Node Type": "Sort",
  28.           "Parent Relationship": "Outer",
  29.           "Parallel Aware": false,
  30.           "Startup Cost": 4722.96,
  31.           "Total Cost": 4732.91,
  32.           "Plan Rows": 3980,
  33.           "Plan Width": 300,
  34.           "Actual Startup Time": 5938.800,
  35.           "Actual Total Time": 5963.109,
  36.           "Actual Rows": 65446,
  37.           "Actual Loops": 1,
  38.           "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank"],
  39.           "Sort Key": ["phdrug_phdrug.id", "phdrug_phdrug.default_description", "phdrug_phdrug.uuid", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank"],
  40.           "Sort Method": "external merge",
  41.           "Sort Space Used": 13376,
  42.           "Sort Space Type": "Disk",
  43.           "Shared Hit Blocks": 191109,
  44.           "Shared Read Blocks": 0,
  45.           "Shared Dirtied Blocks": 0,
  46.           "Shared Written Blocks": 0,
  47.           "Local Hit Blocks": 0,
  48.           "Local Read Blocks": 0,
  49.           "Local Dirtied Blocks": 0,
  50.           "Local Written Blocks": 0,
  51.           "Temp Read Blocks": 7436,
  52.           "Temp Written Blocks": 7412,
  53.           "Plans": [
  54.             {
  55.               "Node Type": "Hash Join",
  56.               "Parent Relationship": "Outer",
  57.               "Parallel Aware": false,
  58.               "Join Type": "Inner",
  59.               "Startup Cost": 4060.23,
  60.               "Total Cost": 4484.98,
  61.               "Plan Rows": 3980,
  62.               "Plan Width": 300,
  63.               "Actual Startup Time": 3935.217,
  64.               "Actual Total Time": 4278.094,
  65.               "Actual Rows": 65446,
  66.               "Actual Loops": 1,
  67.               "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank"],
  68.               "Inner Unique": false,
  69.               "Hash Cond": "(phdrug_phdrugpicture.drug_id = phdrug_phdrug.id)",
  70.               "Shared Hit Blocks": 191109,
  71.               "Shared Read Blocks": 0,
  72.               "Shared Dirtied Blocks": 0,
  73.               "Shared Written Blocks": 0,
  74.               "Local Hit Blocks": 0,
  75.               "Local Read Blocks": 0,
  76.               "Local Dirtied Blocks": 0,
  77.               "Local Written Blocks": 0,
  78.               "Temp Read Blocks": 5764,
  79.               "Temp Written Blocks": 5736,
  80.               "Plans": [
  81.                 {
  82.                   "Node Type": "Seq Scan",
  83.                   "Parent Relationship": "Outer",
  84.                   "Parallel Aware": false,
  85.                   "Relation Name": "phdrug_phdrugpicture",
  86.                   "Schema": "public",
  87.                   "Alias": "phdrug_phdrugpicture",
  88.                   "Startup Cost": 0.00,
  89.                   "Total Cost": 333.92,
  90.                   "Plan Rows": 13608,
  91.                   "Plan Width": 4,
  92.                   "Actual Startup Time": 0.492,
  93.                   "Actual Total Time": 3.658,
  94.                   "Actual Rows": 13608,
  95.                   "Actual Loops": 1,
  96.                   "Output": ["phdrug_phdrugpicture.id", "phdrug_phdrugpicture.is_main", "phdrug_phdrugpicture.drug_id", "phdrug_phdrugpicture.uuid", "phdrug_phdrugpicture.picture"],
  97.                   "Filter": "phdrug_phdrugpicture.is_main",
  98.                   "Rows Removed by Filter": 684,
  99.                   "Shared Hit Blocks": 191,
  100.                   "Shared Read Blocks": 0,
  101.                   "Shared Dirtied Blocks": 0,
  102.                   "Shared Written Blocks": 0,
  103.                   "Local Hit Blocks": 0,
  104.                   "Local Read Blocks": 0,
  105.                   "Local Dirtied Blocks": 0,
  106.                   "Local Written Blocks": 0,
  107.                   "Temp Read Blocks": 0,
  108.                   "Temp Written Blocks": 0
  109.                 },
  110.                 {
  111.                   "Node Type": "Hash",
  112.                   "Parent Relationship": "Inner",
  113.                   "Parallel Aware": false,
  114.                   "Startup Cost": 3981.21,
  115.                   "Total Cost": 3981.21,
  116.                   "Plan Rows": 6322,
  117.                   "Plan Width": 304,
  118.                   "Actual Startup Time": 3931.011,
  119.                   "Actual Total Time": 3931.011,
  120.                   "Actual Rows": 70317,
  121.                   "Actual Loops": 1,
  122.                   "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank", "monetary_drugprice.drug_id"],
  123.                   "Hash Buckets": 32768,
  124.                   "Original Hash Buckets": 8192,
  125.                   "Hash Batches": 8,
  126.                   "Original Hash Batches": 1,
  127.                   "Peak Memory Usage": 3841,
  128.                   "Shared Hit Blocks": 190918,
  129.                   "Shared Read Blocks": 0,
  130.                   "Shared Dirtied Blocks": 0,
  131.                   "Shared Written Blocks": 0,
  132.                   "Local Hit Blocks": 0,
  133.                   "Local Read Blocks": 0,
  134.                   "Local Dirtied Blocks": 0,
  135.                   "Local Written Blocks": 0,
  136.                   "Temp Read Blocks": 3333,
  137.                   "Temp Written Blocks": 5001,
  138.                   "Plans": [
  139.                     {
  140.                       "Node Type": "Hash Join",
  141.                       "Parent Relationship": "Outer",
  142.                       "Parallel Aware": false,
  143.                       "Join Type": "Inner",
  144.                       "Startup Cost": 2438.48,
  145.                       "Total Cost": 3981.21,
  146.                       "Plan Rows": 6322,
  147.                       "Plan Width": 304,
  148.                       "Actual Startup Time": 1733.864,
  149.                       "Actual Total Time": 3023.826,
  150.                       "Actual Rows": 70317,
  151.                       "Actual Loops": 1,
  152.                       "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank", "monetary_drugprice.drug_id"],
  153.                       "Inner Unique": true,
  154.                       "Hash Cond": "(monetary_drugprice.pricelist_id = monetary_pricelistcountry.pricelist_id)",
  155.                       "Shared Hit Blocks": 190918,
  156.                       "Shared Read Blocks": 0,
  157.                       "Shared Dirtied Blocks": 0,
  158.                       "Shared Written Blocks": 0,
  159.                       "Local Hit Blocks": 0,
  160.                       "Local Read Blocks": 0,
  161.                       "Local Dirtied Blocks": 0,
  162.                       "Local Written Blocks": 0,
  163.                       "Temp Read Blocks": 3333,
  164.                       "Temp Written Blocks": 3319,
  165.                       "Plans": [
  166.                         {
  167.                           "Node Type": "Hash Join",
  168.                           "Parent Relationship": "Outer",
  169.                           "Parallel Aware": false,
  170.                           "Join Type": "Inner",
  171.                           "Startup Cost": 2425.13,
  172.                           "Total Cost": 3908.42,
  173.                           "Plan Rows": 22262,
  174.                           "Plan Width": 320,
  175.                           "Actual Startup Time": 1733.724,
  176.                           "Actual Total Time": 2898.626,
  177.                           "Actual Rows": 809541,
  178.                           "Actual Loops": 1,
  179.                           "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank", "monetary_drugprice.drug_id", "monetary_drugprice.pricelist_id", "monetary_pricelist.id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id"],
  180.                           "Inner Unique": false,
  181.                           "Hash Cond": "(courier_carrier_pricelists.carrier_id = courier_carrier.id)",
  182.                           "Shared Hit Blocks": 190911,
  183.                           "Shared Read Blocks": 0,
  184.                           "Shared Dirtied Blocks": 0,
  185.                           "Shared Written Blocks": 0,
  186.                           "Local Hit Blocks": 0,
  187.                           "Local Read Blocks": 0,
  188.                           "Local Dirtied Blocks": 0,
  189.                           "Local Written Blocks": 0,
  190.                           "Temp Read Blocks": 3333,
  191.                           "Temp Written Blocks": 3319,
  192.                           "Plans": [
  193.                             {
  194.                               "Node Type": "Hash Join",
  195.                               "Parent Relationship": "Outer",
  196.                               "Parallel Aware": false,
  197.                               "Join Type": "Inner",
  198.                               "Startup Cost": 2294.99,
  199.                               "Total Cost": 3499.66,
  200.                               "Plan Rows": 14932,
  201.                               "Plan Width": 324,
  202.                               "Actual Startup Time": 1732.851,
  203.                               "Actual Total Time": 2596.214,
  204.                               "Actual Rows": 464508,
  205.                               "Actual Loops": 1,
  206.                               "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank", "monetary_drugprice.drug_id", "monetary_drugprice.pricelist_id", "monetary_pricelist.id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  207.                               "Inner Unique": false,
  208.                               "Hash Cond": "(phdrug_phdrug.id = monetary_drugprice.drug_id)",
  209.                               "Shared Hit Blocks": 190866,
  210.                               "Shared Read Blocks": 0,
  211.                               "Shared Dirtied Blocks": 0,
  212.                               "Shared Written Blocks": 0,
  213.                               "Local Hit Blocks": 0,
  214.                               "Local Read Blocks": 0,
  215.                               "Local Dirtied Blocks": 0,
  216.                               "Local Written Blocks": 0,
  217.                               "Temp Read Blocks": 3333,
  218.                               "Temp Written Blocks": 3319,
  219.                               "Plans": [
  220.                                 {
  221.                                   "Node Type": "Seq Scan",
  222.                                   "Parent Relationship": "Outer",
  223.                                   "Parallel Aware": false,
  224.                                   "Relation Name": "phdrug_phdrug",
  225.                                   "Schema": "public",
  226.                                   "Alias": "phdrug_phdrug",
  227.                                   "Startup Cost": 0.00,
  228.                                   "Total Cost": 812.18,
  229.                                   "Plan Rows": 21616,
  230.                                   "Plan Width": 300,
  231.                                   "Actual Startup Time": 0.582,
  232.                                   "Actual Total Time": 15.668,
  233.                                   "Actual Rows": 21616,
  234.                                   "Actual Loops": 1,
  235.                                   "Output": ["phdrug_phdrug.id", "phdrug_phdrug.uuid", "phdrug_phdrug.default_description", "phdrug_phdrug.alternative_description", "phdrug_phdrug.ean", "phdrug_phdrug.mirror_ean", "phdrug_phdrug.parent_ean", "phdrug_phdrug.reg_num", "phdrug_phdrug.medika_code", "phdrug_phdrug.atc_iv", "phdrug_phdrug.product_type", "phdrug_phdrug.fraction", "phdrug_phdrug.active", "phdrug_phdrug.loyal", "phdrug_phdrug.patent", "phdrug_phdrug.chronics", "phdrug_phdrug.recipe", "phdrug_phdrug.deal", "phdrug_phdrug.specialized", "phdrug_phdrug.armored", "phdrug_phdrug.top_hight_speciality", "phdrug_phdrug.top_generic", "phdrug_phdrug.hight_speciality", "phdrug_phdrug.temp_8_15", "phdrug_phdrug.temp_15_25", "phdrug_phdrug.temp_2_8", "phdrug_phdrug.temp_less_15", "phdrug_phdrug.new", "phdrug_phdrug.mdk_internal_code", "phdrug_phdrug.mdk_single_id", "phdrug_phdrug.mdk_object_id", "phdrug_phdrug.is_from_mdk_db", "phdrug_phdrug.top", "phdrug_phdrug.laboratory_name", "phdrug_phdrug.laboratory_alternative_name", "phdrug_phdrug.imported", "phdrug_phdrug.imported_country", "phdrug_phdrug.laboratory_id", "phdrug_phdrug.specialty", "phdrug_phdrug.dimension_id", "phdrug_phdrug.featured", "phdrug_phdrug.top_ae_rank", "phdrug_phdrug.top_farma_rank"],
  236.                                   "Filter": "phdrug_phdrug.active",
  237.                                   "Rows Removed by Filter": 2,
  238.                                   "Shared Hit Blocks": 596,
  239.                                   "Shared Read Blocks": 0,
  240.                                   "Shared Dirtied Blocks": 0,
  241.                                   "Shared Written Blocks": 0,
  242.                                   "Local Hit Blocks": 0,
  243.                                   "Local Read Blocks": 0,
  244.                                   "Local Dirtied Blocks": 0,
  245.                                   "Local Written Blocks": 0,
  246.                                   "Temp Read Blocks": 0,
  247.                                   "Temp Written Blocks": 0
  248.                                 },
  249.                                 {
  250.                                   "Node Type": "Hash",
  251.                                   "Parent Relationship": "Inner",
  252.                                   "Parallel Aware": false,
  253.                                   "Startup Cost": 2106.64,
  254.                                   "Total Cost": 2106.64,
  255.                                   "Plan Rows": 15068,
  256.                                   "Plan Width": 24,
  257.                                   "Actual Startup Time": 1723.702,
  258.                                   "Actual Total Time": 1723.702,
  259.                                   "Actual Rows": 464508,
  260.                                   "Actual Loops": 1,
  261.                                   "Output": ["monetary_drugprice.drug_id", "monetary_drugprice.pricelist_id", "monetary_pricelist.id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  262.                                   "Hash Buckets": 65536,
  263.                                   "Original Hash Buckets": 16384,
  264.                                   "Hash Batches": 8,
  265.                                   "Original Hash Batches": 1,
  266.                                   "Peak Memory Usage": 3585,
  267.                                   "Shared Hit Blocks": 190270,
  268.                                   "Shared Read Blocks": 0,
  269.                                   "Shared Dirtied Blocks": 0,
  270.                                   "Shared Written Blocks": 0,
  271.                                   "Local Hit Blocks": 0,
  272.                                   "Local Read Blocks": 0,
  273.                                   "Local Dirtied Blocks": 0,
  274.                                   "Local Written Blocks": 0,
  275.                                   "Temp Read Blocks": 0,
  276.                                   "Temp Written Blocks": 2192,
  277.                                   "Plans": [
  278.                                     {
  279.                                       "Node Type": "Nested Loop",
  280.                                       "Parent Relationship": "Outer",
  281.                                       "Parallel Aware": false,
  282.                                       "Join Type": "Inner",
  283.                                       "Startup Cost": 5.60,
  284.                                       "Total Cost": 2106.64,
  285.                                       "Plan Rows": 15068,
  286.                                       "Plan Width": 24,
  287.                                       "Actual Startup Time": 1.283,
  288.                                       "Actual Total Time": 528.170,
  289.                                       "Actual Rows": 464508,
  290.                                       "Actual Loops": 1,
  291.                                       "Output": ["monetary_drugprice.drug_id", "monetary_drugprice.pricelist_id", "monetary_pricelist.id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  292.                                       "Inner Unique": false,
  293.                                       "Shared Hit Blocks": 190270,
  294.                                       "Shared Read Blocks": 0,
  295.                                       "Shared Dirtied Blocks": 0,
  296.                                       "Shared Written Blocks": 0,
  297.                                       "Local Hit Blocks": 0,
  298.                                       "Local Read Blocks": 0,
  299.                                       "Local Dirtied Blocks": 0,
  300.                                       "Local Written Blocks": 0,
  301.                                       "Temp Read Blocks": 0,
  302.                                       "Temp Written Blocks": 0,
  303.                                       "Plans": [
  304.                                         {
  305.                                           "Node Type": "Nested Loop",
  306.                                           "Parent Relationship": "Outer",
  307.                                           "Parallel Aware": false,
  308.                                           "Join Type": "Inner",
  309.                                           "Startup Cost": 5.18,
  310.                                           "Total Cost": 34.26,
  311.                                           "Plan Rows": 6,
  312.                                           "Plan Width": 16,
  313.                                           "Actual Startup Time": 1.266,
  314.                                           "Actual Total Time": 3.080,
  315.                                           "Actual Rows": 106,
  316.                                           "Actual Loops": 1,
  317.                                           "Output": ["monetary_pricelist.id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  318.                                           "Inner Unique": true,
  319.                                           "Shared Hit Blocks": 644,
  320.                                           "Shared Read Blocks": 0,
  321.                                           "Shared Dirtied Blocks": 0,
  322.                                           "Shared Written Blocks": 0,
  323.                                           "Local Hit Blocks": 0,
  324.                                           "Local Read Blocks": 0,
  325.                                           "Local Dirtied Blocks": 0,
  326.                                           "Local Written Blocks": 0,
  327.                                           "Temp Read Blocks": 0,
  328.                                           "Temp Written Blocks": 0,
  329.                                           "Plans": [
  330.                                             {
  331.                                               "Node Type": "Nested Loop",
  332.                                               "Parent Relationship": "Outer",
  333.                                               "Parallel Aware": false,
  334.                                               "Join Type": "Inner",
  335.                                               "Startup Cost": 4.91,
  336.                                               "Total Cost": 25.42,
  337.                                               "Plan Rows": 13,
  338.                                               "Plan Width": 20,
  339.                                               "Actual Startup Time": 1.254,
  340.                                               "Actual Total Time": 2.367,
  341.                                               "Actual Rows": 106,
  342.                                               "Actual Loops": 1,
  343.                                               "Output": ["monetary_pricelist.id", "monetary_pricelist.manager_id", "monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  344.                                               "Inner Unique": true,
  345.                                               "Join Filter": "(monetary_pricelistdestinations.pricelist_id = monetary_pricelist.id)",
  346.                                               "Rows Removed by Join Filter": 0,
  347.                                               "Shared Hit Blocks": 326,
  348.                                               "Shared Read Blocks": 0,
  349.                                               "Shared Dirtied Blocks": 0,
  350.                                               "Shared Written Blocks": 0,
  351.                                               "Local Hit Blocks": 0,
  352.                                               "Local Read Blocks": 0,
  353.                                               "Local Dirtied Blocks": 0,
  354.                                               "Local Written Blocks": 0,
  355.                                               "Temp Read Blocks": 0,
  356.                                               "Temp Written Blocks": 0,
  357.                                               "Plans": [
  358.                                                 {
  359.                                                   "Node Type": "Hash Join",
  360.                                                   "Parent Relationship": "Outer",
  361.                                                   "Parallel Aware": false,
  362.                                                   "Join Type": "Inner",
  363.                                                   "Startup Cost": 4.76,
  364.                                                   "Total Cost": 10.73,
  365.                                                   "Plan Rows": 36,
  366.                                                   "Plan Width": 12,
  367.                                                   "Actual Startup Time": 1.231,
  368.                                                   "Actual Total Time": 1.436,
  369.                                                   "Actual Rows": 161,
  370.                                                   "Actual Loops": 1,
  371.                                                   "Output": ["monetary_pricelistdestinations.pricelist_id", "courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  372.                                                   "Inner Unique": false,
  373.                                                   "Hash Cond": "(monetary_pricelistdestinations.pricelist_id = courier_carrier_pricelists.pricelist_id)",
  374.                                                   "Shared Hit Blocks": 4,
  375.                                                   "Shared Read Blocks": 0,
  376.                                                   "Shared Dirtied Blocks": 0,
  377.                                                   "Shared Written Blocks": 0,
  378.                                                   "Local Hit Blocks": 0,
  379.                                                   "Local Read Blocks": 0,
  380.                                                   "Local Dirtied Blocks": 0,
  381.                                                   "Local Written Blocks": 0,
  382.                                                   "Temp Read Blocks": 0,
  383.                                                   "Temp Written Blocks": 0,
  384.                                                   "Plans": [
  385.                                                     {
  386.                                                       "Node Type": "Seq Scan",
  387.                                                       "Parent Relationship": "Outer",
  388.                                                       "Parallel Aware": false,
  389.                                                       "Relation Name": "monetary_pricelistdestinations",
  390.                                                       "Schema": "public",
  391.                                                       "Alias": "monetary_pricelistdestinations",
  392.                                                       "Startup Cost": 0.00,
  393.                                                       "Total Cost": 5.15,
  394.                                                       "Plan Rows": 46,
  395.                                                       "Plan Width": 4,
  396.                                                       "Actual Startup Time": 0.501,
  397.                                                       "Actual Total Time": 0.550,
  398.                                                       "Actual Rows": 46,
  399.                                                       "Actual Loops": 1,
  400.                                                       "Output": ["monetary_pricelistdestinations.id", "monetary_pricelistdestinations.uuid", "monetary_pricelistdestinations.mdk_org_object_id", "monetary_pricelistdestinations.to_public", "monetary_pricelistdestinations.to_all_pharmacies", "monetary_pricelistdestinations.to_all_insurances", "monetary_pricelistdestinations.pricelist_id", "monetary_pricelistdestinations.to_organization_customer_id"],
  401.                                                       "Filter": "monetary_pricelistdestinations.to_public",
  402.                                                       "Rows Removed by Filter": 169,
  403.                                                       "Shared Hit Blocks": 3,
  404.                                                       "Shared Read Blocks": 0,
  405.                                                       "Shared Dirtied Blocks": 0,
  406.                                                       "Shared Written Blocks": 0,
  407.                                                       "Local Hit Blocks": 0,
  408.                                                       "Local Read Blocks": 0,
  409.                                                       "Local Dirtied Blocks": 0,
  410.                                                       "Local Written Blocks": 0,
  411.                                                       "Temp Read Blocks": 0,
  412.                                                       "Temp Written Blocks": 0
  413.                                                     },
  414.                                                     {
  415.                                                       "Node Type": "Hash",
  416.                                                       "Parent Relationship": "Inner",
  417.                                                       "Parallel Aware": false,
  418.                                                       "Startup Cost": 2.67,
  419.                                                       "Total Cost": 2.67,
  420.                                                       "Plan Rows": 167,
  421.                                                       "Plan Width": 8,
  422.                                                       "Actual Startup Time": 0.701,
  423.                                                       "Actual Total Time": 0.701,
  424.                                                       "Actual Rows": 167,
  425.                                                       "Actual Loops": 1,
  426.                                                       "Output": ["courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  427.                                                       "Hash Buckets": 1024,
  428.                                                       "Original Hash Buckets": 1024,
  429.                                                       "Hash Batches": 1,
  430.                                                       "Original Hash Batches": 1,
  431.                                                       "Peak Memory Usage": 15,
  432.                                                       "Shared Hit Blocks": 1,
  433.                                                       "Shared Read Blocks": 0,
  434.                                                       "Shared Dirtied Blocks": 0,
  435.                                                       "Shared Written Blocks": 0,
  436.                                                       "Local Hit Blocks": 0,
  437.                                                       "Local Read Blocks": 0,
  438.                                                       "Local Dirtied Blocks": 0,
  439.                                                       "Local Written Blocks": 0,
  440.                                                       "Temp Read Blocks": 0,
  441.                                                       "Temp Written Blocks": 0,
  442.                                                       "Plans": [
  443.                                                         {
  444.                                                           "Node Type": "Seq Scan",
  445.                                                           "Parent Relationship": "Outer",
  446.                                                           "Parallel Aware": false,
  447.                                                           "Relation Name": "courier_carrier_pricelists",
  448.                                                           "Schema": "public",
  449.                                                           "Alias": "courier_carrier_pricelists",
  450.                                                           "Startup Cost": 0.00,
  451.                                                           "Total Cost": 2.67,
  452.                                                           "Plan Rows": 167,
  453.                                                           "Plan Width": 8,
  454.                                                           "Actual Startup Time": 0.596,
  455.                                                           "Actual Total Time": 0.635,
  456.                                                           "Actual Rows": 167,
  457.                                                           "Actual Loops": 1,
  458.                                                           "Output": ["courier_carrier_pricelists.pricelist_id", "courier_carrier_pricelists.carrier_id"],
  459.                                                           "Shared Hit Blocks": 1,
  460.                                                           "Shared Read Blocks": 0,
  461.                                                           "Shared Dirtied Blocks": 0,
  462.                                                           "Shared Written Blocks": 0,
  463.                                                           "Local Hit Blocks": 0,
  464.                                                           "Local Read Blocks": 0,
  465.                                                           "Local Dirtied Blocks": 0,
  466.                                                           "Local Written Blocks": 0,
  467.                                                           "Temp Read Blocks": 0,
  468.                                                           "Temp Written Blocks": 0
  469.                                                         }
  470.                                                       ]
  471.                                                     }
  472.                                                   ]
  473.                                                 },
  474.                                                 {
  475.                                                   "Node Type": "Index Scan",
  476.                                                   "Parent Relationship": "Inner",
  477.                                                   "Parallel Aware": false,
  478.                                                   "Scan Direction": "Forward",
  479.                                                   "Index Name": "monetary_pricelist_pkey",
  480.                                                   "Relation Name": "monetary_pricelist",
  481.                                                   "Schema": "public",
  482.                                                   "Alias": "monetary_pricelist",
  483.                                                   "Startup Cost": 0.15,
  484.                                                   "Total Cost": 0.40,
  485.                                                   "Plan Rows": 1,
  486.                                                   "Plan Width": 8,
  487.                                                   "Actual Startup Time": 0.003,
  488.                                                   "Actual Total Time": 0.003,
  489.                                                   "Actual Rows": 1,
  490.                                                   "Actual Loops": 161,
  491.                                                   "Output": ["monetary_pricelist.id", "monetary_pricelist.uuid", "monetary_pricelist.name", "monetary_pricelist.mdk_object_id", "monetary_pricelist.active", "monetary_pricelist.expires", "monetary_pricelist.datestart", "monetary_pricelist.dateend", "monetary_pricelist.is_from_mdk_db", "monetary_pricelist.manager_id", "monetary_pricelist.mdk_manager_object_id", "monetary_pricelist.international_trade_export"],
  492.                                                   "Index Cond": "(monetary_pricelist.id = courier_carrier_pricelists.pricelist_id)",
  493.                                                   "Rows Removed by Index Recheck": 0,
  494.                                                   "Filter": "(monetary_pricelist.active AND ((NOT monetary_pricelist.expires) OR (monetary_pricelist.expires AND ((timezone('UTC'::text, monetary_pricelist.datestart))::date <= '2020-05-01'::date) AND ((timezone('UTC'::text, monetary_pricelist.dateend))::date >= '2020-05-01'::date))))",
  495.                                                   "Rows Removed by Filter": 0,
  496.                                                   "Shared Hit Blocks": 322,
  497.                                                   "Shared Read Blocks": 0,
  498.                                                   "Shared Dirtied Blocks": 0,
  499.                                                   "Shared Written Blocks": 0,
  500.                                                   "Local Hit Blocks": 0,
  501.                                                   "Local Read Blocks": 0,
  502.                                                   "Local Dirtied Blocks": 0,
  503.                                                   "Local Written Blocks": 0,
  504.                                                   "Temp Read Blocks": 0,
  505.                                                   "Temp Written Blocks": 0
  506.                                                 }
  507.                                               ]
  508.                                             },
  509.                                             {
  510.                                               "Node Type": "Index Scan",
  511.                                               "Parent Relationship": "Inner",
  512.                                               "Parallel Aware": false,
  513.                                               "Scan Direction": "Forward",
  514.                                               "Index Name": "organization_organization_pkey",
  515.                                               "Relation Name": "organization_organization",
  516.                                               "Schema": "public",
  517.                                               "Alias": "organization_organization",
  518.                                               "Startup Cost": 0.27,
  519.                                               "Total Cost": 0.68,
  520.                                               "Plan Rows": 1,
  521.                                               "Plan Width": 4,
  522.                                               "Actual Startup Time": 0.005,
  523.                                               "Actual Total Time": 0.005,
  524.                                               "Actual Rows": 1,
  525.                                               "Actual Loops": 106,
  526.                                               "Output": ["organization_organization.id", "organization_organization.uuid", "organization_organization.organization_type", "organization_organization.mdk_object_id", "organization_organization.medika_connect_token", "organization_organization.theparent_id", "organization_organization.active", "organization_organization.person_id", "organization_organization.address", "organization_organization.business_line", "organization_organization.colony", "organization_organization.country", "organization_organization.email", "organization_organization.image_header", "organization_organization.legal_name", "organization_organization.logo", "organization_organization.phone", "organization_organization.postal_code", "organization_organization.public_name", "organization_organization.tax_id", "organization_organization.town", "organization_organization.web_page", "organization_organization.is_mdk_profile", "organization_organization.configuration_id", "organization_organization.phone2", "organization_organization.preferred_language_id", "organization_organization.is_global_group"],
  527.                                               "Index Cond": "(organization_organization.id = monetary_pricelist.manager_id)",
  528.                                               "Rows Removed by Index Recheck": 0,
  529.                                               "Filter": "(organization_organization.active AND (organization_organization.organization_type = 2))",
  530.                                               "Rows Removed by Filter": 0,
  531.                                               "Shared Hit Blocks": 318,
  532.                                               "Shared Read Blocks": 0,
  533.                                               "Shared Dirtied Blocks": 0,
  534.                                               "Shared Written Blocks": 0,
  535.                                               "Local Hit Blocks": 0,
  536.                                               "Local Read Blocks": 0,
  537.                                               "Local Dirtied Blocks": 0,
  538.                                               "Local Written Blocks": 0,
  539.                                               "Temp Read Blocks": 0,
  540.                                               "Temp Written Blocks": 0
  541.                                             }
  542.                                           ]
  543.                                         },
  544.                                         {
  545.                                           "Node Type": "Index Scan",
  546.                                           "Parent Relationship": "Inner",
  547.                                           "Parallel Aware": false,
  548.                                           "Scan Direction": "Forward",
  549.                                           "Index Name": "monetary_drugprice_pricelist_id_1ce160ce",
  550.                                           "Relation Name": "monetary_drugprice",
  551.                                           "Schema": "public",
  552.                                           "Alias": "monetary_drugprice",
  553.                                           "Startup Cost": 0.42,
  554.                                           "Total Cost": 319.30,
  555.                                           "Plan Rows": 2610,
  556.                                           "Plan Width": 8,
  557.                                           "Actual Startup Time": 0.008,
  558.                                           "Actual Total Time": 3.806,
  559.                                           "Actual Rows": 4382,
  560.                                           "Actual Loops": 106,
  561.                                           "Output": ["monetary_drugprice.id", "monetary_drugprice.mdk_object_id", "monetary_drugprice.is_from_mdk_db", "monetary_drugprice.pvp_currency", "monetary_drugprice.pvp", "monetary_drugprice.pharmacy_price_currency", "monetary_drugprice.pharmacy_price", "monetary_drugprice.base_currency", "monetary_drugprice.base", "monetary_drugprice.no_tax_price_currency", "monetary_drugprice.no_tax_price", "monetary_drugprice.system_no_tax_price_currency", "monetary_drugprice.system_no_tax_price", "monetary_drugprice.all_included_price_currency", "monetary_drugprice.all_included_price", "monetary_drugprice.system_all_included_price_currency", "monetary_drugprice.system_all_included_price", "monetary_drugprice.margin", "monetary_drugprice.stock", "monetary_drugprice.drug_id", "monetary_drugprice.pricelist_id", "monetary_drugprice.uuid", "monetary_drugprice.offer", "monetary_drugprice.mdk_pricing_id", "monetary_drugprice.system_all_included_price_rate", "monetary_drugprice.system_no_tax_price_rate", "monetary_drugprice.all_included_price_before", "monetary_drugprice.all_included_price_before_currency", "monetary_drugprice.no_tax_price_before", "monetary_drugprice.no_tax_price_before_currency", "monetary_drugprice.system_all_included_price_before", "monetary_drugprice.system_all_included_price_before_currency", "monetary_drugprice.system_all_included_price_before_rate", "monetary_drugprice.system_no_tax_price_before", "monetary_drugprice.system_no_tax_price_before_currency", "monetary_drugprice.system_no_tax_price_before_rate", "monetary_drugprice.calculated_base", "monetary_drugprice.calculated_base_currency", "monetary_drugprice.system_calculated_base", "monetary_drugprice.system_calculated_base_currency", "monetary_drugprice.system_calculated_base_rate"],
  562.                                           "Index Cond": "(monetary_drugprice.pricelist_id = monetary_pricelist.id)",
  563.                                           "Rows Removed by Index Recheck": 0,
  564.                                           "Filter": "(monetary_drugprice.stock > 0)",
  565.                                           "Rows Removed by Filter": 0,
  566.                                           "Shared Hit Blocks": 189626,
  567.                                           "Shared Read Blocks": 0,
  568.                                           "Shared Dirtied Blocks": 0,
  569.                                           "Shared Written Blocks": 0,
  570.                                           "Local Hit Blocks": 0,
  571.                                           "Local Read Blocks": 0,
  572.                                           "Local Dirtied Blocks": 0,
  573.                                           "Local Written Blocks": 0,
  574.                                           "Temp Read Blocks": 0,
  575.                                           "Temp Written Blocks": 0
  576.                                         }
  577.                                       ]
  578.                                     }
  579.                                   ]
  580.                                 }
  581.                               ]
  582.                             },
  583.                             {
  584.                               "Node Type": "Hash",
  585.                               "Parent Relationship": "Inner",
  586.                               "Parallel Aware": false,
  587.                               "Startup Cost": 129.12,
  588.                               "Total Cost": 129.12,
  589.                               "Plan Rows": 82,
  590.                               "Plan Width": 8,
  591.                               "Actual Startup Time": 0.858,
  592.                               "Actual Total Time": 0.858,
  593.                               "Actual Rows": 82,
  594.                               "Actual Loops": 1,
  595.                               "Output": ["courier_carrier.id", "courier_carrierdelivery.carrier_id"],
  596.                               "Hash Buckets": 1024,
  597.                               "Original Hash Buckets": 1024,
  598.                               "Hash Batches": 1,
  599.                               "Original Hash Batches": 1,
  600.                               "Peak Memory Usage": 12,
  601.                               "Shared Hit Blocks": 45,
  602.                               "Shared Read Blocks": 0,
  603.                               "Shared Dirtied Blocks": 0,
  604.                               "Shared Written Blocks": 0,
  605.                               "Local Hit Blocks": 0,
  606.                               "Local Read Blocks": 0,
  607.                               "Local Dirtied Blocks": 0,
  608.                               "Local Written Blocks": 0,
  609.                               "Temp Read Blocks": 0,
  610.                               "Temp Written Blocks": 0,
  611.                               "Plans": [
  612.                                 {
  613.                                   "Node Type": "Hash Join",
  614.                                   "Parent Relationship": "Outer",
  615.                                   "Parallel Aware": false,
  616.                                   "Join Type": "Inner",
  617.                                   "Startup Cost": 12.46,
  618.                                   "Total Cost": 129.12,
  619.                                   "Plan Rows": 82,
  620.                                   "Plan Width": 8,
  621.                                   "Actual Startup Time": 0.729,
  622.                                   "Actual Total Time": 0.836,
  623.                                   "Actual Rows": 82,
  624.                                   "Actual Loops": 1,
  625.                                   "Output": ["courier_carrier.id", "courier_carrierdelivery.carrier_id"],
  626.                                   "Inner Unique": true,
  627.                                   "Hash Cond": "(courier_carrierdelivery.carrier_id = courier_carrier.id)",
  628.                                   "Shared Hit Blocks": 45,
  629.                                   "Shared Read Blocks": 0,
  630.                                   "Shared Dirtied Blocks": 0,
  631.                                   "Shared Written Blocks": 0,
  632.                                   "Local Hit Blocks": 0,
  633.                                   "Local Read Blocks": 0,
  634.                                   "Local Dirtied Blocks": 0,
  635.                                   "Local Written Blocks": 0,
  636.                                   "Temp Read Blocks": 0,
  637.                                   "Temp Written Blocks": 0,
  638.                                   "Plans": [
  639.                                     {
  640.                                       "Node Type": "Bitmap Heap Scan",
  641.                                       "Parent Relationship": "Outer",
  642.                                       "Parallel Aware": false,
  643.                                       "Relation Name": "courier_carrierdelivery",
  644.                                       "Schema": "public",
  645.                                       "Alias": "courier_carrierdelivery",
  646.                                       "Startup Cost": 9.23,
  647.                                       "Total Cost": 125.66,
  648.                                       "Plan Rows": 82,
  649.                                       "Plan Width": 4,
  650.                                       "Actual Startup Time": 0.035,
  651.                                       "Actual Total Time": 0.103,
  652.                                       "Actual Rows": 82,
  653.                                       "Actual Loops": 1,
  654.                                       "Output": ["courier_carrierdelivery.id", "courier_carrierdelivery.uuid", "courier_carrierdelivery.dst_country", "courier_carrierdelivery.postal_code", "courier_carrierdelivery.carrier_id", "courier_carrierdelivery.exclude_code_range_lower", "courier_carrierdelivery.exclude_code_range_upper", "courier_carrierdelivery.postal_code_range_lower", "courier_carrierdelivery.postal_code_range_upper", "courier_carrierdelivery.external_service_id", "courier_carrierdelivery.mdk_object_id", "courier_carrierdelivery.ignore_country_filter"],
  655.                                       "Recheck Cond": "(((courier_carrierdelivery.dst_country)::text = 'MX'::text) OR courier_carrierdelivery.ignore_country_filter)",
  656.                                       "Rows Removed by Index Recheck": 0,
  657.                                       "Filter": "(((courier_carrierdelivery.dst_country)::text = 'MX'::text) OR courier_carrierdelivery.ignore_country_filter)",
  658.                                       "Rows Removed by Filter": 0,
  659.                                       "Exact Heap Blocks": 38,
  660.                                       "Lossy Heap Blocks": 0,
  661.                                       "Shared Hit Blocks": 43,
  662.                                       "Shared Read Blocks": 0,
  663.                                       "Shared Dirtied Blocks": 0,
  664.                                       "Shared Written Blocks": 0,
  665.                                       "Local Hit Blocks": 0,
  666.                                       "Local Read Blocks": 0,
  667.                                       "Local Dirtied Blocks": 0,
  668.                                       "Local Written Blocks": 0,
  669.                                       "Temp Read Blocks": 0,
  670.                                       "Temp Written Blocks": 0,
  671.                                       "Plans": [
  672.                                         {
  673.                                           "Node Type": "BitmapOr",
  674.                                           "Parent Relationship": "Outer",
  675.                                           "Parallel Aware": false,
  676.                                           "Startup Cost": 9.23,
  677.                                           "Total Cost": 9.23,
  678.                                           "Plan Rows": 82,
  679.                                           "Plan Width": 0,
  680.                                           "Actual Startup Time": 0.027,
  681.                                           "Actual Total Time": 0.027,
  682.                                           "Actual Rows": 0,
  683.                                           "Actual Loops": 1,
  684.                                           "Shared Hit Blocks": 5,
  685.                                           "Shared Read Blocks": 0,
  686.                                           "Shared Dirtied Blocks": 0,
  687.                                           "Shared Written Blocks": 0,
  688.                                           "Local Hit Blocks": 0,
  689.                                           "Local Read Blocks": 0,
  690.                                           "Local Dirtied Blocks": 0,
  691.                                           "Local Written Blocks": 0,
  692.                                           "Temp Read Blocks": 0,
  693.                                           "Temp Written Blocks": 0,
  694.                                           "Plans": [
  695.                                             {
  696.                                               "Node Type": "Bitmap Index Scan",
  697.                                               "Parent Relationship": "Member",
  698.                                               "Parallel Aware": false,
  699.                                               "Index Name": "drugtransaction_carrierdelivery_dst_country_21a1a714_like",
  700.                                               "Startup Cost": 0.00,
  701.                                               "Total Cost": 4.87,
  702.                                               "Plan Rows": 78,
  703.                                               "Plan Width": 0,
  704.                                               "Actual Startup Time": 0.021,
  705.                                               "Actual Total Time": 0.022,
  706.                                               "Actual Rows": 78,
  707.                                               "Actual Loops": 1,
  708.                                               "Index Cond": "((courier_carrierdelivery.dst_country)::text = 'MX'::text)",
  709.                                               "Shared Hit Blocks": 3,
  710.                                               "Shared Read Blocks": 0,
  711.                                               "Shared Dirtied Blocks": 0,
  712.                                               "Shared Written Blocks": 0,
  713.                                               "Local Hit Blocks": 0,
  714.                                               "Local Read Blocks": 0,
  715.                                               "Local Dirtied Blocks": 0,
  716.                                               "Local Written Blocks": 0,
  717.                                               "Temp Read Blocks": 0,
  718.                                               "Temp Written Blocks": 0
  719.                                             },
  720.                                             {
  721.                                               "Node Type": "Bitmap Index Scan",
  722.                                               "Parent Relationship": "Member",
  723.                                               "Parallel Aware": false,
  724.                                               "Index Name": "courier_carrierdelivery_ignore_country_filter_b490c58f",
  725.                                               "Startup Cost": 0.00,
  726.                                               "Total Cost": 4.32,
  727.                                               "Plan Rows": 4,
  728.                                               "Plan Width": 0,
  729.                                               "Actual Startup Time": 0.005,
  730.                                               "Actual Total Time": 0.005,
  731.                                               "Actual Rows": 4,
  732.                                               "Actual Loops": 1,
  733.                                               "Index Cond": "(courier_carrierdelivery.ignore_country_filter = true)",
  734.                                               "Shared Hit Blocks": 2,
  735.                                               "Shared Read Blocks": 0,
  736.                                               "Shared Dirtied Blocks": 0,
  737.                                               "Shared Written Blocks": 0,
  738.                                               "Local Hit Blocks": 0,
  739.                                               "Local Read Blocks": 0,
  740.                                               "Local Dirtied Blocks": 0,
  741.                                               "Local Written Blocks": 0,
  742.                                               "Temp Read Blocks": 0,
  743.                                               "Temp Written Blocks": 0
  744.                                             }
  745.                                           ]
  746.                                         }
  747.                                       ]
  748.                                     },
  749.                                     {
  750.                                       "Node Type": "Hash",
  751.                                       "Parent Relationship": "Inner",
  752.                                       "Parallel Aware": false,
  753.                                       "Startup Cost": 2.55,
  754.                                       "Total Cost": 2.55,
  755.                                       "Plan Rows": 55,
  756.                                       "Plan Width": 4,
  757.                                       "Actual Startup Time": 0.681,
  758.                                       "Actual Total Time": 0.681,
  759.                                       "Actual Rows": 55,
  760.                                       "Actual Loops": 1,
  761.                                       "Output": ["courier_carrier.id"],
  762.                                       "Hash Buckets": 1024,
  763.                                       "Original Hash Buckets": 1024,
  764.                                       "Hash Batches": 1,
  765.                                       "Original Hash Batches": 1,
  766.                                       "Peak Memory Usage": 10,
  767.                                       "Shared Hit Blocks": 2,
  768.                                       "Shared Read Blocks": 0,
  769.                                       "Shared Dirtied Blocks": 0,
  770.                                       "Shared Written Blocks": 0,
  771.                                       "Local Hit Blocks": 0,
  772.                                       "Local Read Blocks": 0,
  773.                                       "Local Dirtied Blocks": 0,
  774.                                       "Local Written Blocks": 0,
  775.                                       "Temp Read Blocks": 0,
  776.                                       "Temp Written Blocks": 0,
  777.                                       "Plans": [
  778.                                         {
  779.                                           "Node Type": "Seq Scan",
  780.                                           "Parent Relationship": "Outer",
  781.                                           "Parallel Aware": false,
  782.                                           "Relation Name": "courier_carrier",
  783.                                           "Schema": "public",
  784.                                           "Alias": "courier_carrier",
  785.                                           "Startup Cost": 0.00,
  786.                                           "Total Cost": 2.55,
  787.                                           "Plan Rows": 55,
  788.                                           "Plan Width": 4,
  789.                                           "Actual Startup Time": 0.654,
  790.                                           "Actual Total Time": 0.663,
  791.                                           "Actual Rows": 55,
  792.                                           "Actual Loops": 1,
  793.                                           "Output": ["courier_carrier.id"],
  794.                                           "Shared Hit Blocks": 2,
  795.                                           "Shared Read Blocks": 0,
  796.                                           "Shared Dirtied Blocks": 0,
  797.                                           "Shared Written Blocks": 0,
  798.                                           "Local Hit Blocks": 0,
  799.                                           "Local Read Blocks": 0,
  800.                                           "Local Dirtied Blocks": 0,
  801.                                           "Local Written Blocks": 0,
  802.                                           "Temp Read Blocks": 0,
  803.                                           "Temp Written Blocks": 0
  804.                                         }
  805.                                       ]
  806.                                     }
  807.                                   ]
  808.                                 }
  809.                               ]
  810.                             }
  811.                           ]
  812.                         },
  813.                         {
  814.                           "Node Type": "Hash",
  815.                           "Parent Relationship": "Inner",
  816.                           "Parallel Aware": false,
  817.                           "Startup Cost": 12.18,
  818.                           "Total Cost": 12.18,
  819.                           "Plan Rows": 94,
  820.                           "Plan Width": 4,
  821.                           "Actual Startup Time": 0.089,
  822.                           "Actual Total Time": 0.089,
  823.                           "Actual Rows": 94,
  824.                           "Actual Loops": 1,
  825.                           "Output": ["monetary_pricelistcountry.pricelist_id"],
  826.                           "Hash Buckets": 1024,
  827.                           "Original Hash Buckets": 1024,
  828.                           "Hash Batches": 1,
  829.                           "Original Hash Batches": 1,
  830.                           "Peak Memory Usage": 12,
  831.                           "Shared Hit Blocks": 7,
  832.                           "Shared Read Blocks": 0,
  833.                           "Shared Dirtied Blocks": 0,
  834.                           "Shared Written Blocks": 0,
  835.                           "Local Hit Blocks": 0,
  836.                           "Local Read Blocks": 0,
  837.                           "Local Dirtied Blocks": 0,
  838.                           "Local Written Blocks": 0,
  839.                           "Temp Read Blocks": 0,
  840.                           "Temp Written Blocks": 0,
  841.                           "Plans": [
  842.                             {
  843.                               "Node Type": "Bitmap Heap Scan",
  844.                               "Parent Relationship": "Outer",
  845.                               "Parallel Aware": false,
  846.                               "Relation Name": "monetary_pricelistcountry",
  847.                               "Schema": "public",
  848.                               "Alias": "monetary_pricelistcountry",
  849.                               "Startup Cost": 5.00,
  850.                               "Total Cost": 12.18,
  851.                               "Plan Rows": 94,
  852.                               "Plan Width": 4,
  853.                               "Actual Startup Time": 0.053,
  854.                               "Actual Total Time": 0.068,
  855.                               "Actual Rows": 94,
  856.                               "Actual Loops": 1,
  857.                               "Output": ["monetary_pricelistcountry.pricelist_id"],
  858.                               "Recheck Cond": "((monetary_pricelistcountry.country)::text = 'MX'::text)",
  859.                               "Rows Removed by Index Recheck": 0,
  860.                               "Exact Heap Blocks": 4,
  861.                               "Lossy Heap Blocks": 0,
  862.                               "Shared Hit Blocks": 7,
  863.                               "Shared Read Blocks": 0,
  864.                               "Shared Dirtied Blocks": 0,
  865.                               "Shared Written Blocks": 0,
  866.                               "Local Hit Blocks": 0,
  867.                               "Local Read Blocks": 0,
  868.                               "Local Dirtied Blocks": 0,
  869.                               "Local Written Blocks": 0,
  870.                               "Temp Read Blocks": 0,
  871.                               "Temp Written Blocks": 0,
  872.                               "Plans": [
  873.                                 {
  874.                                   "Node Type": "Bitmap Index Scan",
  875.                                   "Parent Relationship": "Outer",
  876.                                   "Parallel Aware": false,
  877.                                   "Index Name": "monetary_pricelistcountry_country_pricelist_id_be9ca8b0_uniq",
  878.                                   "Startup Cost": 0.00,
  879.                                   "Total Cost": 4.98,
  880.                                   "Plan Rows": 94,
  881.                                   "Plan Width": 0,
  882.                                   "Actual Startup Time": 0.044,
  883.                                   "Actual Total Time": 0.044,
  884.                                   "Actual Rows": 94,
  885.                                   "Actual Loops": 1,
  886.                                   "Index Cond": "((monetary_pricelistcountry.country)::text = 'MX'::text)",
  887.                                   "Shared Hit Blocks": 3,
  888.                                   "Shared Read Blocks": 0,
  889.                                   "Shared Dirtied Blocks": 0,
  890.                                   "Shared Written Blocks": 0,
  891.                                   "Local Hit Blocks": 0,
  892.                                   "Local Read Blocks": 0,
  893.                                   "Local Dirtied Blocks": 0,
  894.                                   "Local Written Blocks": 0,
  895.                                   "Temp Read Blocks": 0,
  896.                                   "Temp Written Blocks": 0
  897.                                 }
  898.                               ]
  899.                             }
  900.                           ]
  901.                         }
  902.                       ]
  903.                     }
  904.                   ]
  905.                 }
  906.               ]
  907.             }
  908.           ]
  909.         }
  910.       ]
  911.     },
  912.     "Planning Time": 53.994,
  913.     "Triggers": [
  914.     ],
  915.     "Execution Time": 6102.252
  916.   }
  917. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement