|
5,895 min
64%
|
18 ms
|
19,364,365
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: 9071678
Row progression: 9071678, 755973, 251991
Row estimates
- name (=): 755973
- state (=): 3023893
- date_created (sort): 24
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,518 min
28%
|
14 ms
|
10,665,746
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: 9071678
Row progression: 9071678, 755973, 251991
Row estimates
- name (=): 755973
- state (=): 3023893
- date_created (sort): 24
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
|
|
284 min
3%
|
2 ms
|
8,052,267
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: 7358
Row progression: 7358, 1
Row estimates
- move_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
|
|
82 min
0.9%
|
0 ms
|
164,753,811
odoo
|
DISCARD ALL
|
|
41 min
0.5%
|
0 ms
|
144,501,366
odoo
|
SELECT id FROM "product_category" WHERE id IN ($1)
|
|
41 min
0.5%
|
0 ms
|
79,622,837
odoo
|
SELECT base_registry_signaling.last_value,
base_cache_signaling.last_value
FROM base_registry_signaling, base_cache_signaling
|
|
26 min
0.3%
|
3 ms
|
589,060
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: 7358
Row progression: 7358, 1
Row estimates
- scrap_ticket_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
|
|
21 min
0.2%
|
0 ms
|
2,526,418
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
|
|
18 min
0.2%
|
0 ms
|
169,399,404
odoo
|
BEGIN ISOLATION LEVEL REPEATABLE READ
|
|
13 min
0.1%
|
0 ms
|
3,422,702
odoo
|
SELECT "stock_location".id FROM "stock_location" WHERE ("stock_location"."parent_right" >= $1) ORDER BY "stock_location"."parent_left"
|
|
11 min
0.1%
|
0 ms
|
3,422,702
odoo
|
SELECT "stock_location".id FROM "stock_location" WHERE ("stock_location"."parent_left" <= $1) ORDER BY "stock_location"."parent_left"
|
|
10 min
0.1%
|
19 ms
|
33,074
odoo
|
SELECT "kitchen_ticket".id FROM "kitchen_ticket" WHERE ("kitchen_ticket"."transfer_id" in ($1)) ORDER BY "kitchen_ticket"."id"
Details
CREATE INDEX CONCURRENTLY ON kitchen_ticket (transfer_id)
Rows: 79293
Row progression: 79293, 1
Row estimates
- transfer_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- name
- order_id
- state
|
|
10 min
0.1%
|
0 ms
|
25,144,199
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: 189580
Row progression: 189580, 1
Row estimates
- move_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- move_id
- name
- state
|
|
10 min
0.1%
|
0 ms
|
19,498,400
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: 6232814
Row progression: 6232814, 1
Row estimates
- move_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
|
|
10 min
0.1%
|
0 ms
|
10,308,024
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: 734
Row progression: 734, 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
|
|
9 min
< 0.1%
|
33 ms
|
16,031
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: 55857
Row progression: 55857, 13964, 0
Row estimates
- state (=): 13964
- create_date (sort): 1
Existing indexes
- id PRIMARY
|
|
9 min
< 0.1%
|
0 ms
|
3,631,043
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
|
|
7 min
< 0.1%
|
30 ms
|
14,507
odoo
|
UPDATE "stock_move" SET "is_done"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
|
7 min
< 0.1%
|
18 ms
|
24,017
odoo
|
INSERT INTO "mail_message" ("id", "parent_id", "message_type", "message_id", "reply_to", "res_id", "author_id", "email_from", "model", "no_auto_thread", "body", "subject", "date", "subtype_id", "record_name", "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, (now() at time zone $18), (now() at time zone $19)) RETURNING id
|
|
7 min
< 0.1%
|
848 ms
|
468
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"
|
|
7 min
< 0.1%
|
0 ms
|
15,171,152
odoo
|
SELECT DISTINCT "purchase_line_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
|
6 min
< 0.1%
|
0 ms
|
14,049,423
odoo
|
SELECT DISTINCT "picking_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
|
6 min
< 0.1%
|
308 ms
|
1,219
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"
|
|
6 min
< 0.1%
|
0 ms
|
12,812,538
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"
|
|
5 min
< 0.1%
|
0 ms
|
3,342,549
odoo
|
select nextval($1)
|
|
5 min
< 0.1%
|
0 ms
|
10,528,600
odoo
|
SELECT DISTINCT "move_id" FROM "stock_move_line" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6232814
Row progression: 6232814, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
|
|
5 min
< 0.1%
|
26 ms
|
10,271
odoo
|
INSERT INTO "mail_message" ("id", "res_id", "reply_to", "date", "parent_id", "message_type", "email_from", "model", "body", "record_name", "subtype_id", "subject", "author_id", "message_id", "no_auto_thread", "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, (now() at time zone $18), (now() at time zone $19)) RETURNING id
|
|
4 min
< 0.1%
|
21 ms
|
11,296
odoo
|
SELECT "material_requisition".id FROM "material_requisition" WHERE ("material_requisition"."schedule_id" in ($1)) ORDER BY "material_requisition"."create_date" DESC
Details
CREATE INDEX CONCURRENTLY ON material_requisition (schedule_id)
Rows: 55857
Row progression: 55857, 36
Row estimates
- schedule_id (=): 36
- create_date (sort): 1
Existing indexes
- id PRIMARY
|
|
4 min
< 0.1%
|
6 ms
|
37,968
odoo
|
SELECT "queue_job".id FROM "queue_job" WHERE ("queue_job"."uuid" = $1) ORDER BY "queue_job"."date_created" DESC,"queue_job"."date_done" DESC limit $2
Covered by index on (uuid)
Rows: 9071678
Row progression: 9071678, 1
Row estimates
- uuid (=): 1
- date_created (sort): 24
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
|
|
3 min
< 0.1%
|
1 ms
|
256,195
odoo
|
SELECT COUNT(*) FROM ir_module_module WHERE state LIKE $1
|
|
3 min
< 0.1%
|
0 ms
|
6,738,113
odoo
|
SELECT DISTINCT "raw_material_production_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
|
3 min
< 0.1%
|
0 ms
|
8,555,840
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: 3644698
Row progression: 3644698, 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
|
|
3 min
< 0.1%
|
0 ms
|
6,366,905
odoo
|
SELECT DISTINCT "inventory_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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,097,398
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: 3644698
Row progression: 3644698, 1
Row estimates
- id (=): 1
- priority (sort): 3644698
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
|
294,443
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: 17911
Row progression: 17911, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- name
- state
|
|
2 min
< 0.1%
|
0 ms
|
1,883,765
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: 734
Row progression: 734, 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,796,388
odoo
|
SELECT DISTINCT "production_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
294,452
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: 17911
Row progression: 17911, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- name
- state
|
|
2 min
< 0.1%
|
0 ms
|
82,318,083
odoo
|
COMMIT
|
|
2 min
< 0.1%
|
0 ms
|
3,122,230
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
|
662,269
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"
|
|
2 min
< 0.1%
|
0 ms
|
7,280,152
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: 439491
Row progression: 439491, 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
|
|
2 min
< 0.1%
|
0 ms
|
1,705,077
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: 30383
Row progression: 30383, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- company_id
- name
|
|
1 min
< 0.1%
|
0 ms
|
294,458
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: 17911
Row progression: 17911, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- name
- state
|
|
1 min
< 0.1%
|
0 ms
|
87,079,137
odoo
|
ROLLBACK
|
|
1 min
< 0.1%
|
0 ms
|
1,068,670
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%
|
0 ms
|
294,658
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: 6232814
Row progression: 6232814, 3
Row estimates
- picking_id (=): 3
Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
|
|
1 min
< 0.1%
|
0 ms
|
485,794
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: 1540846
Row progression: 1540846, 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%
|
1,411 ms
|
46
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"
|
|
1 min
< 0.1%
|
0 ms
|
2,249,031
odoo
|
SELECT DISTINCT "origin_returned_move_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
2,249,031
odoo
|
SELECT DISTINCT "workorder_id" FROM "stock_move" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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
|
859,340
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
|
11,964,336
odoo
|
SELECT "purchase_order".id FROM "purchase_order" WHERE $1 ORDER BY "purchase_order"."id"
|
|
1 min
< 0.1%
|
0 ms
|
1,443,906
odoo
|
SELECT "stock_picking"."id" as "id" FROM "stock_picking" WHERE "stock_picking".id IN ($1)
Covered by index on (id)
Rows: 3644698
Row progression: 3644698, 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
|
|
1 min
< 0.1%
|
0 ms
|
8,526,569
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
|
574,283
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: 1540846
Row progression: 1540846, 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
|
603,334
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)
|
|
1 min
< 0.1%
|
0 ms
|
4,961,776
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: 439491
Row progression: 439491, 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
|
256,195
odoo
|
SELECT latest_version FROM ir_module_module WHERE name=$1
|
|
1 min
< 0.1%
|
0 ms
|
7,739,893
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: 192636
Row progression: 192636, 1
Row estimates
- id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- date_planned
- order_id
|
|
1 min
< 0.1%
|
0 ms
|
1,234,028
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: 6232814
Row progression: 6232814, 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
|
6,366,938
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: 72614
Row progression: 72614, 1
Row estimates
- id (=): 1
- date (sort): 1
Existing indexes
- id PRIMARY
- company_id
- state
|
|
1 min
< 0.1%
|
0 ms
|
357,443
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: 30383
Row progression: 30383, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- company_id
- name
|
|
1 min
< 0.1%
|
0 ms
|
556,304
odoo
|
SELECT "product_template"."id" as "id" FROM "product_template" WHERE "product_template".id IN ($1, $2)
Covered by index on (id)
Rows: 30383
Row progression: 30383, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- company_id
- name
|
|
0 min
< 0.1%
|
0 ms
|
6,312,540
odoo
|
SELECT "stock_inventory_line".id FROM "stock_inventory_line" WHERE $1 ORDER BY "stock_inventory_line"."id"
|
|
0 min
< 0.1%
|
0 ms
|
294,633
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
|
795,818
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%
|
2 ms
|
10,850
odoo
|
UPDATE "stock_move_line" SET "state"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 6232814
Row progression: 6232814, 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
|
297,074
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%
|
5 ms
|
4,365
odoo
|
UPDATE "stock_move" SET "state"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 6328394
Row progression: 6328394, 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%
|
2 ms
|
11,306
odoo
|
UPDATE "queue_job" SET "channel"=$1 WHERE id IN ($2)
Covered by index on (id)
Rows: 9071678
Row progression: 9071678, 1
Row estimates
- id (=): 1
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
|
|
0 min
< 0.1%
|
0 ms
|
256,195
odoo
|
SELECT * FROM ir_cron
WHERE numbercall != $1
AND active AND nextcall <= (now() at time zone $2)
ORDER BY priority
|
|
0 min
< 0.1%
|
1 ms
|
24,353
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
|
|
0 min
< 0.1%
|
1 ms
|
21,393
odoo
|
UPDATE "stock_move_line" SET "move_line_processed"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 6232814
Row progression: 6232814, 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
|
3,499,644
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
|
15,324
odoo
|
UPDATE "queue_job" SET "identity_key"=$1,"date_enqueued"=$2,"date_started"=$3,"company_id"=$4,"exc_info"=$5,"eta"=$6,"max_retries"=$7,"state"=$8,"result"=$9,"priority"=$10,"user_id"=$11,"retry"=$12,"date_done"=$13 WHERE id IN ($14)
Covered by index on (id)
Rows: 9071678
Row progression: 9071678, 1
Row estimates
- id (=): 1
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
|
|
0 min
< 0.1%
|
0 ms
|
279,031
odoo
|
SELECT "product_product"."id" as "id" FROM "product_product" WHERE "product_product".id IN ($1, $2)
Covered by index on (id)
Rows: 1540846
Row progression: 1540846, 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
|
224,229
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: 553732
Row progression: 553732, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- name, product_id UNIQUE
|
|
0 min
< 0.1%
|
0 ms
|
4,300,014
odoo
|
SELECT "swk_production_ticket".id FROM "swk_production_ticket" WHERE $1 ORDER BY "swk_production_ticket"."id"
|
|
0 min
< 0.1%
|
0 ms
|
531,077
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: 6232814
Row progression: 6232814, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
|
|
0 min
< 0.1%
|
2 ms
|
8,215
odoo
|
UPDATE "stock_move_line" SET "product_qty"=$1,"write_uid"=$2,"write_date"=(now() at time zone $3) WHERE id IN ($4)
Covered by index on (id)
Rows: 6232814
Row progression: 6232814, 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
|
251,175
odoo
|
SELECT "material_requisition"."id" as "id","material_requisition"."schedule_id" as "schedule_id" FROM "material_requisition" WHERE "material_requisition".id IN ($1)
Covered by index on (id)
Rows: 55857
Row progression: 55857, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
|
|
0 min
< 0.1%
|
0 ms
|
377,411
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%
|
1 ms
|
27,933
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
|
|
0 min
< 0.1%
|
0 ms
|
741,707
odoo
|
SELECT DISTINCT "scrap_ticket_id" FROM "stock_scrap" WHERE "id" IN ($1)
Covered by index on (id)
Rows: 7358
Row progression: 7358, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
|
|
0 min
< 0.1%
|
517 ms
|
31
odoo
|
SELECT min("stock_move".id) AS id, count("stock_move".id) AS "product_id_count" , sum("stock_move"."product_qty") AS "product_qty" ,"stock_move"."product_id" as "product_id"
FROM "stock_location" as "stock_move__location_id","stock_location" as "stock_move__location_dest_id","stock_move"
WHERE ("stock_move"."location_dest_id"="stock_move__location_dest_id"."id" AND "stock_move"."location_id"="stock_move__location_id"."id") AND ((((("stock_move"."state" not in ($1,$2,$3)) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in ($4))) AND ((("stock_move__location_id"."parent_left" >= $5) AND ("stock_move__location_id"."parent_left" < $6)) OR (("stock_move__location_id"."parent_left" >= $7) AND ("stock_move__location_id"."parent_left" < $8)))) AND ((("stock_move__location_dest_id"."parent_left" < $9) OR ("stock_move__location_dest_id"."parent_left" >= $10)) AND (("stock_move__location_dest_id"."parent_left" < $11) OR ("stock_move__location_dest_id"."parent_left" >= $12)))) AND ("stock_move"."location_dest_id"="stock_move__location_dest_id"."id") AND (("stock_move"."company_id" IS NULL OR ("stock_move"."company_id" in ($13))) OR "stock_move__location_dest_id"."company_id" IS NULL )
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
|
0 min
< 0.1%
|
0 ms
|
589,044
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: 17911
Row progression: 17911, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- name
- state
|
|
0 min
< 0.1%
|
0 ms
|
741,707
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: 17911
Row progression: 17911, 1
Row estimates
- id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- name
- state
|
|
0 min
< 0.1%
|
2 ms
|
7,648
odoo
|
INSERT INTO "queue_job" ("id", "uuid", "date_done", "state", "identity_key", "result", "model_name", "user_id", "max_retries", "company_id", "date_enqueued", "date_created", "failed_once", "args", "name", "date_started", "eta", "method_name", "kwargs", "exc_info", "record_ids", "priority", "retry") 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) RETURNING id
|
|
0 min
< 0.1%
|
0 ms
|
213,440
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: 6232814
Row progression: 6232814, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- move_id
- picking_id
- product_id, state
- product_qty, move_id
|
|
0 min
< 0.1%
|
3 ms
|
3,624
odoo
|
INSERT INTO "stock_move_line" ("id", "product_uom_qty", "product_uom_id", "location_dest_id", "product_id", "qty_done", "package_id", "move_line_processed", "done_wo", "location_processed", "owner_id", "location_id", "done_move", "date", "move_id", "lot_id", "picking_id", "ordered_qty", "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, (now() at time zone $21), (now() at time zone $22)) RETURNING id
|
|
0 min
< 0.1%
|
0 ms
|
649,908
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%
|
5 ms
|
2,433
odoo
|
SELECT "mrp_bom".id FROM "mrp_bom" LEFT JOIN "product_product" as "mrp_bom__product_id" ON ("mrp_bom"."product_id" = "mrp_bom__product_id"."id") WHERE ((("mrp_bom"."active" = $1) AND (("mrp_bom"."product_id" = $2) OR ("mrp_bom"."product_id" IS NULL AND ("mrp_bom"."product_tmpl_id" = $3)))) AND ("mrp_bom"."company_id" = $4)) ORDER BY "mrp_bom"."sequence" ,"mrp_bom__product_id"."default_code" ,"mrp_bom__product_id"."id" limit $5
|
|
0 min
< 0.1%
|
1 ms
|
11,316
odoo
|
UPDATE "queue_job" SET "func_string"=$1 WHERE id IN ($2)
Covered by index on (id)
Rows: 9071678
Row progression: 9071678, 1
Row estimates
- id (=): 1
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
|
|
0 min
< 0.1%
|
0 ms
|
2,249,064
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
|
22,298
odoo
|
UPDATE "stock_quant" SET "commissary_reserved"=$1,"commissary_quantity"= $2,"write_uid"=$3,"write_date"=(now() at time zone $4) WHERE id IN ($5)
Covered by index on (id)
Rows: 1119461
Row progression: 1119461, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- location_id, lot_id, quantity
- lot_id
- product_id, location_id, lot_id
|
|
0 min
< 0.1%
|
0 ms
|
2,249,065
odoo
|
SELECT "mrp_production".id FROM "mrp_production" WHERE $1 ORDER BY "mrp_production"."id"
|
|
0 min
< 0.1%
|
314 ms
|
31
odoo
|
SELECT min("stock_move".id) AS id, count("stock_move".id) AS "product_id_count" , sum("stock_move"."product_qty") AS "product_qty" ,"stock_move"."product_id" as "product_id"
FROM "stock_location" as "stock_move__location_dest_id","stock_location" as "stock_move__location_id","stock_move"
WHERE ("stock_move"."location_dest_id"="stock_move__location_dest_id"."id" AND "stock_move"."location_id"="stock_move__location_id"."id") AND ((((("stock_move"."state" not in ($1,$2,$3)) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in ($4))) AND ((("stock_move__location_dest_id"."parent_left" >= $5) AND ("stock_move__location_dest_id"."parent_left" < $6)) OR (("stock_move__location_dest_id"."parent_left" >= $7) AND ("stock_move__location_dest_id"."parent_left" < $8)))) AND ((("stock_move__location_id"."parent_left" < $9) OR ("stock_move__location_id"."parent_left" >= $10)) AND (("stock_move__location_id"."parent_left" < $11) OR ("stock_move__location_id"."parent_left" >= $12)))) AND ("stock_move"."location_dest_id"="stock_move__location_dest_id"."id") AND (("stock_move"."company_id" IS NULL OR ("stock_move"."company_id" in ($13))) OR "stock_move__location_dest_id"."company_id" IS NULL )
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
|
0 min
< 0.1%
|
0 ms
|
28,538
odoo
|
SELECT "stock_location".id FROM "stock_location" WHERE ("stock_location"."parent_right" >= $1) AND ("stock_location"."company_id" IS NULL OR ("stock_location"."company_id" in ($2))) ORDER BY "stock_location"."parent_left"
|
|
0 min
< 0.1%
|
0 ms
|
245,768
odoo
|
SELECT "production_schedule"."id" as "id","production_schedule"."write_uid" as "write_uid","production_schedule"."write_date" as "write_date","production_schedule"."name" as "name","production_schedule"."create_uid" as "create_uid","production_schedule"."create_date" as "create_date","production_schedule"."state" as "state" FROM "production_schedule" WHERE "production_schedule".id IN ($1)
Covered by index on (id)
Rows: 1649
Row progression: 1649, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
|