SELECT 
  cscart_logs.*, 
  cscart_users.firstname, 
  cscart_users.lastname 
FROM 
  cscart_logs 
  LEFT JOIN cscart_users USING(user_id) 
WHERE 
  1 
  AND (
    cscart_logs.timestamp >= 1732262083 
    AND cscart_logs.timestamp <= 1732265683
  ) 
  AND cscart_logs.type = 'requests' 
  AND cscart_logs.action = 'shipping' 
ORDER BY 
  cscart_logs.timestamp desc, 
  cscart_logs.log_id desc

Query time 0.00093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.01"
    },
    "ordering_operation": {
      "using_filesort": false,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_logs",
            "access_type": "range",
            "possible_keys": [
              "type",
              "idx_timestamp"
            ],
            "key": "idx_timestamp",
            "used_key_parts": [
              "timestamp"
            ],
            "key_length": "4",
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "50.00",
            "index_condition": "((`webmarco`.`cscart_logs`.`timestamp` >= 1732262083) and (`webmarco`.`cscart_logs`.`timestamp` <= 1732265683))",
            "cost_info": {
              "read_cost": "2.31",
              "eval_cost": "0.10",
              "prefix_cost": "2.41",
              "data_read_per_join": "72"
            },
            "used_columns": [
              "log_id",
              "user_id",
              "timestamp",
              "type",
              "event_type",
              "action",
              "object",
              "content",
              "backtrace",
              "company_id"
            ],
            "attached_condition": "((`webmarco`.`cscart_logs`.`type` = 'requests') and (`webmarco`.`cscart_logs`.`action` = 'shipping'))"
          }
        },
        {
          "table": {
            "table_name": "cscart_users",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "user_id"
            ],
            "key_length": "3",
            "ref": [
              "webmarco.cscart_logs.user_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.50",
              "eval_cost": "0.10",
              "prefix_cost": "3.01",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "user_id",
              "firstname",
              "lastname"
            ]
          }
        }
      ]
    }
  }
}