Query time 0.00190
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "121.98"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "28.98"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_bm_blocks_descriptions",
            "access_type": "ALL",
            "possible_keys": [
              "PRIMARY"
            ],
            "rows_examined_per_scan": 63,
            "rows_produced_per_join": 6,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "13.76",
              "eval_cost": "1.26",
              "prefix_cost": "15.02",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "block_id",
              "lang_code",
              "name"
            ],
            "attached_condition": "(`atulecarter_atul_demo4`.`cscart_bm_blocks_descriptions`.`lang_code` = 'en')"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_blocks",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "atulecarter_atul_demo4.cscart_bm_blocks_descriptions.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.30",
              "eval_cost": "1.26",
              "prefix_cost": "22.58",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "block_id",
              "type",
              "properties",
              "company_id",
              "storefront_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "default_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id",
              "snapping_id",
              "lang_code",
              "object_id"
            ],
            "key_length": "18",
            "ref": [
              "atulecarter_atul_demo4.cscart_bm_blocks_descriptions.block_id",
              "const",
              "atulecarter_atul_demo4.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.30",
              "eval_cost": "1.26",
              "prefix_cost": "30.14",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "snapping_id",
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ],
            "attached_condition": "<if>(is_not_null_compl(default_content), (`atulecarter_atul_demo4`.`default_content`.`object_type` like ''), true)"
          }
        },
        {
          "table": {
            "table_name": "dynamic_object_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "atulecarter_atul_demo4.cscart_bm_blocks_descriptions.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 6,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.30",
              "eval_cost": "1.26",
              "prefix_cost": "37.70",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ],
            "attached_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`atulecarter_atul_demo4`.`dynamic_object_content`.`object_id` = 0) and (`atulecarter_atul_demo4`.`dynamic_object_content`.`lang_code` = `atulecarter_atul_demo4`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`atulecarter_atul_demo4`.`dynamic_object_content`.`object_type` like '')), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_snapping",
            "access_type": "ALL",
            "possible_keys": [
              "grid_id"
            ],
            "rows_examined_per_scan": 97,
            "rows_produced_per_join": 14,
            "filtered": "2.37",
            "using_join_buffer": "Block Nested Loop",
            "cost_info": {
              "read_cost": "18.28",
              "eval_cost": "2.90",
              "prefix_cost": "84.96",
              "data_read_per_join": "11K"
            },
            "used_columns": [
              "snapping_id",
              "block_id",
              "grid_id",
              "wrapper",
              "user_class",
              "order",
              "status"
            ],
            "attached_condition": "((`atulecarter_atul_demo4`.`cscart_bm_snapping`.`block_id` = `atulecarter_atul_demo4`.`cscart_bm_blocks_descriptions`.`block_id`) and (`atulecarter_atul_demo4`.`cscart_bm_snapping`.`grid_id` in (1,2,3,4,5,6,9,7,8,10,11,12,15,20,13,14,16,17,18,19,21,22)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_block_statuses",
            "access_type": "ALL",
            "possible_keys": [
              "snapping_id"
            ],
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 28,
            "filtered": "100.00",
            "using_join_buffer": "Block Nested Loop",
            "cost_info": {
              "read_cost": "2.24",
              "eval_cost": "5.80",
              "prefix_cost": "93.00",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "snapping_id",
              "object_ids",
              "object_type"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`atulecarter_atul_demo4`.`cscart_bm_snapping`.`snapping_id` = `atulecarter_atul_demo4`.`cscart_bm_block_statuses`.`snapping_id`) and (`atulecarter_atul_demo4`.`cscart_bm_block_statuses`.`object_type` like '')), true)"
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | grid_id | block_id | content | object_id | object_type | object_ids | snapping_id | wrapper | user_class | order | status | type | properties | company_id | storefront_id | lang_code | name | 
                                            
                                                            | 4 | 5 |  | 0 |  |  | 5 |  | top-logo | 0 | A | template | a:2:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";s:11:"enable_link";s:1:"Y";} | 0 | 1 | en | Logo | 
                                            
                                                            | 5 | 6 |  | 0 |  |  | 6 |  |  | 0 | A | call_request | a:1:{s:8:"template";s:44:"addons/call_requests/blocks/call_request.tpl";} | 0 | 1 | en | Call Request | 
                                            
                                                            | 7 | 7 |  | 0 |  |  | 7 |  | top-search | 0 | A | template | a:1:{s:8:"template";s:34:"blocks/static_templates/search.tpl";} | 0 | 1 | en | Search | 
                                            
                                                            | 10 | 10 |  | 0 |  |  | 10 |  |  | 0 | A | breadcrumbs | a:1:{s:8:"template";s:22:"common/breadcrumbs.tpl";} | 0 | 1 | en | Breadcrumbs | 
                                            
                                                            | 11 | 11 |  | 0 |  |  | 11 | blocks/wrappers/mainbox_general.tpl |  | 0 | A | main |  | 0 | 1 | en | Main Content | 
                                            
                                                            | 16 | 14 |  | 0 |  |  | 14 | blocks/wrappers/footer_general.tpl |  | 0 | A | template | a:1:{s:8:"template";s:53:"blocks/static_templates/my_account_links_advanced.tpl";} | 0 | 1 | en | My account | 
                                            
                                                            | 17 | 15 | a:1:{s:4:"menu";s:1:"3";} | 0 |  |  | 15 | blocks/wrappers/footer_general.tpl | footer-menu-shop | 0 | A | menu | a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} | 0 | 1 | en | Shop | 
                                            
                                                            | 18 | 16 | a:1:{s:4:"menu";s:1:"4";} | 0 |  |  | 16 | blocks/wrappers/footer_general.tpl | footer-menu-create-orders | 0 | A | menu | a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} | 0 | 1 | en | Create order | 
                                            
                                                            | 19 | 17 | a:1:{s:7:"content";s:394:"<ul>
    <li>3993 Hanover Street<br/>New York, NY 10016
</li>
    <li><bdi>+19177227425</bdi> (call is free)</li>
    <li><bdi>10 am — 6 pm</bdi><br/>
Monday - Friday</li>
    <li><a class="ty-exception__links-a greeny" href="mailto:sales@example.com">sales@example.com</a></li>
    <li><a href="{"pages.view?page_id=20"|fn_url}" class="ty-exception__links-a">About company</a></li>
</ul>
";} | 0 |  |  | 17 | blocks/wrappers/footer_general.tpl | footer-no-wysiwyg footer-contacts | 0 | A | safe_smarty_block | a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} | 0 | 1 | en | About us | 
                                            
                                                            | 1 | 1 | a:1:{s:4:"text";s:0:"";} | 0 |  |  | 1 |  | top-languages | 2 | A | languages | a:3:{s:8:"template";s:20:"blocks/languages.tpl";s:6:"format";s:4:"icon";s:14:"dropdown_limit";s:1:"0";} | 0 | 1 | en | Languages | 
                                            
                                                            | 3 | 4 |  | 0 |  |  | 4 | blocks/wrappers/onclick_dropdown.tpl | top-my-account | 2 | A | my_account | a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} | 0 | 1 | en | My Account | 
                                            
                                                            | 8 | 8 |  | 0 |  |  | 8 |  | top-cart-content | 2 | A | cart_content | a:5:{s:8:"template";s:23:"blocks/cart_content.tpl";s:22:"display_bottom_buttons";s:1:"Y";s:20:"display_delete_icons";s:1:"Y";s:19:"products_links_type";s:5:"thumb";s:20:"generate_block_title";s:1:"Y";} | 0 | 1 | en | Cart content | 
                                            
                                                            | 9 | 9 | a:1:{s:4:"menu";s:1:"2";} | 0 |  |  | 9 |  | top-menu | 2 | A | menu | a:3:{s:8:"template";s:35:"blocks/menu/dropdown_horizontal.tpl";s:30:"dropdown_second_level_elements";s:2:"12";s:29:"dropdown_third_level_elements";s:1:"6";} | 0 | 1 | en | Main menu | 
                                            
                                                            | 13 | 12 |  | 0 |  |  | 12 |  |  | 2 | A | template | a:1:{s:8:"template";s:65:"addons/newsletters/blocks/static_templates/subscribe_advanced.tpl";} | 0 | 1 | en | Subscribe | 
                                            
                                                            | 14 | 13 | a:1:{s:7:"content";s:773:"<div class="ty-social-link-block"><h3 class="ty-social-link__title">{__("get_social")}</h3>
<div class="ty-social-link facebook">
    <a href="http://www.facebook.com/pages/CS-Cart/156687676230"><span class="ty-icon ty-icon-facebook ty-icon-moon-facebook"></span></a>
</div>
<div class="ty-social-link instagram">
    <a href="https://www.instagram.com"><span class="ty-icon ty-icon-instagram ty-icon-moon-instagram"></span></a>
</div>
<div class="ty-social-link twitter">
    <a href="https://twitter.com/cscart"><span class="ty-icon ty-icon-twitter ty-icon-moon-twitter"></span></a>
</div>
<div class="ty-social-link youtube">
    <a href="https://www.youtube.com/user/cscartvideos"><span class="ty-icon ty-icon-youtube ty-icon-moon-youtube"></span></a>
</div></div>
";} | 0 |  |  | 13 |  |  | 2 | A | safe_smarty_block | a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} | 0 | 1 | en | Social links | 
                                            
                                                            | 21 | 18 |  | 0 |  |  | 18 |  |  | 2 | A | template | a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} | 0 | 1 | en | Copyright | 
                                            
                                                            | 22 | 19 |  | 0 |  |  | 19 |  |  | 2 | A | template | a:1:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";} | 0 | 1 | en | Payment icons | 
                                            
                                                            | 1 | 2 | a:1:{s:4:"text";s:0:"";} | 0 |  |  | 2 |  | top-currencies | 3 | A | currencies | a:3:{s:8:"template";s:21:"blocks/currencies.tpl";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"3";} | 0 | 1 | en | Currencies | 
                                            
                                                            | 2 | 3 | a:1:{s:4:"menu";s:1:"1";} | 0 |  |  | 3 |  | top-quick-links | 3 | A | menu | a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"Y";} | 0 | 1 | en | Quick links |