PgHero

Queries

Total Time Average Time Calls
3,931 min 47% 14 ms 17,187,554 odoo
SELECT "queue_job".id FROM "queue_job" WHERE (("queue_job"."name" = $1)  AND  ("queue_job"."state" = $2)) ORDER BY "queue_job"."date_created" DESC,"queue_job"."date_done" DESC
Details
CREATE INDEX CONCURRENTLY ON queue_job (name)
Rows: 5860335
Row progression: 5860335, 488361, 162787

Row estimates
- name (=): 488361
- state (=): 1953445
- date_created (sort): 18

Existing indexes
- id PRIMARY
- channel
- company_id
- identity_key WHERE ((state)::text = ANY (ARRAY[('pending'::character varying)::text, ('enqueued'::character varying)::text])) AND (identity_key IS NOT NULL)
- state
- uuid
2,260 min 27% 181 ms 747,710 odoo
SELECT "production_schedule_line".id FROM "production_schedule_line" WHERE ("production_schedule_line"."production_ticket_id" IS NULL   AND  ("production_schedule_line"."to_skip" IS NULL or "production_schedule_line"."to_skip" = $1 )) ORDER BY "production_schedule_line"."id"
1,438 min 17% 10 ms 8,500,610 odoo
SELECT "queue_job".id FROM "queue_job" WHERE (("queue_job"."name" = $1)  AND  ("queue_job"."state" = $2)) ORDER BY "queue_job"."date_created" ASC  limit $3
Details
CREATE INDEX CONCURRENTLY ON queue_job (name)
Rows: 5860335
Row progression: 5860335, 488361, 162787

Row estimates
- name (=): 488361
- state (=): 1953445
- date_created (sort): 18

Existing indexes
- id PRIMARY
- channel
- company_id
- identity_key WHERE ((state)::text = ANY (ARRAY[('pending'::character varying)::text, ('enqueued'::character varying)::text])) AND (identity_key IS NOT NULL)
- state
- uuid
236 min 3% 2 ms 7,884,002 odoo
SELECT "stock_scrap".id FROM "stock_scrap" WHERE ("stock_scrap"."move_id" in ($1)) ORDER BY "stock_scrap"."id"
Details
CREATE INDEX CONCURRENTLY ON stock_scrap (move_id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- move_id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
78 min 0.9% 587 ms 8,009 odoo
SELECT "material_requisition_line".id FROM "material_requisition_line" LEFT JOIN "res_partner" as "material_requisition_line__partner_id" ON ("material_requisition_line"."partner_id" = "material_requisition_line__partner_id"."id") LEFT JOIN "product_category" as "material_requisition_line__categ_id" ON ("material_requisition_line"."categ_id" = "material_requisition_line__categ_id"."id") LEFT JOIN "product_product" as "material_requisition_line__product_id" ON ("material_requisition_line"."product_id" = "material_requisition_line__product_id"."id") WHERE ("material_requisition_line"."requisition_id" in ($1)) ORDER BY "material_requisition_line__partner_id"."display_name" ,"material_requisition_line__categ_id"."parent_left" ,"material_requisition_line__product_id"."default_code" ,"material_requisition_line__product_id"."id"
69 min 0.8% 16 ms 262,541 odoo
SELECT "material_requisition".id FROM "material_requisition" WHERE ("material_requisition"."state" = $1) ORDER BY "material_requisition"."create_date" DESC
Details
CREATE INDEX CONCURRENTLY ON material_requisition (state, create_date)
Rows: 42414
Row progression: 42414, 8483, 0

Row estimates
- state (=): 8483
- create_date (sort): 1

Existing indexes
- id PRIMARY
66 min 0.8% 0 ms 147,390,319 odoo
DISCARD ALL
30 min 0.4% 0 ms 70,681,655 odoo
SELECT base_registry_signaling.last_value,
                                  base_cache_signaling.last_value
                           FROM base_registry_signaling, base_cache_signaling
20 min 0.2% 0 ms 9,268,636 odoo
SELECT substr(p.res_id, $1)::integer, p.value_float
                FROM ir_property p
                WHERE p.fields_id=$2
                    AND (p.company_id=$3 OR p.company_id IS NULL)
                    AND (p.res_id IN ($4) OR p.res_id IS NULL)
                ORDER BY p.company_id NULLS FIRST
17 min 0.2% 2 ms 482,313 odoo
SELECT "stock_scrap".id FROM "stock_scrap" WHERE ("stock_scrap"."scrap_ticket_id" in ($1)) ORDER BY "stock_scrap"."id" DESC
Details
CREATE INDEX CONCURRENTLY ON stock_scrap (scrap_ticket_id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- scrap_ticket_id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
15 min 0.2% 0 ms 154,764,701 odoo
BEGIN ISOLATION LEVEL REPEATABLE READ
12 min 0.1% 0 ms 26,200,148 odoo
SELECT "stock_picking"."id" as "id" FROM "stock_picking" WHERE "stock_picking".id IN ($1)
Covered by index on (id)
Rows: 2776124
Row progression: 2776124, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- backorder_id
- company_id
- date
- group_id, picking_type_id, location_dest_id
- name, company_id UNIQUE
- origin
- priority
- sale_id
- scheduled_date
- state, picking_type_id, scheduled_date
11 min 0.1% 0 ms 13,583,512 odoo
SELECT "product_product"."id" as "id","product_product"."message_last_post" as "message_last_post","product_product"."volume" as "volume","product_product"."production_cost_food" as "production_cost_food","product_product"."production_cost_nonfood" as "production_cost_nonfood","product_product"."create_date" as "create_date","product_product"."write_date" as "write_date","product_product"."write_uid" as "write_uid","product_product"."active" as "active","product_product"."default_code" as "default_code","product_product"."product_tmpl_id" as "product_tmpl_id","product_product"."product_id" as "product_id","product_product"."create_uid" as "create_uid","product_product"."activity_date_deadline" as "activity_date_deadline","product_product"."barcode" as "barcode","product_product"."weight" as "weight" FROM "product_product" WHERE "product_product".id IN ($1)
Covered by index on (id)
Rows: 1540718
Row progression: 1540718, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- barcode UNIQUE
- default_code
- product_tmpl_id
- product_tmpl_id, default_code
9 min 0.1% 0 ms 12,482,421 odoo
SELECT "res_partner"."id" as "id","res_partner"."phone" as "phone","res_partner"."supplier" as "supplier","res_partner"."activity_date_deadline" as "activity_date_deadline","res_partner"."calendar_last_notif_ack" as "calendar_last_notif_ack","res_partner"."lang" as "lang","res_partner"."invoice_warn_msg" as "invoice_warn_msg","res_partner"."sale_warn_msg" as "sale_warn_msg","res_partner"."street2" as "street2","res_partner"."cancelled_order_count" as "cancelled_order_count","res_partner"."customer_platform" as "customer_platform","res_partner"."company_id" as "company_id","res_partner"."picking_warn" as "picking_warn","res_partner"."employee" as "employee","res_partner"."user_id" as "user_id","res_partner"."vat" as "vat","res_partner"."tz" as "tz","res_partner"."mobile" as "mobile","res_partner"."message_bounce" as "message_bounce","res_partner"."debit_limit" as "debit_limit","res_partner"."name" as "name","res_partner"."zip" as "zip","res_partner"."signup_token" as "signup_token","res_partner"."purchase_warn" as "purchase_warn","res_partner"."write_date" as "write_date","res_partner"."team_id" as "team_id","res_partner"."create_uid" as "create_uid","res_partner"."message_last_post" as "message_last_post","res_partner"."is_company" as "is_company","res_partner"."website" as "website","res_partner"."opt_out" as "opt_out","res_partner"."picking_warn_msg" as "picking_warn_msg","res_partner"."comment" as "comment","res_partner"."purchase_warn_msg" as "purchase_warn_msg","res_partner"."first_order_date" as "first_order_date","res_partner"."create_date" as "create_date","res_partner"."display_name" as "display_name","res_partner"."city" as "city","res_partner"."signup_type" as "signup_type","res_partner"."write_uid" as "write_uid","res_partner"."title" as "title","res_partner"."date" as "date","res_partner"."color" as "color","res_partner"."commercial_partner_id" as "commercial_partner_id","res_partner"."barcode" as "barcode","res_partner"."commercial_company_name" as "commercial_company_name","res_partner"."credit_limit" as "credit_limit","res_partner"."signup_expiration" as "signup_expiration","res_partner"."state_id" as "state_id","res_partner"."total_orders_group" as "total_orders_group","res_partner"."email" as "email","res_partner"."active" as "active","res_partner"."partner_share" as "partner_share","res_partner"."parent_id" as "parent_id","res_partner"."commercial_partner_country_id" as "commercial_partner_country_id","res_partner"."function" as "function","res_partner"."company_name" as "company_name","res_partner"."type" as "type","res_partner"."last_time_entries_checked" as "last_time_entries_checked","res_partner"."invoice_warn" as "invoice_warn","res_partner"."swk_order_count" as "swk_order_count","res_partner"."country_id" as "country_id","res_partner"."ref" as "ref","res_partner"."average_basket_size" as "average_basket_size","res_partner"."customer" as "customer","res_partner"."suborder_count" as "suborder_count","res_partner"."sale_warn" as "sale_warn","res_partner"."last_order_date" as "last_order_date","res_partner"."street" as "street","res_partner"."dh_id" as "dh_id","res_partner"."industry_id" as "industry_id" FROM "res_partner" WHERE "res_partner".id IN ($1)
Covered by index on (id)
Rows: 718
Row progression: 718, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- commercial_partner_id
- company_id
- date
- dh_id, active
- display_name
- name
- parent_id
- ref
- total_orders_group
8 min < 0.1% 0 ms 26,714,716 odoo
SELECT "swk_sub_purchase".id FROM "swk_sub_purchase" WHERE ("swk_sub_purchase"."move_id" in ($1)) ORDER BY "swk_sub_purchase"."id"
Covered by index on (move_id)
Rows: 146778
Row progression: 146778, 1

Row estimates
- move_id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- move_id
- name
- state
8 min < 0.1% 0 ms 19,079,464 odoo
SELECT "stock_move_line".id FROM "stock_move_line" WHERE ("stock_move_line"."move_id" in ($1)) ORDER BY "stock_move_line"."id"
Covered by index on (move_id)
Rows: 4666095
Row progression: 4666095, 1

Row estimates
- move_id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
8 min < 0.1% 0 ms 2,625,825 odoo
SELECT "stock_location".id FROM "stock_location" WHERE ("stock_location"."parent_right" >= $1) ORDER BY "stock_location"."parent_left"
7 min < 0.1% 0 ms 7,186,652 odoo
SELECT "product_template"."id" as "id","product_template"."name" as "name","product_template"."color" as "color","product_template"."purchase_method" as "purchase_method","product_template"."non_food" as "non_food","product_template"."description_pickingout" as "description_pickingout","product_template"."sale_line_warn_msg" as "sale_line_warn_msg","product_template"."priority" as "priority","product_template"."print_as" as "print_as","product_template"."station_id" as "station_id","product_template"."delivery_minimum_stock" as "delivery_minimum_stock","product_template"."delivery_frequency" as "delivery_frequency","product_template"."procurement_target_days" as "procurement_target_days","product_template"."swk_inventory_loss" as "swk_inventory_loss","product_template"."sequence" as "sequence","product_template"."allow_negative_stock" as "allow_negative_stock","product_template"."purchase_line_warn" as "purchase_line_warn","product_template"."delivery_quantity" as "delivery_quantity","product_template"."description_pickingin" as "description_pickingin","product_template"."list_price" as "list_price","product_template"."expense_policy" as "expense_policy","product_template"."production_time" as "production_time","product_template"."zomato_new" as "zomato_new","product_template"."looker_subcategory_id" as "looker_subcategory_id","product_template"."pr_printer_id" as "pr_printer_id","product_template"."looker_category_id" as "looker_category_id","product_template"."uom_id" as "uom_id","product_template"."delivery_day" as "delivery_day","product_template"."rental" as "rental","product_template"."type" as "type","product_template"."life_time" as "life_time","product_template"."purchase_line_warn_msg" as "purchase_line_warn_msg","product_template"."zomato_spicy" as "zomato_spicy","product_template"."invoice_policy" as "invoice_policy","product_template"."production_instructions" as "production_instructions","product_template"."arabic_description" as "arabic_description","product_template"."swk_accounting_tag" as "swk_accounting_tag","product_template"."bom_cost" as "bom_cost","product_template"."write_date" as "write_date","product_template"."write_uid" as "write_uid","product_template"."calculated_selling" as "calculated_selling","product_template"."create_uid" as "create_uid","product_template"."uom_po_id" as "uom_po_id","product_template"."sale_ok" as "sale_ok","product_template"."description" as "description","product_template"."sale_delay" as "sale_delay","product_template"."produce_delay" as "produce_delay","product_template"."use_time" as "use_time","product_template"."categ_id" as "categ_id","product_template"."is_printed" as "is_printed","product_template"."production_minimum_stock" as "production_minimum_stock","product_template"."production_weekday" as "production_weekday","product_template"."price_as_attribute" as "price_as_attribute","product_template"."zomato_vegan" as "zomato_vegan","product_template"."purchase_ok" as "purchase_ok","product_template"."removal_time" as "removal_time","product_template"."responsible_id" as "responsible_id","product_template"."tracking" as "tracking","product_template"."company_id" as "company_id","product_template"."description_purchase" as "description_purchase","product_template"."service_type" as "service_type","product_template"."print_bold" as "print_bold","product_template"."production_quantity" as "production_quantity","product_template"."automatic_variant_create" as "automatic_variant_create","product_template"."swk_scrap_account" as "swk_scrap_account","product_template"."transferable_storage_temperature" as "transferable_storage_temperature","product_template"."zomato_tag" as "zomato_tag","product_template"."target_stock_override" as "target_stock_override","product_template"."classification" as "classification","product_template"."create_date" as "create_date","product_template"."uom_id_temp" as "uom_id_temp","product_template"."active" as "active","product_template"."alert_time" as "alert_time","product_template"."description_sale" as "description_sale","product_template"."description_picking" as "description_picking","product_template"."sale_line_warn" as "sale_line_warn","product_template"."container_price" as "container_price","product_template"."image_url" as "image_url","product_template"."has_non_empty_bom" as "has_non_empty_bom","product_template"."daily_consumption_override" as "daily_consumption_override","product_template"."transferable_type" as "transferable_type","product_template"."activity_date_deadline" as "activity_date_deadline","product_template"."message_last_post" as "message_last_post","product_template"."swk_inventory_gain" as "swk_inventory_gain","product_template"."pt_printer_id" as "pt_printer_id" FROM "product_template" WHERE "product_template".id IN ($1)
Covered by index on (id)
Rows: 30259
Row progression: 30259, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- name
7 min < 0.1% 0 ms 2,625,825 odoo
SELECT "stock_location".id FROM "stock_location" WHERE ("stock_location"."parent_left" <= $1) ORDER BY "stock_location"."parent_left"
7 min < 0.1% 0 ms 14,401,935 odoo
SELECT "stock_move_line"."id" as "id","stock_move_line"."product_id" as "product_id","stock_move_line"."product_uom_qty" as "product_uom_qty","stock_move_line"."lot_produced_id" as "lot_produced_id","stock_move_line"."location_id" as "location_id","stock_move_line"."ordered_qty" as "ordered_qty","stock_move_line"."lot_name" as "lot_name","stock_move_line"."product_uom_id" as "product_uom_id","stock_move_line"."create_date" as "create_date","stock_move_line"."location_dest_id" as "location_dest_id","stock_move_line"."done_wo" as "done_wo","stock_move_line"."qty_done" as "qty_done","stock_move_line"."date" as "date","stock_move_line"."write_date" as "write_date","stock_move_line"."package_id" as "package_id","stock_move_line"."create_uid" as "create_uid","stock_move_line"."picking_id" as "picking_id","stock_move_line"."workorder_id" as "workorder_id","stock_move_line"."state" as "state","stock_move_line"."done_move" as "done_move","stock_move_line"."lot_id" as "lot_id","stock_move_line"."write_uid" as "write_uid","stock_move_line"."location_processed" as "location_processed","stock_move_line"."production_id" as "production_id","stock_move_line"."move_id" as "move_id","stock_move_line"."reference" as "reference","stock_move_line"."lot_produced_qty" as "lot_produced_qty","stock_move_line"."product_qty" as "product_qty","stock_move_line"."result_package_id" as "result_package_id","stock_move_line"."move_line_processed" as "move_line_processed","stock_move_line"."owner_id" as "owner_id" FROM "stock_move_line" WHERE "stock_move_line".id IN ($1)
Covered by index on (id)
Rows: 4666095
Row progression: 4666095, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
7 min < 0.1% 0 ms 6,467,676 odoo
SELECT "stock_move_line".id FROM "stock_move_line" WHERE ("stock_move_line"."picking_id" in ($1))
Covered by index on (picking_id)
Rows: 4666095
Row progression: 4666095, 3

Row estimates
- picking_id (=): 3

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
6 min < 0.1% 0 ms 3,233,455 odoo
SELECT f.name, d.json_value FROM ir_default d
                    JOIN ir_model_fields f ON d.field_id=f.id
                    JOIN res_users u ON u.id=$1
                    WHERE f.model=$2
                        AND (d.user_id IS NULL OR d.user_id=u.id)
                        AND (d.company_id IS NULL OR d.company_id=u.company_id)
                        AND d.condition IS NULL
                    ORDER BY d.user_id, d.company_id, d.id
6 min < 0.1% 0 ms 11,134,126 odoo
SELECT "res_users"."id" as "id","res_users"."signature" as "signature","res_users"."login" as "login","res_users"."printing_action" as "printing_action","res_users"."printer_tray_id" as "printer_tray_id","res_users"."target_sales_won" as "target_sales_won","res_users"."write_date" as "write_date","res_users"."company_id" as "company_id","res_users"."target_sales_done" as "target_sales_done","res_users"."active" as "active","res_users"."alias_id" as "alias_id","res_users"."target_sales_invoiced" as "target_sales_invoiced","res_users"."notification_type" as "notification_type","res_users"."sale_team_id" as "sale_team_id","res_users"."share" as "share","res_users"."password" as "password","res_users"."partner_id" as "partner_id","res_users"."create_uid" as "create_uid","res_users"."printing_printer_id" as "printing_printer_id","res_users"."password_crypt" as "password_crypt","res_users"."action_id" as "action_id","res_users"."write_uid" as "write_uid","res_users"."create_date" as "create_date" FROM "res_users" WHERE "res_users".id IN ($1)
5 min < 0.1% 0 ms 14,803,500 odoo
SELECT DISTINCT "purchase_line_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
5 min < 0.1% 0 ms 13,562,310 odoo
SELECT DISTINCT "picking_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
5 min < 0.1% 0 ms 14,240,803 odoo
SELECT "stock_move".id FROM "stock_move" LEFT JOIN "stock_picking" as "stock_move__picking_id" ON ("stock_move"."picking_id" = "stock_move__picking_id"."id") WHERE ("stock_move"."id" in ($1)) ORDER BY "stock_move__picking_id"."priority" DESC,"stock_move__picking_id"."date" ASC,"stock_move__picking_id"."id" DESC,"stock_move"."sequence" ,"stock_move"."id"
4 min < 0.1% 0 ms 12,052,314 odoo
SELECT DISTINCT "move_id" FROM "stock_move_line" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4666095
Row progression: 4666095, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
3 min < 0.1% 0 ms 3,339,023 odoo
SELECT nextval($1)
3 min < 0.1% 0 ms 320,720 odoo
INSERT INTO "res_users_log" ("id", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval($1), $2, $3, (now() at time zone $4), (now() at time zone $5)) RETURNING id
3 min < 0.1% 0 ms 8,445,341 odoo
SELECT "stock_picking".id FROM "stock_picking" WHERE ("stock_picking"."id" in ($1)) ORDER BY "stock_picking"."id"
Covered by index on (id)
Rows: 2776124
Row progression: 2776124, 1

Row estimates
- id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- backorder_id
- company_id
- date
- group_id, picking_type_id, location_dest_id
- name, company_id UNIQUE
- origin
- priority
- sale_id
- scheduled_date
- state, picking_type_id, scheduled_date
2 min < 0.1% 0 ms 3,866,492 odoo
SELECT "stock_production_lot"."id" as "id","stock_production_lot"."write_uid" as "write_uid","stock_production_lot"."create_date" as "create_date","stock_production_lot"."removal_date" as "removal_date","stock_production_lot"."alert_date" as "alert_date","stock_production_lot"."automatic_scrap" as "automatic_scrap","stock_production_lot"."automatic_scrap_cancelled" as "automatic_scrap_cancelled","stock_production_lot"."message_last_post" as "message_last_post","stock_production_lot"."ref" as "ref","stock_production_lot"."product_uom_id" as "product_uom_id","stock_production_lot"."create_uid" as "create_uid","stock_production_lot"."expiration_alert" as "expiration_alert","stock_production_lot"."use_date" as "use_date","stock_production_lot"."write_date" as "write_date","stock_production_lot"."product_id" as "product_id","stock_production_lot"."name" as "name","stock_production_lot"."before_expiration_alert" as "before_expiration_alert","stock_production_lot"."life_date" as "life_date","stock_production_lot"."use_next_on_work_order_id" as "use_next_on_work_order_id" FROM "stock_production_lot" WHERE "stock_production_lot".id IN ($1)
Covered by index on (id)
Rows: 431692
Row progression: 431692, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- name, product_id UNIQUE
2 min < 0.1% 0 ms 6,237,115 odoo
SELECT DISTINCT "inventory_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
2 min < 0.1% 0 ms 6,464,781 odoo
SELECT DISTINCT "raw_material_production_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
2 min < 0.1% 1 ms 212,737 odoo
SELECT COUNT(*) FROM ir_module_module WHERE state LIKE $1
2 min < 0.1% 0 ms 5,836,568 odoo
SELECT "stock_picking".id FROM "stock_picking" WHERE ("stock_picking"."id" in ($1)) ORDER BY "stock_picking"."priority" DESC,"stock_picking"."date" ASC,"stock_picking"."id" DESC
Covered by index on (id)
Rows: 2776124
Row progression: 2776124, 1

Row estimates
- id (=): 1
- priority (sort): 2776124

Existing indexes
- id PRIMARY
- backorder_id
- company_id
- date
- group_id, picking_type_id, location_dest_id
- name, company_id UNIQUE
- origin
- priority
- sale_id
- scheduled_date
- state, picking_type_id, scheduled_date
2 min < 0.1% 0 ms 313,757 odoo
SELECT "ir_model".id FROM "ir_model" WHERE ("ir_model"."model"::text like $1) ORDER BY COALESCE("ir_model"."is_mail_thread", $2) DESC,"ir_model"."name" ASC
2 min < 0.1% 0 ms 2,020,355 odoo
SELECT "res_partner"."id" as "id","res_partner"."barcode" as "barcode","res_partner"."customer" as "customer","res_partner"."partner_share" as "partner_share","res_partner"."commercial_company_name" as "commercial_company_name","res_partner"."credit_limit" as "credit_limit","res_partner"."total_orders_group" as "total_orders_group","res_partner"."cancelled_order_count" as "cancelled_order_count","res_partner"."email" as "email","res_partner"."create_date" as "create_date","res_partner"."write_uid" as "write_uid","res_partner"."company_id" as "company_id","res_partner"."activity_date_deadline" as "activity_date_deadline","res_partner"."message_bounce" as "message_bounce","res_partner"."function" as "function","res_partner"."supplier" as "supplier","res_partner"."user_id" as "user_id","res_partner"."company_name" as "company_name","res_partner"."team_id" as "team_id","res_partner"."picking_warn" as "picking_warn","res_partner"."average_basket_size" as "average_basket_size","res_partner"."ref" as "ref","res_partner"."last_order_date" as "last_order_date","res_partner"."create_uid" as "create_uid","res_partner"."opt_out" as "opt_out","res_partner"."tz" as "tz","res_partner"."employee" as "employee","res_partner"."street" as "street","res_partner"."invoice_warn_msg" as "invoice_warn_msg","res_partner"."lang" as "lang","res_partner"."sale_warn" as "sale_warn","res_partner"."customer_platform" as "customer_platform","res_partner"."first_order_date" as "first_order_date","res_partner"."phone" as "phone","res_partner"."dh_id" as "dh_id","res_partner"."write_date" as "write_date","res_partner"."title" as "title","res_partner"."commercial_partner_id" as "commercial_partner_id","res_partner"."is_company" as "is_company","res_partner"."signup_expiration" as "signup_expiration","res_partner"."street2" as "street2","res_partner"."signup_token" as "signup_token","res_partner"."debit_limit" as "debit_limit","res_partner"."last_time_entries_checked" as "last_time_entries_checked","res_partner"."state_id" as "state_id","res_partner"."picking_warn_msg" as "picking_warn_msg","res_partner"."sale_warn_msg" as "sale_warn_msg","res_partner"."vat" as "vat","res_partner"."mobile" as "mobile","res_partner"."date" as "date","res_partner"."color" as "color","res_partner"."type" as "type","res_partner"."parent_id" as "parent_id","res_partner"."name" as "name","res_partner"."zip" as "zip","res_partner"."commercial_partner_country_id" as "commercial_partner_country_id","res_partner"."signup_type" as "signup_type","res_partner"."invoice_warn" as "invoice_warn","res_partner"."purchase_warn" as "purchase_warn","res_partner"."country_id" as "country_id","res_partner"."website" as "website","res_partner"."suborder_count" as "suborder_count","res_partner"."active" as "active","res_partner"."calendar_last_notif_ack" as "calendar_last_notif_ack","res_partner"."comment" as "comment","res_partner"."purchase_warn_msg" as "purchase_warn_msg","res_partner"."display_name" as "display_name","res_partner"."city" as "city","res_partner"."message_last_post" as "message_last_post","res_partner"."industry_id" as "industry_id","res_partner"."swk_order_count" as "swk_order_count" FROM "res_partner" WHERE "res_partner".id IN ($1)
Covered by index on (id)
Rows: 718
Row progression: 718, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- commercial_partner_id
- company_id
- date
- dh_id, active
- display_name
- name
- parent_id
- ref
- total_orders_group
2 min < 0.1% 0 ms 4,685,171 odoo
SELECT DISTINCT "production_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
2 min < 0.1% 0 ms 3,454,925 odoo
SELECT "res_users"."id" as "id","res_users"."signature" as "signature","res_users"."active" as "active","res_users"."action_id" as "action_id","res_users"."notification_type" as "notification_type","res_users"."target_sales_invoiced" as "target_sales_invoiced","res_users"."write_uid" as "write_uid","res_users"."password" as "password","res_users"."printer_tray_id" as "printer_tray_id","res_users"."password_crypt" as "password_crypt","res_users"."alias_id" as "alias_id","res_users"."share" as "share","res_users"."company_id" as "company_id","res_users"."sale_team_id" as "sale_team_id","res_users"."create_date" as "create_date","res_users"."login" as "login","res_users"."printing_action" as "printing_action","res_users"."target_sales_won" as "target_sales_won","res_users"."write_date" as "write_date","res_users"."create_uid" as "create_uid","res_users"."partner_id" as "partner_id","res_users"."target_sales_done" as "target_sales_done","res_users"."printing_printer_id" as "printing_printer_id" FROM "res_users" WHERE "res_users".id IN ($1)
2 min < 0.1% 0 ms 75,744,061 odoo
COMMIT
2 min < 0.1% 0 ms 5,804,679 odoo
SELECT id FROM "product_category" WHERE id IN ($1)
1 min < 0.1% 0 ms 236,494 odoo
UPDATE "swk_scrap_ticket" SET "currency_id"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 17605
Row progression: 17605, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- name
- state
1 min < 0.1% 0 ms 607,569 odoo
SELECT "ir_sequence".id FROM "ir_sequence" LEFT JOIN "res_company" as "ir_sequence__company_id" ON ("ir_sequence"."company_id" = "ir_sequence__company_id"."id") WHERE ((("ir_sequence"."active" = $1)  AND  ("ir_sequence"."code" = $2))  AND  (("ir_sequence"."company_id" in ($3)) OR "ir_sequence"."company_id" IS NULL)) ORDER BY "ir_sequence__company_id"."sequence" ,"ir_sequence__company_id"."name"
1 min < 0.1% 0 ms 7,119,950 odoo
SELECT "mrp_production".id FROM "mrp_production" WHERE ("mrp_production"."id" in ($1)) ORDER BY "mrp_production"."id"
Covered by index on (id)
Rows: 372804
Row progression: 372804, 1

Row estimates
- id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- date_finished
- date_planned_finished
- date_planned_start
- date_start
- name, company_id UNIQUE
1 min < 0.1% 0 ms 236,908 odoo
UPDATE "swk_scrap_ticket" SET "scrap_quantity"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 17605
Row progression: 17605, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- name
- state
1 min < 0.1% 0 ms 1,623,788 odoo
SELECT "product_template"."id" as "id","product_template"."target_stock_override" as "target_stock_override","product_template"."uom_id" as "uom_id","product_template"."sale_ok" as "sale_ok","product_template"."use_time" as "use_time","product_template"."purchase_line_warn" as "purchase_line_warn","product_template"."list_price" as "list_price","product_template"."description_pickingin" as "description_pickingin","product_template"."expense_policy" as "expense_policy","product_template"."production_time" as "production_time","product_template"."delivery_quantity" as "delivery_quantity","product_template"."delivery_day" as "delivery_day","product_template"."write_uid" as "write_uid","product_template"."write_date" as "write_date","product_template"."create_uid" as "create_uid","product_template"."transferable_type" as "transferable_type","product_template"."type" as "type","product_template"."purchase_ok" as "purchase_ok","product_template"."uom_po_id" as "uom_po_id","product_template"."removal_time" as "removal_time","product_template"."invoice_policy" as "invoice_policy","product_template"."purchase_line_warn_msg" as "purchase_line_warn_msg","product_template"."categ_id" as "categ_id","product_template"."is_printed" as "is_printed","product_template"."production_instructions" as "production_instructions","product_template"."uom_id_temp" as "uom_id_temp","product_template"."arabic_description" as "arabic_description","product_template"."looker_category_id" as "looker_category_id","product_template"."create_date" as "create_date","product_template"."classification" as "classification","product_template"."swk_scrap_account" as "swk_scrap_account","product_template"."print_bold" as "print_bold","product_template"."description" as "description","product_template"."active" as "active","product_template"."sale_delay" as "sale_delay","product_template"."produce_delay" as "produce_delay","product_template"."company_id" as "company_id","product_template"."responsible_id" as "responsible_id","product_template"."alert_time" as "alert_time","product_template"."production_minimum_stock" as "production_minimum_stock","product_template"."production_weekday" as "production_weekday","product_template"."has_non_empty_bom" as "has_non_empty_bom","product_template"."price_as_attribute" as "price_as_attribute","product_template"."looker_subcategory_id" as "looker_subcategory_id","product_template"."calculated_selling" as "calculated_selling","product_template"."message_last_post" as "message_last_post","product_template"."procurement_target_days" as "procurement_target_days","product_template"."swk_inventory_gain" as "swk_inventory_gain","product_template"."activity_date_deadline" as "activity_date_deadline","product_template"."description_purchase" as "description_purchase","product_template"."color" as "color","product_template"."tracking" as "tracking","product_template"."service_type" as "service_type","product_template"."non_food" as "non_food","product_template"."production_quantity" as "production_quantity","product_template"."station_id" as "station_id","product_template"."automatic_variant_create" as "automatic_variant_create","product_template"."zomato_tag" as "zomato_tag","product_template"."transferable_storage_temperature" as "transferable_storage_temperature","product_template"."bom_cost" as "bom_cost","product_template"."pt_printer_id" as "pt_printer_id","product_template"."zomato_spicy" as "zomato_spicy","product_template"."sequence" as "sequence","product_template"."allow_negative_stock" as "allow_negative_stock","product_template"."description_picking" as "description_picking","product_template"."description_sale" as "description_sale","product_template"."sale_line_warn" as "sale_line_warn","product_template"."container_price" as "container_price","product_template"."purchase_method" as "purchase_method","product_template"."image_url" as "image_url","product_template"."delivery_minimum_stock" as "delivery_minimum_stock","product_template"."swk_inventory_loss" as "swk_inventory_loss","product_template"."zomato_new" as "zomato_new","product_template"."name" as "name","product_template"."daily_consumption_override" as "daily_consumption_override","product_template"."pr_printer_id" as "pr_printer_id","product_template"."zomato_vegan" as "zomato_vegan","product_template"."rental" as "rental","product_template"."life_time" as "life_time","product_template"."description_pickingout" as "description_pickingout","product_template"."sale_line_warn_msg" as "sale_line_warn_msg","product_template"."priority" as "priority","product_template"."print_as" as "print_as","product_template"."delivery_frequency" as "delivery_frequency","product_template"."swk_accounting_tag" as "swk_accounting_tag" FROM "product_template" WHERE "product_template".id IN ($1)
Covered by index on (id)
Rows: 30259
Row progression: 30259, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- name
1 min < 0.1% 0 ms 3,032,456 odoo
SELECT "material_requisition"."id" as "id","material_requisition"."name" as "name" FROM "material_requisition" WHERE "material_requisition".id IN ($1)
Covered by index on (id)
Rows: 42414
Row progression: 42414, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
1 min < 0.1% 0 ms 79,019,442 odoo
ROLLBACK
1 min < 0.1% 0 ms 2,366,236 odoo
SELECT "stock_move_line"."id" as "id","stock_move_line"."picking_id" as "picking_id" FROM "stock_move_line" WHERE "stock_move_line".id IN ($1)
Covered by index on (id)
Rows: 4666095
Row progression: 4666095, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
1 min < 0.1% 0 ms 245,028 odoo
UPDATE "swk_scrap_ticket" SET "value"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 17605
Row progression: 17605, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- name
- state
1 min < 0.1% 0 ms 2,132,187 odoo
SELECT DISTINCT "origin_returned_move_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
1 min < 0.1% 0 ms 11,854,023 odoo
SELECT "purchase_order".id FROM "purchase_order" WHERE $1 ORDER BY "purchase_order"."id"
1 min < 0.1% 0 ms 8,419,837 odoo
SELECT "purchase_order_line".id FROM "purchase_order_line" LEFT JOIN "purchase_order" as "purchase_order_line__order_id" ON ("purchase_order_line"."order_id" = "purchase_order_line__order_id"."id") WHERE ("purchase_order_line"."id" in ($1)) ORDER BY "purchase_order_line__order_id"."date_order" DESC,"purchase_order_line__order_id"."id" DESC,"purchase_order_line"."sequence" ,"purchase_order_line"."id"
1 min < 0.1% 0 ms 2,132,187 odoo
SELECT DISTINCT "workorder_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
1 min < 0.1% 0 ms 808,401 odoo
SELECT "stock_warehouse".id FROM "stock_warehouse" WHERE ((("stock_warehouse"."active" = $1)  AND  ("stock_warehouse"."view_location_id" in ($2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25,$26,$27,$28,$29,$30,$31,$32,$33,$34,$35,$36,$37,$38,$39,$40,$41,$42,$43,$44,$45,$46,$47,$48,$49,$50,$51,$52,$53,$54,$55,$56,$57,$58,$59,$60,$61,$62,$63,$64,$65,$66,$67,$68,$69,$70,$71,$72,$73,$74,$75,$76,$77,$78,$79,$80,$81,$82,$83,$84,$85,$86,$87,$88,$89,$90,$91,$92,$93,$94,$95,$96,$97,$98,$99,$100,$101,$102,$103,$104,$105,$106,$107,$108,$109,$110,$111,$112,$113,$114,$115,$116,$117,$118,$119,$120,$121,$122,$123,$124,$125,$126,$127,$128,$129,$130,$131,$132,$133,$134,$135,$136,$137,$138,$139,$140,$141,$142,$143,$144,$145,$146,$147,$148,$149,$150,$151,$152,$153,$154,$155,$156,$157,$158,$159,$160,$161,$162,$163,$164,$165,$166,$167,$168,$169,$170,$171,$172,$173,$174,$175,$176,$177,$178,$179,$180,$181,$182,$183,$184,$185,$186,$187,$188,$189,$190,$191,$192,$193,$194,$195,$196,$197,$198,$199,$200,$201,$202,$203,$204,$205,$206,$207,$208,$209,$210,$211,$212,$213,$214,$215,$216,$217,$218,$219,$220,$221,$222,$223,$224,$225,$226,$227,$228,$229,$230,$231,$232,$233,$234,$235,$236,$237,$238,$239,$240,$241,$242,$243,$244,$245,$246,$247,$248,$249,$250,$251,$252,$253,$254,$255,$256,$257,$258,$259,$260,$261,$262,$263,$264,$265,$266,$267,$268,$269,$270,$271,$272,$273,$274,$275,$276,$277,$278,$279,$280,$281,$282,$283,$284,$285,$286,$287,$288,$289,$290,$291,$292,$293,$294,$295,$296,$297,$298,$299,$300,$301,$302,$303,$304,$305,$306,$307,$308,$309,$310,$311,$312,$313,$314,$315,$316,$317,$318,$319,$320,$321,$322,$323,$324,$325,$326,$327,$328,$329,$330,$331,$332,$333,$334,$335,$336,$337,$338,$339,$340,$341,$342,$343,$344,$345,$346,$347,$348,$349,$350,$351,$352)))  AND  ("stock_warehouse"."view_location_id" in ($353,$354,$355,$356,$357,$358,$359,$360,$361,$362))) ORDER BY "stock_warehouse"."name"   limit $363
1 min < 0.1% 2 ms 19,758 odoo
INSERT INTO "stock_move" ("id", "product_id", "ordered_qty", "scrapped", "state", "product_uom_qty", "procure_method", "group_id", "picking_id", "sequence", "to_refund", "company_id", "location_dest_id", "priority", "name", "is_done", "location_id", "date_expected", "origin", "date", "propagate", "additional", "product_uom", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval($1), $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, (now() at time zone $26), (now() at time zone $27)) RETURNING id
1 min < 0.1% 0 ms 4,878,509 odoo
SELECT "mrp_production".id FROM "mrp_production" WHERE ("mrp_production"."id" in ($1)) ORDER BY "mrp_production"."date_planned_start" ASC,"mrp_production"."id"
Covered by index on (id)
Rows: 372804
Row progression: 372804, 1

Row estimates
- id (=): 1
- date_planned_start (sort): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- date_finished
- date_planned_finished
- date_planned_start
- date_start
- name, company_id UNIQUE
1 min < 0.1% 0 ms 815,128 odoo
SELECT "stock_warehouse".id FROM "stock_warehouse" WHERE ((("stock_warehouse"."active" = $1)  AND  ("stock_warehouse"."view_location_id" in ($2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22)))  AND  ("stock_warehouse"."view_location_id" in ($23,$24,$25,$26,$27,$28,$29,$30,$31,$32,$33,$34,$35,$36,$37,$38,$39,$40,$41,$42,$43,$44,$45,$46,$47,$48,$49,$50,$51,$52,$53,$54,$55,$56,$57,$58,$59,$60,$61,$62,$63,$64,$65,$66,$67,$68,$69,$70,$71,$72,$73,$74,$75,$76,$77,$78,$79,$80,$81,$82,$83,$84,$85,$86,$87,$88,$89,$90,$91,$92,$93,$94,$95,$96,$97,$98,$99,$100,$101,$102,$103,$104,$105,$106,$107,$108,$109,$110,$111,$112,$113,$114,$115,$116,$117,$118,$119,$120,$121,$122,$123,$124,$125,$126,$127,$128,$129,$130,$131,$132,$133,$134,$135,$136,$137,$138,$139,$140,$141,$142,$143,$144,$145,$146,$147,$148,$149,$150,$151,$152,$153,$154,$155,$156,$157,$158,$159,$160,$161,$162,$163,$164,$165,$166,$167,$168,$169,$170,$171,$172,$173,$174,$175,$176,$177,$178,$179,$180,$181,$182,$183,$184,$185,$186,$187,$188,$189,$190,$191,$192,$193,$194,$195,$196,$197,$198,$199,$200,$201,$202,$203,$204,$205,$206,$207,$208,$209,$210,$211,$212,$213,$214,$215,$216,$217,$218,$219,$220,$221,$222,$223,$224,$225,$226,$227,$228,$229,$230,$231,$232,$233,$234,$235,$236,$237,$238,$239,$240,$241,$242,$243,$244,$245,$246,$247,$248,$249,$250,$251,$252,$253,$254,$255,$256,$257,$258,$259,$260,$261,$262,$263,$264,$265,$266,$267,$268,$269,$270,$271,$272,$273,$274,$275,$276,$277,$278,$279,$280,$281,$282,$283,$284,$285,$286,$287,$288,$289,$290,$291,$292,$293,$294,$295,$296,$297,$298,$299,$300,$301,$302,$303,$304,$305,$306,$307,$308,$309,$310,$311,$312,$313,$314,$315,$316,$317,$318,$319,$320,$321,$322,$323,$324,$325,$326,$327,$328,$329,$330,$331,$332,$333,$334,$335,$336,$337,$338,$339,$340,$341,$342,$343,$344,$345,$346,$347,$348,$349,$350,$351,$352,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362))) ORDER BY "stock_warehouse"."name"   limit $363
1 min < 0.1% 0 ms 7,565,478 odoo
SELECT "purchase_order_line".id FROM "purchase_order_line" WHERE ("purchase_order_line"."id" in ($1)) ORDER BY "purchase_order_line"."id"
Covered by index on (id)
Rows: 149669
Row progression: 149669, 1

Row estimates
- id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- date_planned
- order_id
1 min < 0.1% 0 ms 795,903 odoo
SELECT "material_requisition"."id" as "id","material_requisition"."schedule_id" as "schedule_id","material_requisition"."state" as "state","material_requisition"."name" as "name","material_requisition"."request_type" as "request_type","material_requisition"."create_uid" as "create_uid","material_requisition"."write_date" as "write_date","material_requisition"."ck_lines_count" as "ck_lines_count","material_requisition"."received_value" as "received_value","material_requisition"."create_date" as "create_date","material_requisition"."partner_id" as "partner_id","material_requisition"."write_uid" as "write_uid","material_requisition"."branch_lines_count" as "branch_lines_count","material_requisition"."value" as "value","material_requisition"."warehouse_id" as "warehouse_id" FROM "material_requisition" WHERE "material_requisition".id IN ($1)
Covered by index on (id)
Rows: 42414
Row progression: 42414, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
1 min < 0.1% 0 ms 689,422 odoo
SELECT "res_currency"."id" as "id","res_currency"."currency_subunit_label" as "currency_subunit_label","res_currency"."rounding" as "rounding","res_currency"."create_uid" as "create_uid","res_currency"."active" as "active","res_currency"."create_date" as "create_date","res_currency"."currency_unit_label" as "currency_unit_label","res_currency"."position" as "position","res_currency"."symbol" as "symbol","res_currency"."write_date" as "write_date","res_currency"."write_uid" as "write_uid","res_currency"."name" as "name" FROM "res_currency" WHERE "res_currency".id IN ($1)
1 min < 0.1% 0 ms 373,451 odoo
SELECT "product_product"."id" as "id","product_product"."product_tmpl_id" as "product_tmpl_id","product_product"."barcode" as "barcode","product_product"."message_last_post" as "message_last_post","product_product"."create_uid" as "create_uid","product_product"."write_date" as "write_date","product_product"."production_cost_food" as "production_cost_food","product_product"."product_id" as "product_id","product_product"."activity_date_deadline" as "activity_date_deadline","product_product"."create_date" as "create_date","product_product"."weight" as "weight","product_product"."production_cost_nonfood" as "production_cost_nonfood","product_product"."default_code" as "default_code","product_product"."active" as "active","product_product"."write_uid" as "write_uid","product_product"."volume" as "volume" FROM "product_product" WHERE "product_product".id IN ($1, $2)
Covered by index on (id)
Rows: 1540718
Row progression: 1540718, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- barcode UNIQUE
- default_code
- product_tmpl_id
- product_tmpl_id, default_code
1 min < 0.1% 0 ms 6,237,190 odoo
SELECT "stock_inventory".id FROM "stock_inventory" WHERE ("stock_inventory"."id" in ($1)) ORDER BY "stock_inventory"."date" DESC,"stock_inventory"."id" DESC
Covered by index on (id)
Rows: 61422
Row progression: 61422, 1

Row estimates
- id (=): 1
- date (sort): 1

Existing indexes
- id PRIMARY
- company_id
- state
0 min < 0.1% 0 ms 1,130,240 odoo
SELECT "stock_move_line"."id" as "id","stock_move_line"."package_id" as "package_id","stock_move_line"."create_uid" as "create_uid","stock_move_line"."picking_id" as "picking_id","stock_move_line"."workorder_id" as "workorder_id","stock_move_line"."create_date" as "create_date","stock_move_line"."lot_id" as "lot_id","stock_move_line"."write_uid" as "write_uid","stock_move_line"."lot_produced_qty" as "lot_produced_qty","stock_move_line"."move_id" as "move_id","stock_move_line"."production_id" as "production_id","stock_move_line"."done_wo" as "done_wo","stock_move_line"."date" as "date","stock_move_line"."write_date" as "write_date","stock_move_line"."result_package_id" as "result_package_id","stock_move_line"."product_id" as "product_id","stock_move_line"."lot_produced_id" as "lot_produced_id","stock_move_line"."product_uom_qty" as "product_uom_qty","stock_move_line"."owner_id" as "owner_id","stock_move_line"."location_processed" as "location_processed","stock_move_line"."ordered_qty" as "ordered_qty","stock_move_line"."product_uom_id" as "product_uom_id","stock_move_line"."lot_name" as "lot_name","stock_move_line"."location_id" as "location_id","stock_move_line"."move_line_processed" as "move_line_processed","stock_move_line"."qty_done" as "qty_done","stock_move_line"."location_dest_id" as "location_dest_id" FROM "stock_move_line" WHERE "stock_move_line".id IN ($1)
Covered by index on (id)
Rows: 4666095
Row progression: 4666095, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
0 min < 0.1% 0 ms 320,883 odoo
SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" as "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (("res_users"."active" = $1)  AND  ("res_users"."login" = $2)) ORDER BY "res_users__partner_id"."name" ,"res_users"."login"
0 min < 0.1% 759 ms 36 odoo
SELECT "material_requisition_line".id FROM "material_requisition_line" LEFT JOIN "res_partner" as "material_requisition_line__partner_id" ON ("material_requisition_line"."partner_id" = "material_requisition_line__partner_id"."id") LEFT JOIN "product_category" as "material_requisition_line__categ_id" ON ("material_requisition_line"."categ_id" = "material_requisition_line__categ_id"."id") LEFT JOIN "product_product" as "material_requisition_line__product_id" ON ("material_requisition_line"."product_id" = "material_requisition_line__product_id"."id") WHERE ((("material_requisition_line"."state" = $1)  AND  ("material_requisition_line"."dispatch_qty" > $2))  AND  "material_requisition_line"."out_transfer_id" IS NULL ) ORDER BY "material_requisition_line__partner_id"."display_name" ,"material_requisition_line__categ_id"."parent_left" ,"material_requisition_line__product_id"."default_code" ,"material_requisition_line__product_id"."id"
0 min < 0.1% 0 ms 6,145,811 odoo
SELECT "stock_inventory_line".id FROM "stock_inventory_line" WHERE $1 ORDER BY "stock_inventory_line"."id"
0 min < 0.1% 0 ms 504,533 odoo
SELECT "ir_sequence"."id" as "id","ir_sequence"."number_next" as "number_next","ir_sequence"."padding" as "padding","ir_sequence"."active" as "active","ir_sequence"."create_uid" as "create_uid","ir_sequence"."prefix" as "prefix","ir_sequence"."number_increment" as "number_increment","ir_sequence"."auto_reset" as "auto_reset","ir_sequence"."code" as "code","ir_sequence"."implementation" as "implementation","ir_sequence"."write_date" as "write_date","ir_sequence"."company_id" as "company_id","ir_sequence"."last_prefix" as "last_prefix","ir_sequence"."write_uid" as "write_uid","ir_sequence"."use_date_range" as "use_date_range","ir_sequence"."name" as "name","ir_sequence"."create_date" as "create_date","ir_sequence"."suffix" as "suffix" FROM "ir_sequence" WHERE "ir_sequence".id IN ($1)
0 min < 0.1% 0 ms 474,821 odoo
SELECT "product_template"."id" as "id" FROM "product_template" WHERE "product_template".id IN ($1, $2)
Covered by index on (id)
Rows: 30259
Row progression: 30259, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- name
0 min < 0.1% 0 ms 212,737 odoo
SELECT latest_version FROM ir_module_module WHERE name=$1
0 min < 0.1% 0 ms 818,802 odoo
SELECT "product_category".id FROM "product_category" WHERE ("product_category"."parent_id" in ($1)) ORDER BY "product_category"."parent_left"
0 min < 0.1% 0 ms 734,716 odoo
SELECT "mail_message_subtype".id FROM "mail_message_subtype" WHERE ("mail_message_subtype"."res_model" = $1) ORDER BY "mail_message_subtype"."sequence" ,"mail_message_subtype"."id"
0 min < 0.1% 1 ms 19,883 odoo
INSERT INTO "stock_move_line" ("id", "product_id", "owner_id", "location_id", "done_wo", "package_id", "product_uom_qty", "qty_done", "done_move", "ordered_qty", "product_uom_id", "date", "location_processed", "move_line_processed", "lot_id", "location_dest_id", "move_id", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval($1), $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, (now() at time zone $20), (now() at time zone $21)) RETURNING id
0 min < 0.1% 0 ms 3,417,164 odoo
SELECT "purchase_order_line".id FROM "purchase_order_line" LEFT JOIN "purchase_order" as "purchase_order_line__order_id" ON ("purchase_order_line"."order_id" = "purchase_order_line__order_id"."id") WHERE $1 ORDER BY "purchase_order_line__order_id"."date_order" DESC,"purchase_order_line__order_id"."id" DESC,"purchase_order_line"."sequence" ,"purchase_order_line"."id"
0 min < 0.1% 1 ms 19,758 odoo
INSERT INTO "stock_scrap" ("id", "product_id", "name", "is_swk_scrap", "state", "location_id", "date_expected", "product_uom_id", "scrap_ticket_id", "company_id", "lot_id", "initial_quantity", "scrap_qty", "scrap_location_id", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval($1), $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, (now() at time zone $17), (now() at time zone $18)) RETURNING id
0 min < 0.1% 0 ms 4,135,186 odoo
SELECT "swk_production_ticket".id FROM "swk_production_ticket" WHERE $1 ORDER BY "swk_production_ticket"."id"
0 min < 0.1% 0 ms 221,835 odoo
SELECT * FROM ir_cron
                              WHERE numbercall != $1
                                  AND active AND nextcall <= (now() at time zone $2)
                              ORDER BY priority
0 min < 0.1% 0 ms 30,119 odoo
UPDATE "stock_scrap" SET "value_food"=$1,"value"=$2,"value_nonfood"=$3,"write_uid"=$4,"write_date"=(now() at time zone $5) WHERE id IN ($6)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 30,119 odoo
UPDATE "stock_scrap" SET "date"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 64,480 odoo
SELECT "stock_location".id FROM "stock_location" WHERE (("stock_location"."active" = $1)  AND  ("stock_location"."usage" = $2)) ORDER BY "stock_location"."parent_left"
0 min < 0.1% 0 ms 187,586 odoo
SELECT "stock_location"."id" as "id","stock_location"."create_date" as "create_date","stock_location"."parent_right" as "parent_right","stock_location"."name" as "name","stock_location"."partner_id" as "partner_id","stock_location"."active" as "active","stock_location"."scrap_location" as "scrap_location","stock_location"."valuation_in_account_id" as "valuation_in_account_id","stock_location"."write_date" as "write_date","stock_location"."complete_name" as "complete_name","stock_location"."company_id" as "company_id","stock_location"."posx" as "posx","stock_location"."return_location" as "return_location","stock_location"."valuation_out_account_id" as "valuation_out_account_id","stock_location"."barcode" as "barcode","stock_location"."removal_strategy_id" as "removal_strategy_id","stock_location"."posy" as "posy","stock_location"."usage" as "usage","stock_location"."allow_negative_stock" as "allow_negative_stock","stock_location"."create_uid" as "create_uid","stock_location"."posz" as "posz","stock_location"."putaway_strategy_id" as "putaway_strategy_id","stock_location"."comment" as "comment","stock_location"."location_id" as "location_id","stock_location"."write_uid" as "write_uid","stock_location"."parent_left" as "parent_left" FROM "stock_location" WHERE "stock_location".id IN ($1, $2, $3)
0 min < 0.1% 0 ms 612,576 odoo
SELECT DISTINCT "scrap_ticket_id" FROM "stock_scrap" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 461,700 odoo
SELECT "mrp_production"."id" as "id" FROM "mrp_production" WHERE "mrp_production".id IN ($1)
Covered by index on (id)
Rows: 372804
Row progression: 372804, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- date_finished
- date_planned_finished
- date_planned_start
- date_start
- name, company_id UNIQUE
0 min < 0.1% 0 ms 211,261 odoo
SELECT "product_attribute_line".id FROM "product_attribute_line" WHERE ("product_attribute_line"."product_tmpl_id" in ($1,$2)) ORDER BY "product_attribute_line"."sequence" ,"product_attribute_line"."id"
Covered by index on (product_tmpl_id, attribute_id)
Rows: 3883
Row progression: 3883, 3

Row estimates
- product_tmpl_id (=): 3
- sequence (sort): 299
- id (sort): 1

Existing indexes
- id PRIMARY
- product_tmpl_id, attribute_id UNIQUE
0 min < 0.1% 1 ms 19,883 odoo
UPDATE "stock_scrap" SET "currency_id"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 598,722 odoo
SELECT "mail_message_subtype".id FROM "mail_message_subtype" WHERE ("mail_message_subtype"."res_model" IS NULL   OR  $1) ORDER BY "mail_message_subtype"."sequence" ,"mail_message_subtype"."id"
0 min < 0.1% 1 ms 19,883 odoo
UPDATE "stock_scrap" SET "variation"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 482,194 odoo
SELECT "swk_scrap_ticket"."id" as "id" FROM "swk_scrap_ticket" WHERE "swk_scrap_ticket".id IN ($1)
Covered by index on (id)
Rows: 17605
Row progression: 17605, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- name
- state
0 min < 0.1% 0 ms 455,665 odoo
SELECT "stock_move"."id" as "id" FROM "stock_move" WHERE "stock_move".id IN ($1)
Covered by index on (id)
Rows: 4888973
Row progression: 4888973, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- created_purchase_line_id
- date
- date_expected
- inventory_id, location_dest_id
- location_dest_id, created_purchase_line_id
- location_dest_id, state, product_id, date
- location_id
- name
- origin_returned_move_id
- picking_id, location_dest_id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- production_id, location_dest_id
- purchase_line_id
- raw_material_production_id, location_dest_id
- sale_line_id, location_dest_id
- scrapped
- state
0 min < 0.1% 0 ms 612,576 odoo
SELECT "swk_scrap_ticket".id FROM "swk_scrap_ticket" WHERE ("swk_scrap_ticket"."id" in ($1)) ORDER BY "swk_scrap_ticket"."id"
Covered by index on (id)
Rows: 17605
Row progression: 17605, 1

Row estimates
- id (=): 1
- id (sort): 1

Existing indexes
- id PRIMARY
- name
- state
0 min < 0.1% 0 ms 19,883 odoo
UPDATE "stock_scrap" SET "warehouse_id"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 8171
Row progression: 8171, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
0 min < 0.1% 0 ms 2,132,261 odoo
SELECT "mrp_workorder".id FROM "mrp_workorder" WHERE ("mrp_workorder"."id" in ($1)) ORDER BY "mrp_workorder"."id"
0 min < 0.1% 0 ms 234,896 odoo
SELECT "ir_model"."id" as "id","ir_model"."write_uid" as "write_uid","ir_model"."model" as "model","ir_model"."create_date" as "create_date","ir_model"."write_date" as "write_date","ir_model"."info" as "info","ir_model"."name" as "name","ir_model"."is_mail_thread" as "is_mail_thread","ir_model"."transient" as "transient","ir_model"."create_uid" as "create_uid","ir_model"."state" as "state" FROM "ir_model" WHERE "ir_model".id IN ($1)
Covered by index on (id)
Rows: 571
Row progression: 571, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- model UNIQUE
0 min < 0.1% 0 ms 42,089 odoo
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id=m.id)
                    WHERE m.model=$1 AND r.active AND r.perm_read
                    AND (r.id IN (SELECT rule_group_id FROM rule_group_rel rg
                                  JOIN res_groups_users_rel gu ON (rg.group_id=gu.gid)
                                  WHERE gu.uid=$2)
                         OR r.global)
0 min < 0.1% 0 ms 2,132,265 odoo
SELECT "mrp_production".id FROM "mrp_production" WHERE $1 ORDER BY "mrp_production"."id"
0 min < 0.1% 0 ms 114,294 odoo
SELECT "bus_presence".id FROM "bus_presence" WHERE ("bus_presence"."user_id" = $1) ORDER BY "bus_presence"."id"   limit $2
0 min < 0.1% 0 ms 197,373 odoo
SELECT "product_product"."id" as "id" FROM "product_product" WHERE "product_product".id IN ($1, $2)
Covered by index on (id)
Rows: 1540718
Row progression: 1540718, 1

Row estimates
- id (=): 1

Existing indexes
- id PRIMARY
- barcode UNIQUE
- default_code
- product_tmpl_id
- product_tmpl_id, default_code
0 min < 0.1% 0 ms 104,574 odoo
SELECT "stock_move".id FROM "stock_move" LEFT JOIN "stock_picking" as "stock_move__picking_id" ON ("stock_move"."picking_id" = "stock_move__picking_id"."id") WHERE (("stock_move"."scrapped" IS NULL or "stock_move"."scrapped" = $1 )  AND  ("stock_move"."production_id" in ($2))) ORDER BY "stock_move__picking_id"."priority" DESC,"stock_move__picking_id"."date" ASC,"stock_move__picking_id"."id" DESC,"stock_move"."sequence" ,"stock_move"."id"
0 min < 0.1% 0 ms 376,741 odoo
SELECT mail_message_mail_channel_rel.mail_message_id, mail_message_mail_channel_rel.mail_channel_id FROM mail_message_mail_channel_rel, "mail_channel"
                    WHERE $1=$2 AND mail_message_mail_channel_rel.mail_message_id IN ($3) AND mail_message_mail_channel_rel.mail_channel_id = mail_channel.id
                     ORDER BY "mail_channel"."id"    OFFSET $4
0 min < 0.1% 0 ms 329,927 odoo
SELECT password, password_crypt FROM res_users WHERE id=$1 AND active