163,447 min
36%
|
6,878 ms
|
1,425,787
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"."raw_material_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"
|
43,736 min
10%
|
1,477 ms
|
1,777,019
odoo
|
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."state" = $1) AND ("queue_job"."date_created" > $2)) AND ("queue_job"."name" in ($3,$4,$5,$6,$7))) ORDER BY "queue_job"."date_created"
Covered by index on (name, date_created)
Rows: 2119084
Row progression: 2119084, 117727, 11773
Row estimates
- name (=): 117727
- date_created (>): 211909
- state (=): 529771
- date_created (sort): 3
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)
- name, date_created
- state
- uuid
|
41,135 min
9%
|
6,118 ms
|
403,392
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"
|
36,830 min
8%
|
1,170 ms
|
1,888,248
odoo
|
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."state" = $1) AND ("queue_job"."date_created" > $2)) AND (("queue_job"."name" not in ($3,$4,$5,$6,$7,$8,$9)) OR "queue_job"."name" IS NULL)) ORDER BY "queue_job"."date_created"
|
25,714 min
6%
|
357,635 ms
|
4,314
odoo
|
SELECT "sale_order".id FROM "sale_order" WHERE (("sale_order"."warehouse_id" = $1) AND ("sale_order"."fo_state" = $2)) ORDER BY "sale_order"."date_order" ASC limit $3
Details
CREATE INDEX CONCURRENTLY ON sale_order (warehouse_id, fo_state)
Rows: 881291
Row progression: 881291, 36720, 9180
Row estimates
- warehouse_id (=): 36720
- fo_state (=): 220323
- date_order (sort): 1
Existing indexes
- id PRIMARY
- brand_id
- code
- confirmation_date
- create_date
- date_order
- deliverect_id UNIQUE
- dh_token UNIQUE
- fo_state
- instashop_id UNIQUE
- name
- partner_id
- platform_id
- state
- user_id
- zomato_id UNIQUE
|
10,448 min
2%
|
13,463 ms
|
46,561
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"."sale_line_id" in ($1,$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"
|
9,444 min
2%
|
90 ms
|
6,298,703
odoo
|
SELECT "stock_scrap".id FROM "stock_scrap" WHERE ("stock_scrap"."scrap_ticket_id" in ($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,$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,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927,$928,$929,$930,$931,$932,$933,$934,$935,$936,$937,$938,$939,$940,$941,$942,$943,$944,$945,$946,$947,$948,$949,$950,$951,$952,$953,$954,$955,$956,$957,$958,$959,$960,$961,$962,$963,$964,$965,$966,$967,$968,$969,$970,$971,$972,$973,$974,$975,$976,$977,$978,$979,$980,$981,$982,$983,$984,$985,$986,$987,$988,$989,$990,$991,$992,$993,$994,$995,$996,$997,$998,$999,$1000)) ORDER BY "stock_scrap"."id" DESC
Details
CREATE INDEX CONCURRENTLY ON stock_scrap (scrap_ticket_id)
Rows: 124184
Row progression: 124184, 1
Row estimates
- scrap_ticket_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- move_id
- product_id
|
9,204 min
2%
|
13,891 ms
|
39,757
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"."sale_line_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"
|
8,193 min
2%
|
888,937 ms
|
553
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 ('done','cancel','draft')) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in (887148,1004893,1004894,1029147,1006438,889236,889239,889242,889278,889310,889350,889369,1006704,889555,889570,1007671,889638,1007674,1007776,981124,889650,1007785,981128,889675,889680,889687,889696,981201,981203,981205,981210,890123,890131,890142,890149,890152,1029834,981255,890165,1029837,1029836,890419,890430,890468,981281,890479,981284,981287,981322,981324,981325,981327,981328,981463,981464,1010202,981488,890979,1030052,890987,981542,981563,981565,981569,981571,981573,981577,892007,981849,982059,982108,1030732,1030734,1030840,982211,1030846,982237,982243,1030851,982245,1030856,1030857,1030852,982343,1030933,900718,901024,1031692,982454,901418,982518,1017680,1017683,1018612,1018613,902460,1018626,982582,982642,1018677,982656,982694,1029125,983195,983197,1018755,983247,983253,983258,970151,1018768,983271,983288,1018788,1018794,983365,983372,983387,983388,983396,983404,1034514,983406,1034516,1034515,1034518,983416,1034519,1034517,983432,1018823,983486,1018844,983638,905268,1018847,1018848,1018849,983646,1018850,983647,983711,983778,983823,1018883,983841,1018922,1018929,1018930,1019052,1019097,1019110,1019128,1019133,1019135,1019136,1019137,1019138,1019145,1019146,767640,1019149,910992,1019159,1019166,1019170,1019177,1019178,1019181,1019183,1019184,1019185,1019186,1019213,1019214,1019329,1019340,1019352,1019367,1019376,1019381,1019446,1019447,1019450,1019493,1019510,1019520,1019524,1019531,1019534,1021881,1021882,1038841,984296,1039562,1021885,1039566,984309,1039565,984324,1039571,1039619,1039821,1039820,1039824,1040080,1040081,1040084,1040089,1040461,1040462,1040463,1021891,1040476,1040477,1043782,1021894,1045218,1045238,1045239,984620,1045824,984795,1050330,1050443,1050507,1050519,985158,985162,985169,985184,985385,985523,985534,1052538,985677,1052745,985696,985735,1053004,1053006,1053007,985749,985753,985756,985759,1053027,985763,1053030,1053031,985772,1053356,1053358,1053359,1053361,1053579,1053580,1053584,1053587,1053590,985877,985887,1053600,985907,1053692,1053693,1053950,986080,986120,1054034,1054036,1054038,1054039,986489,986699,986700,986701,986703,986704,979343,986705,986975,986981,987057,987058,987370,987372,987373,987637,979383,988157,979411,988880,989752,990840,991769,878758,878983,878990,979671,879786,879833,879841,926511,993599,993644,993995,879934,994060,880883,880888,881344,881345,881347,979821,979825,979829,979836,979838,881420,881738,881751,881781,979885,994506,930548,881838,881844,994533,994547,882282,882287,994688,994693,994699,994704,994714,994715,882986,883022,995565,1020400,1021470,995892,1021475,1021481,996654,1021483,1021482,1021485,1021486,883071,996881,1021495,1021498,1021499,1021500,1021501,996892,1021508,996896,1021517,1021873,1021874,1021875,1021876,1021877,1021878,1021879,1021880,980438,980435,1021883,1021884,996925,1021886,1021887,1021888,980455,1021890,1021889,1021892,1021893,980457,1021895,980463,1021897,1021896,1021899,1021900,1021901,997835,1021902,1021904,1021905,1021903,980489,885705,1021906,1022151,1022518,1022519,1022520,1022522,1022523,886249,1022525,1022527,1022528,1022529,1022530,1022531,1022532,1022533,1022534,1022535,1022536,1022537,1022538,1022539,1022540,886272,1022542,1022547,1022548,1022551,1022552,886312,1022555,886303,1022541,1022559,1022560,1022561,1022558,1022557,1022695,980547,1022781,1022823,1022868,1022869,1022598,1022922,1022953,886461,1022965,886555,1022970,1022971,1022969,1022973,1022974,1022975,1022976,1023017,1023020,1023021,1023022,1022972,1023024,1023025,1023026,1023027,1023028,1023029,1023067,1023071,1023195,1023205,1023207,1023208,1023261,1023262,1023263,1023265,1023425,1023583,1023587,1023590,1023603,1023604,1023605,980656,1023607,1023609,1023608,1023612,1023616,1023618,1023619,1023620,1023621,980679,980660,980676,1023630,1023631,1023632,1023633,1023636,980694,1023639,1023640,1023644,1023645,887342,1023648,1023647,1023655,1023657,1023793,1023794,1023804,1023808,1023814,1023817,887389,1023825,1023849,1023850,1023852,1023920,1024016,1024060,980760,1000097,1024106,1024110,1024111,1024112,1024109,999913,1024260,1024278,1000716,1024280,1024281,1024288,1024290,1024292,1024300,1024316,1024328,1024329,887456,1024331,1024340,1024339,980862,1001036,1024360,1024367,1024384,1024385,980866,1024369,980873,1025274,980881,1026913,1027084,1027103,1027270,1027362,1028061,980892,1028076,1028077,980896,980899,980902,888006,1028133,1028135,1028136,1028138,1028139,1028149,1028150,980924,980925,980931,888068,1028573,1002460,980938,1002668,1028729,888180,888185,1004889,1004890,1004891,1004892))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= 192) AND ("stock_move__location_id"."parent_left" < 193)) OR (("stock_move__location_id"."parent_left" >= 196) AND ("stock_move__location_id"."parent_left" < 197))) OR (("stock_move__location_id"."parent_left" >= 208) AND ("stock_move__location_id"."parent_left" < 209))) OR (("stock_move__location_id"."parent_left" >= 220) AND ("stock_move__location_id"."parent_left" < 221))) OR (("stock_move__location_id"."parent_left" >= 232) AND ("stock_move__location_id"."parent_left" < 233))) OR (("stock_move__location_id"."parent_left" >= 244) AND ("stock_move__location_id"."parent_left" < 245))) OR (("stock_move__location_id"."parent_left" >= 412) AND ("stock_move__location_id"."parent_left" < 413))) OR (("stock_move__location_id"."parent_left" >= 522) AND ("stock_move__location_id"."parent_left" < 523))) OR (("stock_move__location_id"."parent_left" >= 534) AND ("stock_move__location_id"."parent_left" < 535))) OR (("stock_move__location_id"."parent_left" >= 546) AND ("stock_move__location_id"."parent_left" < 547))) OR (("stock_move__location_id"."parent_left" >= 558) AND ("stock_move__location_id"."parent_left" < 559))) OR (("stock_move__location_id"."parent_left" >= 570) AND ("stock_move__location_id"."parent_left" < 571))) OR (("stock_move__location_id"."parent_left" >= 594) AND ("stock_move__location_id"."parent_left" < 595))) OR (("stock_move__location_id"."parent_left" >= 664) AND ("stock_move__location_id"."parent_left" < 665)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < 192) OR ("stock_move__location_dest_id"."parent_left" >= 193)) AND (("stock_move__location_dest_id"."parent_left" < 196) OR ("stock_move__location_dest_id"."parent_left" >= 197))) AND (("stock_move__location_dest_id"."parent_left" < 208) OR ("stock_move__location_dest_id"."parent_left" >= 209))) AND (("stock_move__location_dest_id"."parent_left" < 220) OR ("stock_move__location_dest_id"."parent_left" >= 221))) AND (("stock_move__location_dest_id"."parent_left" < 232) OR ("stock_move__location_dest_id"."parent_left" >= 233))) AND (("stock_move__location_dest_id"."parent_left" < 244) OR ("stock_move__location_dest_id"."parent_left" >= 245))) AND (("stock_move__location_dest_id"."parent_left" < 412) OR ("stock_move__location_dest_id"."parent_left" >= 413))) AND (("stock_move__location_dest_id"."parent_left" < 522) OR ("stock_move__location_dest_id"."parent_left" >= 523))) AND (("stock_move__location_dest_id"."parent_left" < 534) OR ("stock_move__location_dest_id"."parent_left" >= 535))) AND (("stock_move__location_dest_id"."parent_left" < 546) OR ("stock_move__location_dest_id"."parent_left" >= 547))) AND (("stock_move__location_dest_id"."parent_left" < 558) OR ("stock_move__location_dest_id"."parent_left" >= 559))) AND (("stock_move__location_dest_id"."parent_left" < 570) OR ("stock_move__location_dest_id"."parent_left" >= 571))) AND (("stock_move__location_dest_id"."parent_left" < 594) OR ("stock_move__location_dest_id"."parent_left" >= 595))) AND (("stock_move__location_dest_id"."parent_left" < 664) OR ("stock_move__location_dest_id"."parent_left" >= 665))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
8,119 min
2%
|
17,239 ms
|
28,259
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"."sale_line_id" in ($1,$2,$3)) 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"
|
7,658 min
2%
|
4,617 ms
|
99,526
odoo
|
SELECT "product_product".id FROM "product_template" as "product_product__product_tmpl_id","product_product" WHERE ("product_product"."product_tmpl_id"="product_product__product_tmpl_id"."id") AND ((("product_product"."active" = $1) AND ("product_product__product_tmpl_id"."id" in (WITH temp_irt_current (id, name) as (
SELECT ct.id, coalesce(it.value,ct."name")
FROM product_template ct
LEFT JOIN ir_translation it ON (it.name = $2 and
it.lang = $3 and
it.type = $4 and
it.res_id = ct.id and
it.value != $5)
)
SELECT id FROM temp_irt_current WHERE name ilike $6 order by name
))) AND ($7 OR "product_product"."id" IS NULL)) ORDER BY "product_product"."default_code" ,"product_product"."id" limit $8
|
6,904 min
2%
|
34 ms
|
12,308,830
odoo
|
SELECT "mail_message"."id" as "id" FROM "mail_message" WHERE "mail_message".id IN ($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, $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, $363, $364, $365, $366, $367, $368, $369, $370, $371, $372, $373, $374, $375, $376, $377, $378, $379, $380, $381, $382, $383, $384, $385, $386, $387, $388, $389, $390, $391, $392, $393, $394, $395, $396, $397, $398, $399, $400, $401, $402, $403, $404, $405, $406, $407, $408, $409, $410, $411, $412, $413, $414, $415, $416, $417, $418, $419, $420, $421, $422, $423, $424, $425, $426, $427, $428, $429, $430, $431, $432, $433, $434, $435, $436, $437, $438, $439, $440, $441, $442, $443, $444, $445, $446, $447, $448, $449, $450, $451, $452, $453, $454, $455, $456, $457, $458, $459, $460, $461, $462, $463, $464, $465, $466, $467, $468, $469, $470, $471, $472, $473, $474, $475, $476, $477, $478, $479, $480, $481, $482, $483, $484, $485, $486, $487, $488, $489, $490, $491, $492, $493, $494, $495, $496, $497, $498, $499, $500, $501, $502, $503, $504, $505, $506, $507, $508, $509, $510, $511, $512, $513, $514, $515, $516, $517, $518, $519, $520, $521, $522, $523, $524, $525, $526, $527, $528, $529, $530, $531, $532, $533, $534, $535, $536, $537, $538, $539, $540, $541, $542, $543, $544, $545, $546, $547, $548, $549, $550, $551, $552, $553, $554, $555, $556, $557, $558, $559, $560, $561, $562, $563, $564, $565, $566, $567, $568, $569, $570, $571, $572, $573, $574, $575, $576, $577, $578, $579, $580, $581, $582, $583, $584, $585, $586, $587, $588, $589, $590, $591, $592, $593, $594, $595, $596, $597, $598, $599, $600, $601, $602, $603, $604, $605, $606, $607, $608, $609, $610, $611, $612, $613, $614, $615, $616, $617, $618, $619, $620, $621, $622, $623, $624, $625, $626, $627, $628, $629, $630, $631, $632, $633, $634, $635, $636, $637, $638, $639, $640, $641, $642, $643, $644, $645, $646, $647, $648, $649, $650, $651, $652, $653, $654, $655, $656, $657, $658, $659, $660, $661, $662, $663, $664, $665, $666, $667, $668, $669, $670, $671, $672, $673, $674, $675, $676, $677, $678, $679, $680, $681, $682, $683, $684, $685, $686, $687, $688, $689, $690, $691, $692, $693, $694, $695, $696, $697, $698, $699, $700, $701, $702, $703, $704, $705, $706, $707, $708, $709, $710, $711, $712, $713, $714, $715, $716, $717, $718, $719, $720, $721, $722, $723, $724, $725, $726, $727, $728, $729, $730, $731, $732, $733, $734, $735, $736, $737, $738, $739, $740, $741, $742, $743, $744, $745, $746, $747, $748, $749, $750, $751, $752, $753, $754, $755, $756, $757, $758, $759, $760, $761, $762, $763, $764, $765, $766, $767, $768, $769, $770, $771, $772, $773, $774, $775, $776, $777, $778, $779, $780, $781, $782, $783, $784, $785, $786, $787, $788, $789, $790, $791, $792, $793, $794, $795, $796, $797, $798, $799, $800, $801, $802, $803, $804, $805, $806, $807, $808, $809, $810, $811, $812, $813, $814, $815, $816, $817, $818, $819, $820, $821, $822, $823, $824, $825, $826, $827, $828, $829, $830, $831, $832, $833, $834, $835, $836, $837, $838, $839, $840, $841, $842, $843, $844, $845, $846, $847, $848, $849, $850, $851, $852, $853, $854, $855, $856, $857, $858, $859, $860, $861, $862, $863, $864, $865, $866, $867, $868, $869, $870, $871, $872, $873, $874, $875, $876, $877, $878, $879, $880, $881, $882, $883, $884, $885, $886, $887, $888, $889, $890, $891, $892, $893, $894, $895, $896, $897, $898, $899, $900, $901, $902, $903, $904, $905, $906, $907, $908, $909, $910, $911, $912, $913, $914, $915, $916, $917, $918, $919, $920, $921, $922, $923, $924, $925, $926, $927, $928, $929, $930, $931, $932, $933, $934, $935, $936, $937, $938, $939, $940, $941, $942, $943, $944, $945, $946, $947, $948, $949, $950, $951, $952, $953, $954, $955, $956, $957, $958, $959, $960, $961, $962, $963, $964, $965, $966, $967, $968, $969, $970, $971, $972, $973, $974, $975, $976, $977, $978, $979, $980, $981, $982, $983, $984, $985, $986, $987, $988, $989, $990, $991, $992, $993, $994, $995, $996, $997, $998, $999, $1000)
Covered by index on (id)
Rows: 30997196
Row progression: 30997196, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- author_id
- mail_activity_type_id
- message_id
- model, res_id
- parent_id
- res_id
- subtype_id
|
6,268 min
1%
|
753,726 ms
|
499
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $597) AND ("stock_move__location_id"."parent_left" < $598)) OR (("stock_move__location_id"."parent_left" >= $599) AND ("stock_move__location_id"."parent_left" < $600))) OR (("stock_move__location_id"."parent_left" >= $601) AND ("stock_move__location_id"."parent_left" < $602))) OR (("stock_move__location_id"."parent_left" >= $603) AND ("stock_move__location_id"."parent_left" < $604))) OR (("stock_move__location_id"."parent_left" >= $605) AND ("stock_move__location_id"."parent_left" < $606))) OR (("stock_move__location_id"."parent_left" >= $607) AND ("stock_move__location_id"."parent_left" < $608))) OR (("stock_move__location_id"."parent_left" >= $609) AND ("stock_move__location_id"."parent_left" < $610))) OR (("stock_move__location_id"."parent_left" >= $611) AND ("stock_move__location_id"."parent_left" < $612))) OR (("stock_move__location_id"."parent_left" >= $613) AND ("stock_move__location_id"."parent_left" < $614))) OR (("stock_move__location_id"."parent_left" >= $615) AND ("stock_move__location_id"."parent_left" < $616))) OR (("stock_move__location_id"."parent_left" >= $617) AND ("stock_move__location_id"."parent_left" < $618))) OR (("stock_move__location_id"."parent_left" >= $619) AND ("stock_move__location_id"."parent_left" < $620))) OR (("stock_move__location_id"."parent_left" >= $621) AND ("stock_move__location_id"."parent_left" < $622))) OR (("stock_move__location_id"."parent_left" >= $623) AND ("stock_move__location_id"."parent_left" < $624)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $625) OR ("stock_move__location_dest_id"."parent_left" >= $626)) AND (("stock_move__location_dest_id"."parent_left" < $627) OR ("stock_move__location_dest_id"."parent_left" >= $628))) AND (("stock_move__location_dest_id"."parent_left" < $629) OR ("stock_move__location_dest_id"."parent_left" >= $630))) AND (("stock_move__location_dest_id"."parent_left" < $631) OR ("stock_move__location_dest_id"."parent_left" >= $632))) AND (("stock_move__location_dest_id"."parent_left" < $633) OR ("stock_move__location_dest_id"."parent_left" >= $634))) AND (("stock_move__location_dest_id"."parent_left" < $635) OR ("stock_move__location_dest_id"."parent_left" >= $636))) AND (("stock_move__location_dest_id"."parent_left" < $637) OR ("stock_move__location_dest_id"."parent_left" >= $638))) AND (("stock_move__location_dest_id"."parent_left" < $639) OR ("stock_move__location_dest_id"."parent_left" >= $640))) AND (("stock_move__location_dest_id"."parent_left" < $641) OR ("stock_move__location_dest_id"."parent_left" >= $642))) AND (("stock_move__location_dest_id"."parent_left" < $643) OR ("stock_move__location_dest_id"."parent_left" >= $644))) AND (("stock_move__location_dest_id"."parent_left" < $645) OR ("stock_move__location_dest_id"."parent_left" >= $646))) AND (("stock_move__location_dest_id"."parent_left" < $647) OR ("stock_move__location_dest_id"."parent_left" >= $648))) AND (("stock_move__location_dest_id"."parent_left" < $649) OR ("stock_move__location_dest_id"."parent_left" >= $650))) AND (("stock_move__location_dest_id"."parent_left" < $651) OR ("stock_move__location_dest_id"."parent_left" >= $652))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
4,384 min
1.0%
|
217 ms
|
1,213,758
odoo
|
SELECT "order_dispatch".id FROM "order_dispatch" WHERE ("order_dispatch"."state" = $1) ORDER BY "order_dispatch"."create_date" DESC limit $2
Details
CREATE INDEX CONCURRENTLY ON order_dispatch (state, create_date)
Rows: 109798
Row progression: 109798, 36599, 0
Row estimates
- state (=): 36599
- create_date (sort): 1
Existing indexes
- id PRIMARY
|
4,248 min
0.9%
|
403 ms
|
632,324
odoo
|
SELECT "account_invoice".id FROM "account_invoice" WHERE ((("account_invoice"."origin"::text like $1) AND ("account_invoice"."company_id" = $2)) AND ("account_invoice"."type" in ($3,$4))) ORDER BY "account_invoice"."date_invoice" DESC,"account_invoice"."number" DESC,"account_invoice"."id" DESC
|
4,229 min
0.9%
|
307 ms
|
826,519
odoo
|
DELETE FROM stock_move WHERE id IN ($1)
Covered by index on (id)
Rows: 19794944
Row progression: 19794944, 1
Row estimates
- id (=): 1
Existing indexes
- id PRIMARY
- company_id
- create_date
- created_production_id
- date
- date_expected
- location_id
- name
- origin_returned_move_id
- picking_id, id
- product_id, location_id, location_dest_id, company_id, state
- product_id, location_id, location_dest_id, state
- purchase_line_id
- scrapped
- state
|
3,989 min
0.9%
|
403,574 ms
|
593
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 ('done','cancel','draft')) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in (887148,1004893,1004894,1029147,1006438,889236,889239,889242,889278,889310,889350,889369,1006704,889555,889570,1007671,889638,1007674,1007776,981124,889650,1007785,981128,889675,889680,889687,889696,981201,890089,981203,981205,981210,890123,981224,890129,890131,890142,890149,890152,1029834,981255,890165,1029837,1029836,890419,890430,890468,981281,890479,981284,981287,981322,981324,981325,981327,981328,981463,981464,1010202,981488,890979,1030052,890987,981563,981565,981569,981571,981573,981577,892007,981849,982059,982108,1030732,1030734,1030840,982211,1030846,982237,982243,1030851,982245,1030856,1030857,1030852,982343,1030933,900718,901024,1031692,982454,901418,982518,1017680,1017683,1018612,1018613,902460,1018626,982582,982642,1018677,982656,982694,1029125,983013,983195,983197,1018755,983247,983253,983258,1018768,983271,983288,1018788,983299,1018794,983362,983365,983372,983373,983387,983388,983396,983404,1034514,983406,1034516,1034515,1034518,983416,1034519,1034517,983432,983434,1018823,983486,1018844,983638,905268,1018847,1018848,1018849,983646,1018850,983647,983711,983778,983823,1018883,983841,1018922,1018929,1018930,1019052,1019097,1019110,1019128,1019133,1019135,1019136,1019137,1019138,1019145,1019146,767640,1019149,910992,1019159,1019166,1019170,1019177,1019178,1019181,1019183,1019184,1019185,1019186,984021,1019213,1019214,1019329,911188,1019340,1019352,1019367,1019376,1019381,1019446,1019447,1019450,911251,1019493,1019510,1019520,1019524,1019531,1019534,1021881,1021882,1038841,984296,1039562,1021885,1039566,984309,1039565,984324,1039571,1039619,1039821,1039820,1039824,1040080,1040081,1040084,1040089,1040461,1040462,1040463,1021891,1040476,1040477,1043782,1021894,1045218,1045238,1045239,984620,1045824,984795,1050330,1050443,1050507,1050519,985158,985162,985169,985184,985385,985523,985534,1052538,985677,1052745,985696,985735,1053004,1053006,1053007,985749,985753,985756,985759,1053027,985763,1053030,1053031,985772,1053356,1053358,1053359,1053361,1053579,1053580,1053584,1053587,1053590,985877,985887,1053600,985907,1053692,1053693,1053950,986080,986120,1054034,1054036,1054038,1054039,986489,986699,986700,986701,986703,986704,979343,986705,986975,986981,987057,987058,987370,987372,987373,987637,987805,979383,988157,979411,988880,989752,990840,991769,878758,878820,878983,878990,979671,879786,879826,879833,879841,926511,993599,993644,993995,879934,994060,880883,880888,881344,881345,979821,979825,979829,979830,979836,979838,881420,881738,881751,881781,979885,994506,930548,881838,881844,994533,994547,882282,882287,994688,994693,994699,994704,994714,994715,882568,882986,882999,883000,883005,883022,995565,883048,1020400,1021470,995892,1021475,1021481,996654,1021483,1021482,1021485,1021486,883071,996881,1021495,1021498,1021499,1021500,1021501,996892,1021508,996896,1021517,1021873,1021874,1021875,1021876,1021877,1021878,1021879,1021880,980438,980435,1021883,1021884,996925,1021886,1021887,1021888,980455,1021890,1021889,1021892,1021893,980457,1021895,980463,1021897,1021896,1021899,1021900,1021901,997835,1021902,1021904,1021905,1021903,980489,885705,1021906,1022151,1022518,1022519,1022520,1022522,1022523,886249,1022525,1022527,1022528,1022529,1022530,1022531,1022532,1022533,1022534,1022535,1022536,1022537,1022538,1022539,1022540,886272,1022542,1022547,1022548,1022551,1022552,886312,1022555,886303,1022541,1022559,1022560,1022561,1022558,1022557,1022695,980547,1022781,1022823,1022868,1022869,1022598,1022922,1022953,886461,1022965,886555,1022970,1022971,1022969,1022973,1022974,1022975,1022976,1023017,1023020,1023021,1023022,1022972,1023024,1023025,1023026,1023027,1023028,1023029,1023067,1023071,1023195,1023205,1023207,1023208,1023261,1023262,1023263,1023265,1023425,1023583,1023587,1023590,1023603,1023604,1023605,980656,1023607,1023609,1023608,1023612,1023616,1023618,1023619,1023620,1023621,980679,980660,980676,1023630,1023631,1023632,1023633,1023636,980694,1023639,1023640,1023644,1023645,887342,1023648,1023647,1023655,1023657,1023793,1023794,1023804,1023808,1023814,1023817,887389,1023825,1023849,1023850,1023852,1023920,1024016,1024060,980760,1000097,1024106,1024110,1024111,1024112,1024109,999913,1024260,1024278,1000716,1024280,1024281,1024288,1024290,1024292,1024300,1024316,1024328,1024329,887456,1024331,1024340,1024339,980862,1001036,1024360,1024367,1024384,1024385,980866,1024369,980873,1025274,980881,1026913,1027084,1027103,1027270,1027362,1028061,980892,1028076,1028077,980896,980899,980902,888006,1028133,1028135,1028136,1028138,1028139,1028149,1028150,980924,980925,980931,888068,1028573,1002460,980938,1002668,980957,1028729,888180,888185,1004889,1004890,1004891,1004892))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= 192) AND ("stock_move__location_id"."parent_left" < 193)) OR (("stock_move__location_id"."parent_left" >= 196) AND ("stock_move__location_id"."parent_left" < 197))) OR (("stock_move__location_id"."parent_left" >= 208) AND ("stock_move__location_id"."parent_left" < 209))) OR (("stock_move__location_id"."parent_left" >= 220) AND ("stock_move__location_id"."parent_left" < 221))) OR (("stock_move__location_id"."parent_left" >= 232) AND ("stock_move__location_id"."parent_left" < 233))) OR (("stock_move__location_id"."parent_left" >= 244) AND ("stock_move__location_id"."parent_left" < 245))) OR (("stock_move__location_id"."parent_left" >= 412) AND ("stock_move__location_id"."parent_left" < 413))) OR (("stock_move__location_id"."parent_left" >= 522) AND ("stock_move__location_id"."parent_left" < 523))) OR (("stock_move__location_id"."parent_left" >= 534) AND ("stock_move__location_id"."parent_left" < 535))) OR (("stock_move__location_id"."parent_left" >= 546) AND ("stock_move__location_id"."parent_left" < 547))) OR (("stock_move__location_id"."parent_left" >= 558) AND ("stock_move__location_id"."parent_left" < 559))) OR (("stock_move__location_id"."parent_left" >= 570) AND ("stock_move__location_id"."parent_left" < 571))) OR (("stock_move__location_id"."parent_left" >= 594) AND ("stock_move__location_id"."parent_left" < 595))) OR (("stock_move__location_id"."parent_left" >= 664) AND ("stock_move__location_id"."parent_left" < 665)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < 192) OR ("stock_move__location_dest_id"."parent_left" >= 193)) AND (("stock_move__location_dest_id"."parent_left" < 196) OR ("stock_move__location_dest_id"."parent_left" >= 197))) AND (("stock_move__location_dest_id"."parent_left" < 208) OR ("stock_move__location_dest_id"."parent_left" >= 209))) AND (("stock_move__location_dest_id"."parent_left" < 220) OR ("stock_move__location_dest_id"."parent_left" >= 221))) AND (("stock_move__location_dest_id"."parent_left" < 232) OR ("stock_move__location_dest_id"."parent_left" >= 233))) AND (("stock_move__location_dest_id"."parent_left" < 244) OR ("stock_move__location_dest_id"."parent_left" >= 245))) AND (("stock_move__location_dest_id"."parent_left" < 412) OR ("stock_move__location_dest_id"."parent_left" >= 413))) AND (("stock_move__location_dest_id"."parent_left" < 522) OR ("stock_move__location_dest_id"."parent_left" >= 523))) AND (("stock_move__location_dest_id"."parent_left" < 534) OR ("stock_move__location_dest_id"."parent_left" >= 535))) AND (("stock_move__location_dest_id"."parent_left" < 546) OR ("stock_move__location_dest_id"."parent_left" >= 547))) AND (("stock_move__location_dest_id"."parent_left" < 558) OR ("stock_move__location_dest_id"."parent_left" >= 559))) AND (("stock_move__location_dest_id"."parent_left" < 570) OR ("stock_move__location_dest_id"."parent_left" >= 571))) AND (("stock_move__location_dest_id"."parent_left" < 594) OR ("stock_move__location_dest_id"."parent_left" >= 595))) AND (("stock_move__location_dest_id"."parent_left" < 664) OR ("stock_move__location_dest_id"."parent_left" >= 665))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
3,804 min
0.8%
|
313,518 ms
|
728
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $601) AND ("stock_move__location_id"."parent_left" < $602)) OR (("stock_move__location_id"."parent_left" >= $603) AND ("stock_move__location_id"."parent_left" < $604))) OR (("stock_move__location_id"."parent_left" >= $605) AND ("stock_move__location_id"."parent_left" < $606))) OR (("stock_move__location_id"."parent_left" >= $607) AND ("stock_move__location_id"."parent_left" < $608))) OR (("stock_move__location_id"."parent_left" >= $609) AND ("stock_move__location_id"."parent_left" < $610))) OR (("stock_move__location_id"."parent_left" >= $611) AND ("stock_move__location_id"."parent_left" < $612))) OR (("stock_move__location_id"."parent_left" >= $613) AND ("stock_move__location_id"."parent_left" < $614))) OR (("stock_move__location_id"."parent_left" >= $615) AND ("stock_move__location_id"."parent_left" < $616))) OR (("stock_move__location_id"."parent_left" >= $617) AND ("stock_move__location_id"."parent_left" < $618))) OR (("stock_move__location_id"."parent_left" >= $619) AND ("stock_move__location_id"."parent_left" < $620))) OR (("stock_move__location_id"."parent_left" >= $621) AND ("stock_move__location_id"."parent_left" < $622))) OR (("stock_move__location_id"."parent_left" >= $623) AND ("stock_move__location_id"."parent_left" < $624))) OR (("stock_move__location_id"."parent_left" >= $625) AND ("stock_move__location_id"."parent_left" < $626))) OR (("stock_move__location_id"."parent_left" >= $627) AND ("stock_move__location_id"."parent_left" < $628)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $629) OR ("stock_move__location_dest_id"."parent_left" >= $630)) AND (("stock_move__location_dest_id"."parent_left" < $631) OR ("stock_move__location_dest_id"."parent_left" >= $632))) AND (("stock_move__location_dest_id"."parent_left" < $633) OR ("stock_move__location_dest_id"."parent_left" >= $634))) AND (("stock_move__location_dest_id"."parent_left" < $635) OR ("stock_move__location_dest_id"."parent_left" >= $636))) AND (("stock_move__location_dest_id"."parent_left" < $637) OR ("stock_move__location_dest_id"."parent_left" >= $638))) AND (("stock_move__location_dest_id"."parent_left" < $639) OR ("stock_move__location_dest_id"."parent_left" >= $640))) AND (("stock_move__location_dest_id"."parent_left" < $641) OR ("stock_move__location_dest_id"."parent_left" >= $642))) AND (("stock_move__location_dest_id"."parent_left" < $643) OR ("stock_move__location_dest_id"."parent_left" >= $644))) AND (("stock_move__location_dest_id"."parent_left" < $645) OR ("stock_move__location_dest_id"."parent_left" >= $646))) AND (("stock_move__location_dest_id"."parent_left" < $647) OR ("stock_move__location_dest_id"."parent_left" >= $648))) AND (("stock_move__location_dest_id"."parent_left" < $649) OR ("stock_move__location_dest_id"."parent_left" >= $650))) AND (("stock_move__location_dest_id"."parent_left" < $651) OR ("stock_move__location_dest_id"."parent_left" >= $652))) AND (("stock_move__location_dest_id"."parent_left" < $653) OR ("stock_move__location_dest_id"."parent_left" >= $654))) AND (("stock_move__location_dest_id"."parent_left" < $655) OR ("stock_move__location_dest_id"."parent_left" >= $656))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
3,298 min
0.7%
|
9,157 ms
|
21,609
odoo
|
SELECT distinct("order_id") FROM "sale_order_line" where "order_id" is not null
|
2,542 min
0.6%
|
83,196 ms
|
1,833
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"."sale_line_id" in ($1,$2,$3,$4,$5,$6,$7,$8)) 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"
|
2,486 min
0.6%
|
11,577 ms
|
12,884
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"."sale_line_id" in ($1,$2,$3,$4)) 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"
|
2,315 min
0.5%
|
241,128 ms
|
576
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $625) AND ("stock_move__location_id"."parent_left" < $626)) OR (("stock_move__location_id"."parent_left" >= $627) AND ("stock_move__location_id"."parent_left" < $628))) OR (("stock_move__location_id"."parent_left" >= $629) AND ("stock_move__location_id"."parent_left" < $630))) OR (("stock_move__location_id"."parent_left" >= $631) AND ("stock_move__location_id"."parent_left" < $632))) OR (("stock_move__location_id"."parent_left" >= $633) AND ("stock_move__location_id"."parent_left" < $634))) OR (("stock_move__location_id"."parent_left" >= $635) AND ("stock_move__location_id"."parent_left" < $636))) OR (("stock_move__location_id"."parent_left" >= $637) AND ("stock_move__location_id"."parent_left" < $638))) OR (("stock_move__location_id"."parent_left" >= $639) AND ("stock_move__location_id"."parent_left" < $640))) OR (("stock_move__location_id"."parent_left" >= $641) AND ("stock_move__location_id"."parent_left" < $642))) OR (("stock_move__location_id"."parent_left" >= $643) AND ("stock_move__location_id"."parent_left" < $644))) OR (("stock_move__location_id"."parent_left" >= $645) AND ("stock_move__location_id"."parent_left" < $646))) OR (("stock_move__location_id"."parent_left" >= $647) AND ("stock_move__location_id"."parent_left" < $648))) OR (("stock_move__location_id"."parent_left" >= $649) AND ("stock_move__location_id"."parent_left" < $650))) OR (("stock_move__location_id"."parent_left" >= $651) AND ("stock_move__location_id"."parent_left" < $652)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $653) OR ("stock_move__location_dest_id"."parent_left" >= $654)) AND (("stock_move__location_dest_id"."parent_left" < $655) OR ("stock_move__location_dest_id"."parent_left" >= $656))) AND (("stock_move__location_dest_id"."parent_left" < $657) OR ("stock_move__location_dest_id"."parent_left" >= $658))) AND (("stock_move__location_dest_id"."parent_left" < $659) OR ("stock_move__location_dest_id"."parent_left" >= $660))) AND (("stock_move__location_dest_id"."parent_left" < $661) OR ("stock_move__location_dest_id"."parent_left" >= $662))) AND (("stock_move__location_dest_id"."parent_left" < $663) OR ("stock_move__location_dest_id"."parent_left" >= $664))) AND (("stock_move__location_dest_id"."parent_left" < $665) OR ("stock_move__location_dest_id"."parent_left" >= $666))) AND (("stock_move__location_dest_id"."parent_left" < $667) OR ("stock_move__location_dest_id"."parent_left" >= $668))) AND (("stock_move__location_dest_id"."parent_left" < $669) OR ("stock_move__location_dest_id"."parent_left" >= $670))) AND (("stock_move__location_dest_id"."parent_left" < $671) OR ("stock_move__location_dest_id"."parent_left" >= $672))) AND (("stock_move__location_dest_id"."parent_left" < $673) OR ("stock_move__location_dest_id"."parent_left" >= $674))) AND (("stock_move__location_dest_id"."parent_left" < $675) OR ("stock_move__location_dest_id"."parent_left" >= $676))) AND (("stock_move__location_dest_id"."parent_left" < $677) OR ("stock_move__location_dest_id"."parent_left" >= $678))) AND (("stock_move__location_dest_id"."parent_left" < $679) OR ("stock_move__location_dest_id"."parent_left" >= $680))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
2,306 min
0.5%
|
102,813 ms
|
1,346
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"."sale_line_id" in (13992506,13992507,13992508,13992509,13992510,13992511)) 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"
|
2,117 min
0.5%
|
5,744 ms
|
22,117
odoo
|
SELECT "stock_production_lot".id FROM "stock_production_lot" WHERE ("stock_production_lot"."automatic_scrap" IS NULL or "stock_production_lot"."automatic_scrap" = $1 ) ORDER BY "stock_production_lot"."id"
|
2,078 min
0.5%
|
4,063 ms
|
30,695
odoo
|
SELECT "queue_job".id FROM "queue_job" WHERE ("queue_job"."date_done" <= $1) ORDER BY "queue_job"."date_created" DESC,"queue_job"."date_done" DESC
Details
CREATE INDEX CONCURRENTLY ON queue_job (date_done)
Rows: 2119084
Row progression: 2119084, 161559
Row estimates
- date_done (<=): 161559
- date_created (sort): 3
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)
- name, date_created
- state
- uuid
|
2,018 min
0.4%
|
94 ms
|
1,294,657
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: 124184
Row progression: 124184, 1
Row estimates
- scrap_ticket_id (=): 1
- id (sort): 1
Existing indexes
- id PRIMARY
- move_id
- product_id
|
1,558 min
0.3%
|
375,440 ms
|
249
odoo
|
delete from stock_quant where id in (
select id from (
select q.id, q.product_id, q.in_date, q.lot_id, pt.name, l.complete_name, q.reserved_quantity as reserved, q.quantity as qty
from stock_quant q join product_product p on p.id=q.product_id
join product_template pt on pt.id = p.product_tmpl_id
join stock_location l on l.id = q.location_id
left join stock_move_line sml on sml.product_id=q.product_id and sml.lot_id=q.lot_id and sml.location_id=q.location_id
where q.reserved_quantity >= q.quantity and q.reserved_quantity > 0 and q.lot_id is not null
group by q.id, q.product_id, q.in_date, q.lot_id, pt.name, l.complete_name, q.reserved_quantity, q.quantity
having coalesce(sum(sml.product_qty), 0) = 0
) uni )
|
1,370 min
0.3%
|
90,209 ms
|
911
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $612) AND ("stock_move__location_id"."parent_left" < $613)) OR (("stock_move__location_id"."parent_left" >= $614) AND ("stock_move__location_id"."parent_left" < $615))) OR (("stock_move__location_id"."parent_left" >= $616) AND ("stock_move__location_id"."parent_left" < $617))) OR (("stock_move__location_id"."parent_left" >= $618) AND ("stock_move__location_id"."parent_left" < $619))) OR (("stock_move__location_id"."parent_left" >= $620) AND ("stock_move__location_id"."parent_left" < $621))) OR (("stock_move__location_id"."parent_left" >= $622) AND ("stock_move__location_id"."parent_left" < $623))) OR (("stock_move__location_id"."parent_left" >= $624) AND ("stock_move__location_id"."parent_left" < $625))) OR (("stock_move__location_id"."parent_left" >= $626) AND ("stock_move__location_id"."parent_left" < $627))) OR (("stock_move__location_id"."parent_left" >= $628) AND ("stock_move__location_id"."parent_left" < $629))) OR (("stock_move__location_id"."parent_left" >= $630) AND ("stock_move__location_id"."parent_left" < $631))) OR (("stock_move__location_id"."parent_left" >= $632) AND ("stock_move__location_id"."parent_left" < $633))) OR (("stock_move__location_id"."parent_left" >= $634) AND ("stock_move__location_id"."parent_left" < $635))) OR (("stock_move__location_id"."parent_left" >= $636) AND ("stock_move__location_id"."parent_left" < $637))) OR (("stock_move__location_id"."parent_left" >= $638) AND ("stock_move__location_id"."parent_left" < $639)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $640) OR ("stock_move__location_dest_id"."parent_left" >= $641)) AND (("stock_move__location_dest_id"."parent_left" < $642) OR ("stock_move__location_dest_id"."parent_left" >= $643))) AND (("stock_move__location_dest_id"."parent_left" < $644) OR ("stock_move__location_dest_id"."parent_left" >= $645))) AND (("stock_move__location_dest_id"."parent_left" < $646) OR ("stock_move__location_dest_id"."parent_left" >= $647))) AND (("stock_move__location_dest_id"."parent_left" < $648) OR ("stock_move__location_dest_id"."parent_left" >= $649))) AND (("stock_move__location_dest_id"."parent_left" < $650) OR ("stock_move__location_dest_id"."parent_left" >= $651))) AND (("stock_move__location_dest_id"."parent_left" < $652) OR ("stock_move__location_dest_id"."parent_left" >= $653))) AND (("stock_move__location_dest_id"."parent_left" < $654) OR ("stock_move__location_dest_id"."parent_left" >= $655))) AND (("stock_move__location_dest_id"."parent_left" < $656) OR ("stock_move__location_dest_id"."parent_left" >= $657))) AND (("stock_move__location_dest_id"."parent_left" < $658) OR ("stock_move__location_dest_id"."parent_left" >= $659))) AND (("stock_move__location_dest_id"."parent_left" < $660) OR ("stock_move__location_dest_id"."parent_left" >= $661))) AND (("stock_move__location_dest_id"."parent_left" < $662) OR ("stock_move__location_dest_id"."parent_left" >= $663))) AND (("stock_move__location_dest_id"."parent_left" < $664) OR ("stock_move__location_dest_id"."parent_left" >= $665))) AND (("stock_move__location_dest_id"."parent_left" < $666) OR ("stock_move__location_dest_id"."parent_left" >= $667))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
1,100 min
0.2%
|
110,783 ms
|
596
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 ('done','cancel','draft')) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in (1040084,1004893,1004894,1029147,1006438,889236,889239,889242,889278,889310,889350,889369,1006704,889555,889570,1007671,889638,1007674,1007776,981124,889650,1007785,981128,889675,889680,889687,889696,981201,981203,981205,981210,890123,890131,890142,890149,890152,981254,981255,890165,1029837,1029836,1029834,890419,890430,890438,890468,981281,890479,981284,981287,981322,981324,981325,981327,981328,981463,981464,1010202,981488,890979,1030052,890987,981563,981565,981569,981571,981573,981577,892007,981849,982059,982108,1030732,1030734,1030840,982211,1030846,982237,982243,1030851,982245,1030856,1030857,1030852,982343,1030933,900718,901024,1031692,982454,901418,982518,1017680,1017683,1018612,1018613,902460,1018626,982582,982642,1018677,982656,982694,1029125,983195,983197,1018755,983247,983253,983258,1018768,983271,983288,1018788,1018794,983365,983372,983387,983388,983396,983404,1034514,983406,1034516,1034515,1034518,983416,1034519,1034517,983432,1018823,983486,1018844,983638,905268,1018847,1018848,1018849,983646,1018850,983647,983711,983778,983823,1018883,983841,1018922,1018929,1018930,1019052,1019097,1019110,1019128,1019133,1019135,1019136,1019137,910959,1019138,1019146,767640,1019149,1019145,1019159,1019166,1019170,1019177,1019178,1019181,1019183,1019184,1019185,1019186,1019213,1019214,1019329,1019340,1019352,1019367,1019376,1019381,1019446,1019447,1019450,1019493,1019510,1019520,1019524,1019531,1019534,1021881,1021882,1038841,984296,1039562,1021885,1039566,984309,1039565,984324,1039571,1039619,1039821,1039820,1039824,1040080,1040081,1040089,914098,1040461,1040462,1040463,1021891,1040476,1040477,1043782,1021894,1045218,1045238,1045239,984620,1045824,984795,1050330,1050443,1050507,1050519,985158,985162,985169,985184,985385,985523,985534,1052538,985677,1052745,985696,985735,1053004,1053006,1053007,985749,985753,985756,985759,1053027,985763,1053030,1053031,985772,1053356,1053358,1053359,1053361,1053579,1053580,1053584,1053587,1053590,985877,985887,1053600,985907,1053692,1053693,1053950,986080,986120,1054034,1054036,1054038,1054039,986489,986699,986700,986701,986703,986704,979343,986705,986975,986981,987057,987058,987370,987372,987373,987637,979383,988157,979411,988880,989752,990840,991769,878758,878983,878990,979671,879786,879833,879841,926511,993599,993644,993995,879934,994060,880883,880888,910992,881344,881345,979821,979825,979829,979836,979838,881420,881738,881751,881781,979885,994506,930548,881838,881844,994533,994547,882282,882287,994688,994693,994699,994704,994714,994715,882986,883022,995565,1020400,1021470,995892,1021475,1021481,996654,1021483,1021482,1021485,1021486,883071,996881,1021495,1021498,1021499,1021500,1021501,996892,1021508,996896,1021517,1021873,1021874,1021875,1021876,1021877,1021878,1021879,1021880,980438,980435,1021883,1021884,996925,1021886,1021887,1021888,980455,1021890,1021889,1021892,1021893,980457,1021895,980463,1021897,1021896,1021899,1021900,1021901,997835,885677,1021904,1021905,1021902,1021903,980489,885705,1021906,1022151,1022518,1022519,1022520,1022522,1022523,886249,1022525,1022527,1022528,1022529,1022530,1022531,1022532,1022533,1022534,1022535,1022536,1022537,1022538,1022539,1022540,886272,1022542,1022547,1022548,1022551,1022552,886312,1022555,886303,1022541,1022559,1022560,1022561,1022558,1022557,1022695,980547,1022781,1022823,1022868,1022869,1022598,1022922,1022953,886461,1022965,886555,1022970,1022971,1022969,1022973,1022974,1022975,1022976,1023017,1023020,1023021,1023022,1022972,1023024,1023025,1023026,1023027,1023028,1023029,1023067,1023071,1023195,1023205,1023207,1023208,1023261,1023262,1023263,1023265,1023425,1023583,1023587,1023590,887148,1023603,1023604,1023605,980656,1023607,1023609,1023608,1023612,1023616,1023618,1023619,1023620,1023621,980679,980660,980676,1023630,1023631,1023632,1023633,1023636,980694,1023639,1023640,1023644,1023645,887342,1023648,1023647,1023655,1023657,1023793,1023794,1023804,1023808,1023814,1023817,887389,1023825,1023849,1023850,1023852,1023920,1024016,1024060,980760,1000097,1024106,1024110,1024111,1024112,1024109,999913,1024260,1024278,1000716,1024280,1024281,1024288,1024290,1024292,1024300,1024316,1024328,1024329,887456,1024331,1024340,1024339,980862,1001036,1024360,1024367,1024384,1024385,980866,1024369,980873,1025274,980881,1026913,1027084,1027103,1027270,1027362,1028061,980892,1028076,1028077,980896,980899,980902,888006,1028133,1028135,1028136,1028138,1028139,1028149,1028150,980924,980925,980931,888068,1028573,1002460,980938,1002668,1028729,888180,888185,1004889,1004890,1004891,1004892))) AND (((("stock_move__location_dest_id"."parent_left" >= 2) AND ("stock_move__location_dest_id"."parent_left" < 3)) OR (("stock_move__location_dest_id"."parent_left" >= 138) AND ("stock_move__location_dest_id"."parent_left" < 139))) OR ("stock_move"."location_dest_id" in (605)))) AND (((("stock_move__location_id"."parent_left" < 2) OR ("stock_move__location_id"."parent_left" >= 3)) AND (("stock_move__location_id"."parent_left" < 138) OR ("stock_move__location_id"."parent_left" >= 139))) AND (NOT (("stock_move"."location_id" in (605))))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
1,085 min
0.2%
|
91,913 ms
|
708
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"."sale_line_id" in ($1,$2,$3,$4,$5)) 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"
|
906 min
0.2%
|
64,087 ms
|
848
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611))) AND (((("stock_move__location_dest_id"."parent_left" >= $612) AND ("stock_move__location_dest_id"."parent_left" < $613)) OR (("stock_move__location_dest_id"."parent_left" >= $614) AND ("stock_move__location_dest_id"."parent_left" < $615))) OR ("stock_move"."location_dest_id" in ($616)))) AND (((("stock_move__location_id"."parent_left" < $617) OR ("stock_move__location_id"."parent_left" >= $618)) AND (("stock_move__location_id"."parent_left" < $619) OR ("stock_move__location_id"."parent_left" >= $620))) AND (NOT (("stock_move"."location_id" in ($621))))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
871 min
0.2%
|
194,950 ms
|
268
odoo
|
select q.id, q.product_id, q.in_date, q.lot_id, pt.name, q.location_id, l.complete_name, q.reserved_quantity, q.quantity
from stock_quant q join product_product p on p.id=q.product_id
join product_template pt on pt.id = p.product_tmpl_id
join stock_location l on l.id = q.location_id
left join stock_move_line sml on sml.product_id=q.product_id and sml.lot_id=q.lot_id and sml.location_id=q.location_id
where q.reserved_quantity > $1 and q.lot_id is not null
group by q.id, q.product_id, q.in_date, q.lot_id, pt.name, q.location_id, l.complete_name, q.reserved_quantity, q.quantity
having coalesce(sum(sml.product_qty), $2) = $3
order by q.in_date
|
753 min
0.2%
|
95,470 ms
|
473
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624))) AND (((("stock_move__location_dest_id"."parent_left" >= $625) AND ("stock_move__location_dest_id"."parent_left" < $626)) OR (("stock_move__location_dest_id"."parent_left" >= $627) AND ("stock_move__location_dest_id"."parent_left" < $628))) OR ("stock_move"."location_dest_id" in ($629)))) AND (((("stock_move__location_id"."parent_left" < $630) OR ("stock_move__location_id"."parent_left" >= $631)) AND (("stock_move__location_id"."parent_left" < $632) OR ("stock_move__location_id"."parent_left" >= $633))) AND (NOT (("stock_move"."location_id" in ($634))))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
672 min
0.1%
|
82,435 ms
|
489
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $928) AND ("stock_move__location_dest_id"."parent_left" < $929)) OR (("stock_move__location_dest_id"."parent_left" >= $930) AND ("stock_move__location_dest_id"."parent_left" < $931))) OR (("stock_move__location_dest_id"."parent_left" >= $932) AND ("stock_move__location_dest_id"."parent_left" < $933))) OR (("stock_move__location_dest_id"."parent_left" >= $934) AND ("stock_move__location_dest_id"."parent_left" < $935))) OR (("stock_move__location_dest_id"."parent_left" >= $936) AND ("stock_move__location_dest_id"."parent_left" < $937))) OR (("stock_move__location_dest_id"."parent_left" >= $938) AND ("stock_move__location_dest_id"."parent_left" < $939))) OR (("stock_move__location_dest_id"."parent_left" >= $940) AND ("stock_move__location_dest_id"."parent_left" < $941))) OR (("stock_move__location_dest_id"."parent_left" >= $942) AND ("stock_move__location_dest_id"."parent_left" < $943))) OR (("stock_move__location_dest_id"."parent_left" >= $944) AND ("stock_move__location_dest_id"."parent_left" < $945))) OR (("stock_move__location_dest_id"."parent_left" >= $946) AND ("stock_move__location_dest_id"."parent_left" < $947))) OR (("stock_move__location_dest_id"."parent_left" >= $948) AND ("stock_move__location_dest_id"."parent_left" < $949))) OR (("stock_move__location_dest_id"."parent_left" >= $950) AND ("stock_move__location_dest_id"."parent_left" < $951))) OR (("stock_move__location_dest_id"."parent_left" >= $952) AND ("stock_move__location_dest_id"."parent_left" < $953))) OR (("stock_move__location_dest_id"."parent_left" >= $954) AND ("stock_move__location_dest_id"."parent_left" < $955)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $956) OR ("stock_move__location_id"."parent_left" >= $957)) AND (("stock_move__location_id"."parent_left" < $958) OR ("stock_move__location_id"."parent_left" >= $959))) AND (("stock_move__location_id"."parent_left" < $960) OR ("stock_move__location_id"."parent_left" >= $961))) AND (("stock_move__location_id"."parent_left" < $962) OR ("stock_move__location_id"."parent_left" >= $963))) AND (("stock_move__location_id"."parent_left" < $964) OR ("stock_move__location_id"."parent_left" >= $965))) AND (("stock_move__location_id"."parent_left" < $966) OR ("stock_move__location_id"."parent_left" >= $967))) AND (("stock_move__location_id"."parent_left" < $968) OR ("stock_move__location_id"."parent_left" >= $969))) AND (("stock_move__location_id"."parent_left" < $970) OR ("stock_move__location_id"."parent_left" >= $971))) AND (("stock_move__location_id"."parent_left" < $972) OR ("stock_move__location_id"."parent_left" >= $973))) AND (("stock_move__location_id"."parent_left" < $974) OR ("stock_move__location_id"."parent_left" >= $975))) AND (("stock_move__location_id"."parent_left" < $976) OR ("stock_move__location_id"."parent_left" >= $977))) AND (("stock_move__location_id"."parent_left" < $978) OR ("stock_move__location_id"."parent_left" >= $979))) AND (("stock_move__location_id"."parent_left" < $980) OR ("stock_move__location_id"."parent_left" >= $981))) AND (("stock_move__location_id"."parent_left" < $982) OR ("stock_move__location_id"."parent_left" >= $983))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
569 min
0.1%
|
61,768 ms
|
553
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $599) AND ("stock_move__location_dest_id"."parent_left" < $600)) OR (("stock_move__location_dest_id"."parent_left" >= $601) AND ("stock_move__location_dest_id"."parent_left" < $602))) OR (("stock_move__location_dest_id"."parent_left" >= $603) AND ("stock_move__location_dest_id"."parent_left" < $604))) OR (("stock_move__location_dest_id"."parent_left" >= $605) AND ("stock_move__location_dest_id"."parent_left" < $606))) OR (("stock_move__location_dest_id"."parent_left" >= $607) AND ("stock_move__location_dest_id"."parent_left" < $608))) OR (("stock_move__location_dest_id"."parent_left" >= $609) AND ("stock_move__location_dest_id"."parent_left" < $610))) OR (("stock_move__location_dest_id"."parent_left" >= $611) AND ("stock_move__location_dest_id"."parent_left" < $612))) OR (("stock_move__location_dest_id"."parent_left" >= $613) AND ("stock_move__location_dest_id"."parent_left" < $614))) OR (("stock_move__location_dest_id"."parent_left" >= $615) AND ("stock_move__location_dest_id"."parent_left" < $616))) OR (("stock_move__location_dest_id"."parent_left" >= $617) AND ("stock_move__location_dest_id"."parent_left" < $618))) OR (("stock_move__location_dest_id"."parent_left" >= $619) AND ("stock_move__location_dest_id"."parent_left" < $620))) OR (("stock_move__location_dest_id"."parent_left" >= $621) AND ("stock_move__location_dest_id"."parent_left" < $622))) OR (("stock_move__location_dest_id"."parent_left" >= $623) AND ("stock_move__location_dest_id"."parent_left" < $624))) OR (("stock_move__location_dest_id"."parent_left" >= $625) AND ("stock_move__location_dest_id"."parent_left" < $626)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $627) OR ("stock_move__location_id"."parent_left" >= $628)) AND (("stock_move__location_id"."parent_left" < $629) OR ("stock_move__location_id"."parent_left" >= $630))) AND (("stock_move__location_id"."parent_left" < $631) OR ("stock_move__location_id"."parent_left" >= $632))) AND (("stock_move__location_id"."parent_left" < $633) OR ("stock_move__location_id"."parent_left" >= $634))) AND (("stock_move__location_id"."parent_left" < $635) OR ("stock_move__location_id"."parent_left" >= $636))) AND (("stock_move__location_id"."parent_left" < $637) OR ("stock_move__location_id"."parent_left" >= $638))) AND (("stock_move__location_id"."parent_left" < $639) OR ("stock_move__location_id"."parent_left" >= $640))) AND (("stock_move__location_id"."parent_left" < $641) OR ("stock_move__location_id"."parent_left" >= $642))) AND (("stock_move__location_id"."parent_left" < $643) OR ("stock_move__location_id"."parent_left" >= $644))) AND (("stock_move__location_id"."parent_left" < $645) OR ("stock_move__location_id"."parent_left" >= $646))) AND (("stock_move__location_id"."parent_left" < $647) OR ("stock_move__location_id"."parent_left" >= $648))) AND (("stock_move__location_id"."parent_left" < $649) OR ("stock_move__location_id"."parent_left" >= $650))) AND (("stock_move__location_id"."parent_left" < $651) OR ("stock_move__location_id"."parent_left" >= $652))) AND (("stock_move__location_id"."parent_left" < $653) OR ("stock_move__location_id"."parent_left" >= $654))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
547 min
0.1%
|
29,420 ms
|
1,116
odoo
|
SELECT min("stock_quant".id) AS id, count("stock_quant".id) AS "product_id_count" , sum("stock_quant"."quantity") AS "quantity" ,"stock_quant"."product_id" as "product_id"
FROM "stock_location" as "stock_quant__location_id","stock_quant"
WHERE ("stock_quant"."location_id"="stock_quant__location_id"."id") AND (("stock_quant"."product_id" in ($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,$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)) AND (("stock_quant__location_id"."parent_left" >= $255) AND ("stock_quant__location_id"."parent_left" < $256)))
GROUP BY "stock_quant"."product_id"
ORDER BY "id"
|
451 min
0.1%
|
54,243 ms
|
499
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $597) AND ("stock_move__location_dest_id"."parent_left" < $598)) OR (("stock_move__location_dest_id"."parent_left" >= $599) AND ("stock_move__location_dest_id"."parent_left" < $600))) OR (("stock_move__location_dest_id"."parent_left" >= $601) AND ("stock_move__location_dest_id"."parent_left" < $602))) OR (("stock_move__location_dest_id"."parent_left" >= $603) AND ("stock_move__location_dest_id"."parent_left" < $604))) OR (("stock_move__location_dest_id"."parent_left" >= $605) AND ("stock_move__location_dest_id"."parent_left" < $606))) OR (("stock_move__location_dest_id"."parent_left" >= $607) AND ("stock_move__location_dest_id"."parent_left" < $608))) OR (("stock_move__location_dest_id"."parent_left" >= $609) AND ("stock_move__location_dest_id"."parent_left" < $610))) OR (("stock_move__location_dest_id"."parent_left" >= $611) AND ("stock_move__location_dest_id"."parent_left" < $612))) OR (("stock_move__location_dest_id"."parent_left" >= $613) AND ("stock_move__location_dest_id"."parent_left" < $614))) OR (("stock_move__location_dest_id"."parent_left" >= $615) AND ("stock_move__location_dest_id"."parent_left" < $616))) OR (("stock_move__location_dest_id"."parent_left" >= $617) AND ("stock_move__location_dest_id"."parent_left" < $618))) OR (("stock_move__location_dest_id"."parent_left" >= $619) AND ("stock_move__location_dest_id"."parent_left" < $620))) OR (("stock_move__location_dest_id"."parent_left" >= $621) AND ("stock_move__location_dest_id"."parent_left" < $622))) OR (("stock_move__location_dest_id"."parent_left" >= $623) AND ("stock_move__location_dest_id"."parent_left" < $624)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $625) OR ("stock_move__location_id"."parent_left" >= $626)) AND (("stock_move__location_id"."parent_left" < $627) OR ("stock_move__location_id"."parent_left" >= $628))) AND (("stock_move__location_id"."parent_left" < $629) OR ("stock_move__location_id"."parent_left" >= $630))) AND (("stock_move__location_id"."parent_left" < $631) OR ("stock_move__location_id"."parent_left" >= $632))) AND (("stock_move__location_id"."parent_left" < $633) OR ("stock_move__location_id"."parent_left" >= $634))) AND (("stock_move__location_id"."parent_left" < $635) OR ("stock_move__location_id"."parent_left" >= $636))) AND (("stock_move__location_id"."parent_left" < $637) OR ("stock_move__location_id"."parent_left" >= $638))) AND (("stock_move__location_id"."parent_left" < $639) OR ("stock_move__location_id"."parent_left" >= $640))) AND (("stock_move__location_id"."parent_left" < $641) OR ("stock_move__location_id"."parent_left" >= $642))) AND (("stock_move__location_id"."parent_left" < $643) OR ("stock_move__location_id"."parent_left" >= $644))) AND (("stock_move__location_id"."parent_left" < $645) OR ("stock_move__location_id"."parent_left" >= $646))) AND (("stock_move__location_id"."parent_left" < $647) OR ("stock_move__location_id"."parent_left" >= $648))) AND (("stock_move__location_id"."parent_left" < $649) OR ("stock_move__location_id"."parent_left" >= $650))) AND (("stock_move__location_id"."parent_left" < $651) OR ("stock_move__location_id"."parent_left" >= $652))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
402 min
< 0.1%
|
1,183 ms
|
20,378
odoo
|
SELECT "swk_scrap_ticket".id FROM "swk_scrap_ticket" WHERE ("swk_scrap_ticket"."state" = $1) ORDER BY "swk_scrap_ticket"."id" DESC
Details
CREATE INDEX CONCURRENTLY ON swk_scrap_ticket (state, id)
Rows: 130492
Row progression: 130492, 43497, 0
Row estimates
- state (=): 43497
- id (sort): 1
Existing indexes
- id PRIMARY
- name
- state
|
389 min
< 0.1%
|
50,193 ms
|
465
odoo
|
SELECT min("stock_quant".id) AS id, count("stock_quant".id) AS "product_id_count" , sum("stock_quant"."quantity") AS "quantity" ,"stock_quant"."product_id" as "product_id"
FROM "stock_location" as "stock_quant__location_id","stock_quant"
WHERE ("stock_quant"."location_id"="stock_quant__location_id"."id") AND (("stock_quant"."product_id" in ($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,$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,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927,$928,$929,$930,$931,$932,$933,$934,$935,$936,$937,$938,$939,$940,$941,$942,$943,$944,$945,$946,$947,$948,$949,$950,$951,$952,$953,$954,$955,$956,$957,$958,$959,$960,$961,$962,$963,$964,$965,$966,$967,$968,$969,$970,$971,$972,$973,$974,$975,$976,$977,$978,$979,$980,$981,$982,$983,$984,$985,$986,$987,$988,$989,$990,$991,$992,$993,$994,$995,$996,$997,$998,$999,$1000,$1001,$1002,$1003,$1004,$1005,$1006,$1007,$1008,$1009,$1010,$1011,$1012,$1013,$1014,$1015,$1016,$1017,$1018,$1019,$1020,$1021,$1022,$1023,$1024,$1025,$1026,$1027,$1028,$1029,$1030,$1031,$1032,$1033,$1034,$1035,$1036,$1037,$1038,$1039,$1040,$1041,$1042,$1043,$1044,$1045,$1046,$1047,$1048,$1049,$1050,$1051,$1052,$1053,$1054,$1055,$1056,$1057,$1058,$1059,$1060,$1061,$1062,$1063,$1064,$1065,$1066,$1067,$1068,$1069,$1070,$1071,$1072,$1073,$1074,$1075,$1076,$1077,$1078,$1079,$1080,$1081,$1082,$1083,$1084,$1085,$1086,$1087,$1088,$1089,$1090,$1091,$1092,$1093,$1094,$1095,$1096,$1097,$1098,$1099,$1100,$1101,$1102,$1103,$1104,$1105,$1106,$1107,$1108,$1109,$1110,$1111,$1112,$1113,$1114,$1115,$1116,$1117,$1118,$1119,$1120,$1121,$1122,$1123,$1124,$1125,$1126,$1127,$1128,$1129,$1130,$1131,$1132,$1133,$1134,$1135,$1136,$1137,$1138,$1139,$1140,$1141,$1142,$1143,$1144,$1145,$1146,$1147,$1148,$1149,$1150,$1151,$1152,$1153,$1154,$1155,$1156,$1157,$1158,$1159,$1160,$1161,$1162,$1163,$1164,$1165,$1166,$1167,$1168,$1169,$1170,$1171,$1172,$1173,$1174,$1175,$1176,$1177,$1178,$1179,$1180,$1181,$1182,$1183,$1184,$1185,$1186,$1187,$1188,$1189,$1190,$1191,$1192,$1193,$1194,$1195,$1196,$1197,$1198,$1199,$1200,$1201,$1202,$1203,$1204,$1205,$1206,$1207,$1208,$1209,$1210,$1211,$1212,$1213,$1214,$1215,$1216,$1217,$1218,$1219,$1220,$1221,$1222,$1223,$1224,$1225,$1226,$1227,$1228,$1229,$1230,$1231,$1232,$1233,$1234,$1235,$1236,$1237,$1238,$1239,$1240,$1241,$1242,$1243,$1244,$1245,$1246,$1247,$1248,$1249,$1250,$1251,$1252,$1253,$1254,$1255,$1256,$1257,$1258,$1259,$1260,$1261,$1262,$1263,$1264,$1265,$1266,$1267,$1268,$1269,$1270,$1271,$1272,$1273,$1274,$1275,$1276,$1277,$1278,$1279,$1280,$1281,$1282,$1283,$1284,$1285,$1286,$1287,$1288,$1289,$1290,$1291,$1292,$1293,$1294,$1295,$1296,$1297,$1298,$1299,$1300,$1301,$1302,$1303,$1304,$1305,$1306,$1307,$1308,$1309,$1310,$1311,$1312,$1313,$1314,$1315,$1316,$1317,$1318,$1319,$1320,$1321,$1322,$1323,$1324,$1325,$1326,$1327,$1328,$1329,$1330,$1331,$1332,$1333,$1334,$1335,$1336,$1337,$1338,$1339,$1340,$1341,$1342,$1343,$1344,$1345,$1346,$1347,$1348,$1349,$1350,$1351,$1352,$1353,$1354,$1355,$1356,$1357,$1358,$1359,$1360,$1361,$1362,$1363,$1364,$1365,$1366,$1367,$1368,$1369,$1370,$1371,$1372,$1373,$1374,$1375,$1376,$1377,$1378,$1379,$1380,$1381,$1382,$1383,$1384,$1385,$1386,$1387,$1388,$1389,$1390,$1391,$1392,$1393,$1394,$1395,$1396,$1397,$1398,$1399,$1400,$1401,$1402,$1403,$1404,$1405,$1406,$1407,$1408,$1409,$1410,$1411,$1412,$1413,$1414,$1415,$1416,$1417,$1418,$1419,$1420,$1421,$1422,$1423,$1424,$1425,$1426,$1427,$1428,$1429,$1430,$1431,$1432,$1433,$1434,$1435,$1436,$1437,$1438,$1439,$1440,$1441,$1442,$1443,$1444,$1445,$1446,$1447,$1448,$1449,$1450,$1451,$1452,$1453,$1454,$1455,$1456,$1457,$1458,$1459,$1460,$1461,$1462,$1463,$1464,$1465,$1466,$1467,$1468,$1469,$1470,$1471,$1472,$1473,$1474,$1475,$1476,$1477,$1478,$1479,$1480,$1481,$1482,$1483,$1484,$1485,$1486,$1487,$1488,$1489,$1490,$1491,$1492,$1493,$1494,$1495,$1496,$1497,$1498,$1499,$1500,$1501,$1502,$1503,$1504,$1505,$1506,$1507,$1508,$1509,$1510,$1511,$1512,$1513,$1514,$1515,$1516,$1517,$1518,$1519,$1520,$1521,$1522,$1523,$1524,$1525,$1526,$1527,$1528,$1529,$1530,$1531,$1532,$1533,$1534,$1535,$1536,$1537,$1538,$1539,$1540,$1541,$1542,$1543,$1544,$1545,$1546,$1547,$1548,$1549,$1550,$1551,$1552,$1553,$1554,$1555,$1556,$1557,$1558,$1559,$1560,$1561,$1562,$1563,$1564,$1565,$1566,$1567,$1568,$1569,$1570,$1571,$1572,$1573,$1574,$1575,$1576,$1577,$1578,$1579,$1580,$1581,$1582,$1583,$1584,$1585,$1586,$1587,$1588,$1589,$1590,$1591,$1592,$1593,$1594,$1595,$1596,$1597,$1598,$1599,$1600,$1601,$1602,$1603,$1604,$1605,$1606,$1607,$1608,$1609,$1610,$1611,$1612,$1613,$1614,$1615,$1616,$1617,$1618,$1619,$1620,$1621,$1622,$1623,$1624,$1625,$1626,$1627,$1628,$1629,$1630,$1631,$1632,$1633,$1634,$1635,$1636,$1637,$1638,$1639,$1640,$1641,$1642,$1643,$1644,$1645,$1646,$1647,$1648,$1649,$1650,$1651,$1652,$1653,$1654,$1655,$1656,$1657,$1658,$1659,$1660,$1661,$1662,$1663,$1664,$1665,$1666,$1667,$1668,$1669,$1670,$1671,$1672,$1673,$1674,$1675,$1676,$1677,$1678,$1679,$1680,$1681,$1682,$1683,$1684,$1685,$1686,$1687,$1688,$1689,$1690,$1691,$1692,$1693,$1694,$1695,$1696,$1697,$1698,$1699,$1700,$1701,$1702,$1703,$1704,$1705,$1706,$1707,$1708,$1709,$1710,$1711,$1712,$1713,$1714,$1715,$1716,$1717,$1718,$1719,$1720,$1721,$1722,$1723,$1724,$1725,$1726,$1727,$1728,$1729,$1730,$1731,$1732,$1733,$1734,$1735,$1736,$1737,$1738,$1739,$1740,$1741,$1742,$1743,$1744,$1745,$1746,$1747,$1748,$1749,$1750,$1751,$1752,$1753,$1754,$1755,$1756,$1757,$1758,$1759,$1760,$1761,$1762,$1763,$1764,$1765,$1766,$1767,$1768,$1769,$1770,$1771,$1772,$1773,$1774,$1775,$1776,$1777,$1778,$1779,$1780,$1781,$1782,$1783,$1784,$1785,$1786,$1787,$1788,$1789,$1790
|
357 min
< 0.1%
|
29,357 ms
|
729
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $601) AND ("stock_move__location_dest_id"."parent_left" < $602)) OR (("stock_move__location_dest_id"."parent_left" >= $603) AND ("stock_move__location_dest_id"."parent_left" < $604))) OR (("stock_move__location_dest_id"."parent_left" >= $605) AND ("stock_move__location_dest_id"."parent_left" < $606))) OR (("stock_move__location_dest_id"."parent_left" >= $607) AND ("stock_move__location_dest_id"."parent_left" < $608))) OR (("stock_move__location_dest_id"."parent_left" >= $609) AND ("stock_move__location_dest_id"."parent_left" < $610))) OR (("stock_move__location_dest_id"."parent_left" >= $611) AND ("stock_move__location_dest_id"."parent_left" < $612))) OR (("stock_move__location_dest_id"."parent_left" >= $613) AND ("stock_move__location_dest_id"."parent_left" < $614))) OR (("stock_move__location_dest_id"."parent_left" >= $615) AND ("stock_move__location_dest_id"."parent_left" < $616))) OR (("stock_move__location_dest_id"."parent_left" >= $617) AND ("stock_move__location_dest_id"."parent_left" < $618))) OR (("stock_move__location_dest_id"."parent_left" >= $619) AND ("stock_move__location_dest_id"."parent_left" < $620))) OR (("stock_move__location_dest_id"."parent_left" >= $621) AND ("stock_move__location_dest_id"."parent_left" < $622))) OR (("stock_move__location_dest_id"."parent_left" >= $623) AND ("stock_move__location_dest_id"."parent_left" < $624))) OR (("stock_move__location_dest_id"."parent_left" >= $625) AND ("stock_move__location_dest_id"."parent_left" < $626))) OR (("stock_move__location_dest_id"."parent_left" >= $627) AND ("stock_move__location_dest_id"."parent_left" < $628)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $629) OR ("stock_move__location_id"."parent_left" >= $630)) AND (("stock_move__location_id"."parent_left" < $631) OR ("stock_move__location_id"."parent_left" >= $632))) AND (("stock_move__location_id"."parent_left" < $633) OR ("stock_move__location_id"."parent_left" >= $634))) AND (("stock_move__location_id"."parent_left" < $635) OR ("stock_move__location_id"."parent_left" >= $636))) AND (("stock_move__location_id"."parent_left" < $637) OR ("stock_move__location_id"."parent_left" >= $638))) AND (("stock_move__location_id"."parent_left" < $639) OR ("stock_move__location_id"."parent_left" >= $640))) AND (("stock_move__location_id"."parent_left" < $641) OR ("stock_move__location_id"."parent_left" >= $642))) AND (("stock_move__location_id"."parent_left" < $643) OR ("stock_move__location_id"."parent_left" >= $644))) AND (("stock_move__location_id"."parent_left" < $645) OR ("stock_move__location_id"."parent_left" >= $646))) AND (("stock_move__location_id"."parent_left" < $647) OR ("stock_move__location_id"."parent_left" >= $648))) AND (("stock_move__location_id"."parent_left" < $649) OR ("stock_move__location_id"."parent_left" >= $650))) AND (("stock_move__location_id"."parent_left" < $651) OR ("stock_move__location_id"."parent_left" >= $652))) AND (("stock_move__location_id"."parent_left" < $653) OR ("stock_move__location_id"."parent_left" >= $654))) AND (("stock_move__location_id"."parent_left" < $655) OR ("stock_move__location_id"."parent_left" >= $656))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
354 min
< 0.1%
|
35,895 ms
|
592
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $617) AND ("stock_move__location_dest_id"."parent_left" < $618)) OR (("stock_move__location_dest_id"."parent_left" >= $619) AND ("stock_move__location_dest_id"."parent_left" < $620))) OR (("stock_move__location_dest_id"."parent_left" >= $621) AND ("stock_move__location_dest_id"."parent_left" < $622))) OR (("stock_move__location_dest_id"."parent_left" >= $623) AND ("stock_move__location_dest_id"."parent_left" < $624))) OR (("stock_move__location_dest_id"."parent_left" >= $625) AND ("stock_move__location_dest_id"."parent_left" < $626))) OR (("stock_move__location_dest_id"."parent_left" >= $627) AND ("stock_move__location_dest_id"."parent_left" < $628))) OR (("stock_move__location_dest_id"."parent_left" >= $629) AND ("stock_move__location_dest_id"."parent_left" < $630))) OR (("stock_move__location_dest_id"."parent_left" >= $631) AND ("stock_move__location_dest_id"."parent_left" < $632))) OR (("stock_move__location_dest_id"."parent_left" >= $633) AND ("stock_move__location_dest_id"."parent_left" < $634))) OR (("stock_move__location_dest_id"."parent_left" >= $635) AND ("stock_move__location_dest_id"."parent_left" < $636))) OR (("stock_move__location_dest_id"."parent_left" >= $637) AND ("stock_move__location_dest_id"."parent_left" < $638))) OR (("stock_move__location_dest_id"."parent_left" >= $639) AND ("stock_move__location_dest_id"."parent_left" < $640))) OR (("stock_move__location_dest_id"."parent_left" >= $641) AND ("stock_move__location_dest_id"."parent_left" < $642))) OR (("stock_move__location_dest_id"."parent_left" >= $643) AND ("stock_move__location_dest_id"."parent_left" < $644)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $645) OR ("stock_move__location_id"."parent_left" >= $646)) AND (("stock_move__location_id"."parent_left" < $647) OR ("stock_move__location_id"."parent_left" >= $648))) AND (("stock_move__location_id"."parent_left" < $649) OR ("stock_move__location_id"."parent_left" >= $650))) AND (("stock_move__location_id"."parent_left" < $651) OR ("stock_move__location_id"."parent_left" >= $652))) AND (("stock_move__location_id"."parent_left" < $653) OR ("stock_move__location_id"."parent_left" >= $654))) AND (("stock_move__location_id"."parent_left" < $655) OR ("stock_move__location_id"."parent_left" >= $656))) AND (("stock_move__location_id"."parent_left" < $657) OR ("stock_move__location_id"."parent_left" >= $658))) AND (("stock_move__location_id"."parent_left" < $659) OR ("stock_move__location_id"."parent_left" >= $660))) AND (("stock_move__location_id"."parent_left" < $661) OR ("stock_move__location_id"."parent_left" >= $662))) AND (("stock_move__location_id"."parent_left" < $663) OR ("stock_move__location_id"."parent_left" >= $664))) AND (("stock_move__location_id"."parent_left" < $665) OR ("stock_move__location_id"."parent_left" >= $666))) AND (("stock_move__location_id"."parent_left" < $667) OR ("stock_move__location_id"."parent_left" >= $668))) AND (("stock_move__location_id"."parent_left" < $669) OR ("stock_move__location_id"."parent_left" >= $670))) AND (("stock_move__location_id"."parent_left" < $671) OR ("stock_move__location_id"."parent_left" >= $672))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
312 min
< 0.1%
|
23,683 ms
|
791
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611))) AND (((("stock_move__location_id"."parent_left" >= $612) AND ("stock_move__location_id"."parent_left" < $613)) OR (("stock_move__location_id"."parent_left" >= $614) AND ("stock_move__location_id"."parent_left" < $615))) OR ("stock_move"."location_id" in ($616)))) AND (((("stock_move__location_dest_id"."parent_left" < $617) OR ("stock_move__location_dest_id"."parent_left" >= $618)) AND (("stock_move__location_dest_id"."parent_left" < $619) OR ("stock_move__location_dest_id"."parent_left" >= $620))) AND (NOT (("stock_move"."location_dest_id" in ($621))))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
307 min
< 0.1%
|
31,949 ms
|
576
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $625) AND ("stock_move__location_dest_id"."parent_left" < $626)) OR (("stock_move__location_dest_id"."parent_left" >= $627) AND ("stock_move__location_dest_id"."parent_left" < $628))) OR (("stock_move__location_dest_id"."parent_left" >= $629) AND ("stock_move__location_dest_id"."parent_left" < $630))) OR (("stock_move__location_dest_id"."parent_left" >= $631) AND ("stock_move__location_dest_id"."parent_left" < $632))) OR (("stock_move__location_dest_id"."parent_left" >= $633) AND ("stock_move__location_dest_id"."parent_left" < $634))) OR (("stock_move__location_dest_id"."parent_left" >= $635) AND ("stock_move__location_dest_id"."parent_left" < $636))) OR (("stock_move__location_dest_id"."parent_left" >= $637) AND ("stock_move__location_dest_id"."parent_left" < $638))) OR (("stock_move__location_dest_id"."parent_left" >= $639) AND ("stock_move__location_dest_id"."parent_left" < $640))) OR (("stock_move__location_dest_id"."parent_left" >= $641) AND ("stock_move__location_dest_id"."parent_left" < $642))) OR (("stock_move__location_dest_id"."parent_left" >= $643) AND ("stock_move__location_dest_id"."parent_left" < $644))) OR (("stock_move__location_dest_id"."parent_left" >= $645) AND ("stock_move__location_dest_id"."parent_left" < $646))) OR (("stock_move__location_dest_id"."parent_left" >= $647) AND ("stock_move__location_dest_id"."parent_left" < $648))) OR (("stock_move__location_dest_id"."parent_left" >= $649) AND ("stock_move__location_dest_id"."parent_left" < $650))) OR (("stock_move__location_dest_id"."parent_left" >= $651) AND ("stock_move__location_dest_id"."parent_left" < $652)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $653) OR ("stock_move__location_id"."parent_left" >= $654)) AND (("stock_move__location_id"."parent_left" < $655) OR ("stock_move__location_id"."parent_left" >= $656))) AND (("stock_move__location_id"."parent_left" < $657) OR ("stock_move__location_id"."parent_left" >= $658))) AND (("stock_move__location_id"."parent_left" < $659) OR ("stock_move__location_id"."parent_left" >= $660))) AND (("stock_move__location_id"."parent_left" < $661) OR ("stock_move__location_id"."parent_left" >= $662))) AND (("stock_move__location_id"."parent_left" < $663) OR ("stock_move__location_id"."parent_left" >= $664))) AND (("stock_move__location_id"."parent_left" < $665) OR ("stock_move__location_id"."parent_left" >= $666))) AND (("stock_move__location_id"."parent_left" < $667) OR ("stock_move__location_id"."parent_left" >= $668))) AND (("stock_move__location_id"."parent_left" < $669) OR ("stock_move__location_id"."parent_left" >= $670))) AND (("stock_move__location_id"."parent_left" < $671) OR ("stock_move__location_id"."parent_left" >= $672))) AND (("stock_move__location_id"."parent_left" < $673) OR ("stock_move__location_id"."parent_left" >= $674))) AND (("stock_move__location_id"."parent_left" < $675) OR ("stock_move__location_id"."parent_left" >= $676))) AND (("stock_move__location_id"."parent_left" < $677) OR ("stock_move__location_id"."parent_left" >= $678))) AND (("stock_move__location_id"."parent_left" < $679) OR ("stock_move__location_id"."parent_left" >= $680))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
305 min
< 0.1%
|
160,554 ms
|
114
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927))) AND (((("stock_move__location_dest_id"."parent_left" >= $928) AND ("stock_move__location_dest_id"."parent_left" < $929)) OR (("stock_move__location_dest_id"."parent_left" >= $930) AND ("stock_move__location_dest_id"."parent_left" < $931))) OR ("stock_move"."location_dest_id" in ($932)))) AND (((("stock_move__location_id"."parent_left" < $933) OR ("stock_move__location_id"."parent_left" >= $934)) AND (("stock_move__location_id"."parent_left" < $935) OR ("stock_move__location_id"."parent_left" >= $936))) AND (NOT (("stock_move"."location_id" in ($937))))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
282 min
< 0.1%
|
214 ms
|
79,334
odoo
|
SELECT "mrp_product_produce_line".id FROM "mrp_product_produce_line" WHERE ("mrp_product_produce_line"."product_produce_id" in ($1)) ORDER BY "mrp_product_produce_line"."id"
Details
CREATE INDEX CONCURRENTLY ON mrp_product_produce_line (product_produce_id)
Rows: 713303
Row progression: 713303, 9
Row estimates
- product_produce_id (=): 9
- id (sort): 1
Existing indexes
- id PRIMARY
|
265 min
< 0.1%
|
17,433 ms
|
911
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $612) AND ("stock_move__location_dest_id"."parent_left" < $613)) OR (("stock_move__location_dest_id"."parent_left" >= $614) AND ("stock_move__location_dest_id"."parent_left" < $615))) OR (("stock_move__location_dest_id"."parent_left" >= $616) AND ("stock_move__location_dest_id"."parent_left" < $617))) OR (("stock_move__location_dest_id"."parent_left" >= $618) AND ("stock_move__location_dest_id"."parent_left" < $619))) OR (("stock_move__location_dest_id"."parent_left" >= $620) AND ("stock_move__location_dest_id"."parent_left" < $621))) OR (("stock_move__location_dest_id"."parent_left" >= $622) AND ("stock_move__location_dest_id"."parent_left" < $623))) OR (("stock_move__location_dest_id"."parent_left" >= $624) AND ("stock_move__location_dest_id"."parent_left" < $625))) OR (("stock_move__location_dest_id"."parent_left" >= $626) AND ("stock_move__location_dest_id"."parent_left" < $627))) OR (("stock_move__location_dest_id"."parent_left" >= $628) AND ("stock_move__location_dest_id"."parent_left" < $629))) OR (("stock_move__location_dest_id"."parent_left" >= $630) AND ("stock_move__location_dest_id"."parent_left" < $631))) OR (("stock_move__location_dest_id"."parent_left" >= $632) AND ("stock_move__location_dest_id"."parent_left" < $633))) OR (("stock_move__location_dest_id"."parent_left" >= $634) AND ("stock_move__location_dest_id"."parent_left" < $635))) OR (("stock_move__location_dest_id"."parent_left" >= $636) AND ("stock_move__location_dest_id"."parent_left" < $637))) OR (("stock_move__location_dest_id"."parent_left" >= $638) AND ("stock_move__location_dest_id"."parent_left" < $639)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $640) OR ("stock_move__location_id"."parent_left" >= $641)) AND (("stock_move__location_id"."parent_left" < $642) OR ("stock_move__location_id"."parent_left" >= $643))) AND (("stock_move__location_id"."parent_left" < $644) OR ("stock_move__location_id"."parent_left" >= $645))) AND (("stock_move__location_id"."parent_left" < $646) OR ("stock_move__location_id"."parent_left" >= $647))) AND (("stock_move__location_id"."parent_left" < $648) OR ("stock_move__location_id"."parent_left" >= $649))) AND (("stock_move__location_id"."parent_left" < $650) OR ("stock_move__location_id"."parent_left" >= $651))) AND (("stock_move__location_id"."parent_left" < $652) OR ("stock_move__location_id"."parent_left" >= $653))) AND (("stock_move__location_id"."parent_left" < $654) OR ("stock_move__location_id"."parent_left" >= $655))) AND (("stock_move__location_id"."parent_left" < $656) OR ("stock_move__location_id"."parent_left" >= $657))) AND (("stock_move__location_id"."parent_left" < $658) OR ("stock_move__location_id"."parent_left" >= $659))) AND (("stock_move__location_id"."parent_left" < $660) OR ("stock_move__location_id"."parent_left" >= $661))) AND (("stock_move__location_id"."parent_left" < $662) OR ("stock_move__location_id"."parent_left" >= $663))) AND (("stock_move__location_id"."parent_left" < $664) OR ("stock_move__location_id"."parent_left" >= $665))) AND (("stock_move__location_id"."parent_left" < $666) OR ("stock_move__location_id"."parent_left" >= $667))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
254 min
< 0.1%
|
5,233 ms
|
2,907
odoo
|
SELECT "product_product".id FROM "product_product" WHERE (("product_product"."active" = $1) AND ("product_product"."product_tmpl_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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927,$928,$929,$930,$931,$932,$933,$934,$935,$936,$937,$938,$939,$940,$941,$942,$943,$944,$945,$946,$947,$948,$949,$950,$951,$952,$953,$954,$955,$956,$957,$958,$959,$960,$961,$962,$963,$964,$965,$966,$967,$968,$969,$970,$971,$972,$973,$974,$975,$976,$977,$978,$979,$980,$981,$982,$983,$984,$985,$986,$987,$988,$989,$990,$991,$992,$993,$994,$995,$996,$997,$998,$999,$1000,$1001))) ORDER BY "product_product"."default_code" ,"product_product"."id"
Covered by index on (product_tmpl_id)
Rows: 1000206
Row progression: 1000206, 620, 310
Row estimates
- product_tmpl_id (=): 620
- active (=): 500103
- default_code (sort): 0
- id (sort): 1
Existing indexes
- id PRIMARY
- active, default_code
- barcode UNIQUE
- default_code
- product_tmpl_id
|
220 min
< 0.1%
|
26,528 ms
|
498
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927,$928,$929,$930,$931,$932,$933,$934,$935,$936,$937,$938,$939,$940,$941,$942,$943,$944,$945,$946,$947,$948,$949,$950,$951,$952,$953,$954,$955,$956,$957,$958,$959,$960,$961,$962,$963,$964,$965,$966,$967,$968,$969,$970,$971,$972,$973,$974,$975,$976,$977,$978,$979,$980,$981,$982,$983,$984,$985,$986,$987,$988,$989,$990,$991,$992,$993,$994,$995,$996,$997,$998,$999,$1000,$1001,$1002,$1003,$1004,$1005,$1006,$1007,$1008,$1009,$1010,$1011,$1012,$1013,$1014,$1015,$1016,$1017,$1018,$1019,$1020,$1021,$1022,$1023,$1024,$1025,$1026,$1027,$1028,$1029,$1030,$1031,$1032,$1033,$1034,$1035,$1036,$1037,$1038,$1039,$1040,$1041,$1042,$1043,$1044,$1045,$1046,$1047,$1048,$1049,$1050,$1051,$1052,$1053,$1054,$1055,$1056,$1057,$1058,$1059,$1060,$1061,$1062,$1063,$1064,$1065,$1066,$1067,$1068,$1069,$1070,$1071,$1072,$1073,$1074,$1075,$1076,$1077,$1078,$1079,$1080,$1081,$1082,$1083,$1084,$1085,$1086,$1087,$1088,$1089,$1090,$1091,$1092,$1093,$1094,$1095,$1096,$1097,$1098,$1099,$1100,$1101,$1102,$1103,$1104,$1105,$1106,$1107,$1108,$1109,$1110,$1111,$1112,$1113,$1114,$1115,$1116,$1117,$1118,$1119,$1120,$1121,$1122,$1123,$1124,$1125,$1126,$1127,$1128,$1129,$1130,$1131,$1132,$1133,$1134,$1135,$1136,$1137,$1138,$1139,$1140,$1141,$1142,$1143,$1144,$1145,$1146,$1147,$1148,$1149,$1150,$1151,$1152,$1153,$1154,$1155,$1156,$1157,$1158,$1159,$1160,$1161,$1162,$1163,$1164,$1165,$1166,$1167,$1168,$1169,$1170,$1171,$1172,$1173,$1174,$1175,$1176,$1177,$1178,$1179,$1180,$1181,$1182,$1183,$1184,$1185,$1186,$1187,$1188,$1189,$1190,$1191,$1192,$1193,$1194,$1195,$1196,$1197,$1198,$1199,$1200,$1201,$1202,$1203,$1204,$1205,$1206,$1207,$1208,$1209,$1210,$1211,$1212,$1213,$1214,$1215,$1216,$1217,$1218,$1219,$1220,$1221,$1222,$1223,$1224,$1225,$1226,$1227,$1228,$1229,$1230,$1231,$1232,$1233,$1234,$1235,$1236,$1237,$1238,$1239,$1240,$1241,$1242,$1243,$1244,$1245,$1246,$1247,$1248,$1249,$1250,$1251,$1252,$1253,$1254,$1255,$1256,$1257,$1258,$1259,$1260,$1261,$1262,$1263,$1264,$1265,$1266,$1267,$1268,$1269,$1270,$1271,$1272,$1273,$1274,$1275,$1276,$1277,$1278,$1279,$1280,$1281,$1282,$1283,$1284,$1285,$1286,$1287,$1288,$1289,$1290,$1291,$1292,$1293,$1294,$1295,$1296,$1297,$1298,$1299,$1300,$1301,$1302,$1303,$1304,$1305,$1306,$1307,$1308,$1309,$1310,$1311,$1312,$1313,$1314,$1315,$1316,$1317,$1318,$1319,$1320,$1321,$1322,$1323,$1324,$1325,$1326,$1327,$1328,$1329,$1330,$1331,$1332,$1333,$1334,$1335,$1336,$1337,$1338,$1339,$1340,$1341,$1342,$1343,$1344,$1345,$1346,$1347,$1348,$1349,$1350,$1351,$1352,$1353,$1354,$1355,$1356,$1357,$1358,$1359,$1360,$1361,$1362,$1363,$1364,$1365,$1366,$1367,$1368,$1369,$1370,$1371,$1372,$1373,$1374,$1375,$1376,$1377,$1378,$1379,$1380,$1381,$1382,$1383,$1384,$1385,$1386,$1387,$1388,$1389,$1390,$1391,$1392,$1393,$1394,$1395,$1396,$1397,$1398,$1399,$1400,$1401,$1402,$1403,$1404,$1405,$1406,$1407,$1408,$1409,$1410,$1411,$1412,$1413,$1414,$1415,$1416,$1417,$1418,$1419,$1420,$1421,$1422,$1423,$1424,$1425,$1426,$1427,$1428,$1429,$1430,$1431,$1432,$1433,$1434,$1435,$1436,$1437,$1438,$1439,$1440,$1441,$1442,$1443,$1444,$1445,$1446,$1447,$1448,$1449,$1450,$1451,$1452,$1453,$1454,$1455,$1456,$1457,$1458,$1459,$1460,$1461,$1462,$1463,$1464,$1465,$1466,$1467,$1468,$1469,$1470,$1471,$1472,$1473,$1474,$1475,$1476,$1477,$1478,$1479,$1480,$1481,$1482,$1483,$1484,$1485,$1486,$1487,$1488,$1489,$1490,$1491,$1492,$1493,$1494,$1495,$1496,$1497,$1498,$1499,$1500,$1501,$1502,$1503,$1504,$1505,$1506,$1507,$1508,$1509,$1510,$1511,$1512,$1513,$1514,$1515,$1516,$1517,$1518,$1519,$1520,$1521,$1522,$1523,$1524,$1525,$1526,$1527,$1528,$1529,$1530,$1531,$1532,$1533,$1534,$1535,$1536,$1537,$1538,$1539,$1540,$1541,$1542,$1543,$1544,$1545,$1546,$1547,$1548,$1549,$1550,$1551,$1552,$1553,$1554,$1555,$1556,$1557,$1558,$1559,$1560,$1561,$1562,$1563,$1564,$1565,$1566,$1567,$1568,$1569,$1570,$1571,$1572,$1573,$1574,$1575,$1576,$1577,$1578,$1579,$1580,$1581,$1582,$1583,$1584,$1585,$1586,$1587,$1588,$1589,$1590,$1591,$1592,$1593,$1594,$1595,$1596,$1597,$1598,$1599,$1600,$1601,$1602,$1603,$1604,$1605,$1606,$1607,$1608,$1609,$1610,$1611,$1612,$1613,$1614,$1615,$1616,$1617,$1618,$1619,$1620,$1621,$1622,$1623,$1624,$1625,$1626,$1627,$1628,$1629,$1630,$1631,$1632,$1633,$1634,$1635,$1636,$1637,$1638,$1639,$1640,$1641,$1642,$1643,$1644,$1645,$1646,$1647,$1648,$1649,$1650,$1651,$1652,$1653,$1654,$1655,$1656,$1657,$1658,$1659,$1660,$1661,$1662,$1663,$1664,$1665,$1666,$1667,$1668,$1669,$1670,$1671,$1672,$1673,$1674,$1675,$1676,$1677,$1678,$1679,$1680,$1681,$1682,$1683,$1684,$1685,$1686,$1687,$1688,$1689,$1690,$1691,$1692,$1693,$1694,$1695,$1696,$1697,$1698,$1699,$1700,$1701,$1702,$1703,$1704,$1705,$1706,$1707,$1708,$1709,$1710,$1711,$1712,$1713,$1714,$1715,$1716,$1717,$1718,$1719,$1720,$1721,$1722,$1723,$1724,$1725,$1726,$1727,$1728,$1729,$1730,$1731,$1732,$1733,$1734,$1735,$1736,$1737,$1738,$1739,$1740,$1741,$1742,$1743,$1744,$1745,$1746,$1747,$1748,$1749,$1750,$1751,$1752,$1753,$1754,$1755,$1756,$1757,$1
|
215 min
< 0.1%
|
23 ms
|
564,798
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))) AND (("stock_move__location_dest_id"."parent_left" < $7) OR ("stock_move__location_dest_id"."parent_left" >= $8))) 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 ($9))) OR "stock_move__location_dest_id"."company_id" IS NULL )
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
201 min
< 0.1%
|
121 ms
|
99,526
odoo
|
SELECT "product_product".id FROM "product_product" WHERE (("product_product"."active" = $1) AND ("product_product"."default_code"::text ilike $2)) ORDER BY "product_product"."default_code" ,"product_product"."id" limit $3
|
193 min
< 0.1%
|
10,332 ms
|
1,120
odoo
|
SELECT "product_product".id FROM "product_template" as "product_product__product_tmpl_id","product_product" WHERE ("product_product"."product_tmpl_id"="product_product__product_tmpl_id"."id") AND (("product_product"."active" = $1) AND ("product_product__product_tmpl_id"."categ_id" in ($2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17))) ORDER BY "product_product"."default_code" ,"product_product"."id"
|
177 min
< 0.1%
|
32,252 ms
|
330
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 ('done','cancel','draft')) OR "stock_move"."state" IS NULL) AND ("stock_move"."product_id" in (13,14,21,37,151,1393,1558,283763,454879,459255,477007,561159,633763,767640,781921,822092,822144,827667,827683,828197,878751,878758,878817,878820,878844,878980,878983,878990,879073,879092,879786,879806,879826,879833,879836,879841,879854,879860,879861,879869,879881,879889,879891,879894,879902,879906,879911,879913,879916,879919,879920,879924,879926,879930,879932,879934,880883,880888,880891,881344,881345,881347,881370,881420,881733,881738,881751,881781,881793,881803,881830,881838,881844,882282,882287,882320,882324,882568,882573,882986,882990,882997,882999,883000,883001,883004,883005,883008,883022,883048,883051,883055,883070,883071,883811,883857,885363,885373,885677,885705,886236,886249,886257,886272,886303,886312,886358,886386,886389,886461,886464,886553,886555,886957,887148,887161,887342,887359,887389,887393,887401,887449,887456,887495,888006,888011,888068,888143,888180,888185,888186,888286,888288,889236,889239,889240,889242,889250,889257,889258,889261,889262,889269,889275,889278,889279,889290,889310,889315,889350,889365,889369,889386,889542,889555,889570,889638,889641,889645,889646,889650,889654,889657,889666,889669,889675,889680,889685,889687,889696,889752,890089,890095,890100,890107,890108,890121,890123,890129,890131,890132,890134,890142,890149,890152,890165,890168,890419,890430,890438,890465,890468,890479,890497,890979,890987,891002,891003,891007,891023,891058,891073,892007,892522,892723,893363,893368,893377,893397,893412,893413,893462,893494,893500,893529,893534,893648,894615,894617,894622,894623,894628,894630,894718,898352,900718,901024,901025,901415,901418,901419,902044,902458,902460,903298,903691,905268,905279,905722,905746,905779,905874,905901,905904,905931,905933,906375,910959,910992,911188,911195,911251,911835,912661,912663,912677,912948,912973,913630,913689,914098,914655,914878,915037,915638,924118,924191,924211,924480,924905,926403,926511,926547,927920,927925,927927,928006,928067,929897,930548,930595,930596,930604,932157,934449,934450,934922,934926,934934,934935,934941,934943,934949,935050,935070,935082,935085,935095,935099,935109,935114,935115,935117,935227,935233,935244,935262,935273,935282,935286,935292,935301,935303,935304,935306,935309,935329,935333,935336,935345,935346,935347,935349,935357,935370,935379,935380,935385,935386,935389,935395,935407,935773,935784,935785,935791,935792,935797,935798,935800,935876,935879,935907,936022,936025,936060,936148,936169,936178,936185,936194,936209,936225,936231,936232,936234,936692,936695,936733,936742,936778,936802,936857,936863,937040,937175,939025,939029,939044,942913,942915,944787,948838,953003,957660,957681,959542,959768,960282,960431,960450,960514,960518,965602,966885,966891,968502,970151,974968,976035,976327,976422,977136,977182,977696,978503,979331,979332,979338,979343,979344,979349,979351,979353,979370,979375,979383,979389,979390,979393,979395,979396,979399,979400,979406,979408,979410,979411,979413,979414,979416,979418,979419,979427,979430,979431,979434,979435,979480,979481,979482,979483,979487,979492,979494,979495,979496,979499,979643,979644,979670,979671,979674,979684,979725,979768,979816,979821,979824,979825,979826,979827,979828,979829,979830,979833,979835,979836,979838,979839,979840,979870,979878,979879,979880,979885,979886,979900,979950,979959,979962,979988,979989,980010,980011,980031,980032,980036,980038,980260,980272,980273,980278,980279,980280,980323,980364,980365,980366,980367,980369,980371,980376,980378,980392,980393,980394,980395,980396,980408,980417,980430,980432,980433,980435,980437,980438,980439,980455,980457,980460,980461,980462,980463,980466,980489,980531,980532,980537,980539,980546,980547,980549,980550,980569,980605,980656,980657,980659,980660,980676,980679,980682,980683,980684,980692,980694,980695,980710,980718,980719,980722,980724,980736,980738,980739,980740,980746,980747,980748,980751,980752,980754,980760,980761,980821,980822,980823,980824,980825,980826,980827,980828,980829,980830,980832,980833,980835,980836,980859,980862,980863,980864,980866,980867,980868,980869,980873,980874,980876,980880,980881,980884,980886,980892,980893,980894,980896,980899,980902,980903,980904,980909,980922,980924,980925,980928,980929,980931,980934,980938,980949,980957,980960,980963,980965,980966,980970,980984,981008,981029,981036,981124,981127,981128,981131,981135,981138,981139,981140,981141,981142,981145,981194,981199,981201,981202,981203,981204,981205,981206,981207,981210,981211,981215,981217,981220,981221,981222,981223,981224,981225,981226,981227,981228,981229,981230,981250,981251,981253,981254,981255,981257,981258,981259,981261,981264,981271,981274,981278,981280,981281,981284,981286,981287,981292,981298,981299,981322,981324,981325,981327,981328,981329,981330,981331,981332,981458,981463,981464,981476,981478,981480,981487,981488,981490,981491,981495,981505,981507,981533,981534,981535,981536,981537,981538,981539,981540,981541,981542,981544,981545,981563,981565,981569,981571,981573,981577,981591,981592,981593,981632,981634,981635,981636,981684,981721,981754,981755,981763,981764,981780,981813,981822,981823,981824,981849,981851,981856,981864,981865,981872,981875,981878,981885,981891,981892,981893,981919,981920,981930,981943,981944,981945,981973,981974,981975,981982,981987,981989,981991,981993,981994,981996,981997,981999,982059,982074,982075,982100,982108,982127,982170,982190,982211,982237,982242,982243,982244,982245,982341,982342,982343,982349,982350,982357,982358,982359,982361,982403,982404,982408,982409,982411,982415,982416,982418,982419,982420,982421,982438,982445,982450,982453,982454,982455,982456,982469,982470,982471,982472,982473,982475,982476,982477,982478,982481,982494,982496,982514,982518,982520,982524,982525,982542,982543,982574,982578,982579,982581,982582,982584,982585,982604,982608,982613,982614,982642,982643,982650,982656,982660,982661,982677,982694,982695,982696,982821,982838,982839,982840,982843,982922,982967,982986,983013,983019,983020,983023,983095,983096,983097,983098,983100,983101,983195,983197,983246,983247,983253,983254,983258,983262,983271,983272,983276,983278,983284,983288,983294,983299,983361,983362,983363,983365,983368,983369,983371,983372,983373,983374,983377,983387,983388,983390,983396,983401,983403,983404,983405,983406,983414,983416,983417,983432,983434,983463,983481,983486,983493,983517,983638,983639,983640,983646,983647,983711,983778,983788,983792,983804,983806,983818,983822,983823,983824,983828,983841,983842,983848,983916,983995,984013,984015,984018,984019,984021,984024,984025,984036,984041,984043,984045,984048,984049,984055,984069,984071,984072,984078,984080,984088,984091,984097,984099,984144,984146,984150,984154,984203,984230,984233,984238,984288,984289,984292,984296,984309,984312,984313,984316,984317,984324,984432,984433,984555,984607,984608,984620,984626,984627,984641,984644,984784,984795,985140,985158,985162,985169,985179,985184,985205,985379,985383,985385,985523,985534,985552,985579,985593,985603,985604,985606,985608,985611,985677,985696,985735,985749,985753,985756,985759,985763,985764,985772,985796,985806,985807,985877,985887,985907,985911,986080,986091,986094,986120,986170,986172,986227,986489,986699,986700,986701,986703,986704,986705,986975,986979,986981,987057,987058,987220,987370,987372,987373,987637,987726,987732,987805,987833,987877,987880,987886,987892,987894,987898,987904,987910,987973,988143,988150,988157,988178,988179,988201,988202,988257,988260,988263,988264,988880,989752,990332,990515,990840,990889,990967,990968,990971,990972,990973,991457,991535,991536,991537,991538,991539,991540,991542,991769,992989,992990,992991,992992,992993,992994,993384,993430,993438,993447,993450,993599,993621,993644,993792,993829,993995,994060,994334,994506,994533,994547,994552,994570,994616,994688,994692,994693,994699,994703,994704,994710,994714,994715,994716,994746,994916,995549,995550,995565,995566,995578,995784,995786,995882,995884,995891,995892,995893,995895,995896,995900,996654,996881,996886,996892,996894,996896,996925,997835,999833,999913,999918,1000097,1000716,1000942,1001036,1001044,1001046,1001116,1001119,1001644,1002117,1002127,1002131,1002136,1002141,1002460,1002668,1002674,1002696,1002855,1003204,1003205,1003738,1003819,1004759,1004766,1004889,1004890,1004891,1004892,1004893,1004894,1005024,1005264,1005571,1006438,1006704,1006947,1006961,1007671,1007673,1007674,1007776,1007785,1009123,1009405,1009724,1009734,1009742,1009750,1009772,1009773,1009780,1009803,1009824,1009825,1009830,1009844,1009846,1009847,1009848,1009849,1009855,1009856,1009919,1009958,1009963,1010007,1010009,1010022,1010036,1010041,1010042,1010069,1010075,1010100,1010172,1010181,1010196,1010202,1010215,1010217,1010257,1010280,1010282,1010283,1010295,1010330,1010335,1010346,1010368,1010491,1010537,1010543,1010551,1010568,1010643,1010725,1010776,1010785,1010890,1010968,1011050,1011163,1011206,1011213,1011244,1011286,1011297,1011385,1011589,1011675,1011874,1011875,1011917,1012043,1012140,1012385,1012570,1012600,1012608,1012645,1012674,1012691,1012835,1012846,1012909,1012946,1012996,1012997,1013049,1013141,1013144,1013145,1013395,1013556,1013644,1013712,1013875,1014237,1014387,1014417,1015022,1015023,1015074,1015075,1015696,1016177,1016247,1016450,1016797,1016802,1016978,1017309,1017339,1017515,1017680,1017681,1017682,1017683,1017800,1017923,1017925,1018361,1018362,1018612,1018613,1018614,1018616,1018619,1018620,1018624,1018626,1018627,1018629,1018635,1018646,1018650,1018653,1018658,101
|
168 min
< 0.1%
|
87,841 ms
|
115
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $928) AND ("stock_move__location_id"."parent_left" < $929)) OR (("stock_move__location_id"."parent_left" >= $930) AND ("stock_move__location_id"."parent_left" < $931))) OR (("stock_move__location_id"."parent_left" >= $932) AND ("stock_move__location_id"."parent_left" < $933))) OR (("stock_move__location_id"."parent_left" >= $934) AND ("stock_move__location_id"."parent_left" < $935))) OR (("stock_move__location_id"."parent_left" >= $936) AND ("stock_move__location_id"."parent_left" < $937))) OR (("stock_move__location_id"."parent_left" >= $938) AND ("stock_move__location_id"."parent_left" < $939))) OR (("stock_move__location_id"."parent_left" >= $940) AND ("stock_move__location_id"."parent_left" < $941))) OR (("stock_move__location_id"."parent_left" >= $942) AND ("stock_move__location_id"."parent_left" < $943))) OR (("stock_move__location_id"."parent_left" >= $944) AND ("stock_move__location_id"."parent_left" < $945))) OR (("stock_move__location_id"."parent_left" >= $946) AND ("stock_move__location_id"."parent_left" < $947))) OR (("stock_move__location_id"."parent_left" >= $948) AND ("stock_move__location_id"."parent_left" < $949))) OR (("stock_move__location_id"."parent_left" >= $950) AND ("stock_move__location_id"."parent_left" < $951))) OR (("stock_move__location_id"."parent_left" >= $952) AND ("stock_move__location_id"."parent_left" < $953))) OR (("stock_move__location_id"."parent_left" >= $954) AND ("stock_move__location_id"."parent_left" < $955)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $956) OR ("stock_move__location_dest_id"."parent_left" >= $957)) AND (("stock_move__location_dest_id"."parent_left" < $958) OR ("stock_move__location_dest_id"."parent_left" >= $959))) AND (("stock_move__location_dest_id"."parent_left" < $960) OR ("stock_move__location_dest_id"."parent_left" >= $961))) AND (("stock_move__location_dest_id"."parent_left" < $962) OR ("stock_move__location_dest_id"."parent_left" >= $963))) AND (("stock_move__location_dest_id"."parent_left" < $964) OR ("stock_move__location_dest_id"."parent_left" >= $965))) AND (("stock_move__location_dest_id"."parent_left" < $966) OR ("stock_move__location_dest_id"."parent_left" >= $967))) AND (("stock_move__location_dest_id"."parent_left" < $968) OR ("stock_move__location_dest_id"."parent_left" >= $969))) AND (("stock_move__location_dest_id"."parent_left" < $970) OR ("stock_move__location_dest_id"."parent_left" >= $971))) AND (("stock_move__location_dest_id"."parent_left" < $972) OR ("stock_move__location_dest_id"."parent_left" >= $973))) AND (("stock_move__location_dest_id"."parent_left" < $974) OR ("stock_move__location_dest_id"."parent_left" >= $975))) AND (("stock_move__location_dest_id"."parent_left" < $976) OR ("stock_move__location_dest_id"."parent_left" >= $977))) AND (("stock_move__location_dest_id"."parent_left" < $978) OR ("stock_move__location_dest_id"."parent_left" >= $979))) AND (("stock_move__location_dest_id"."parent_left" < $980) OR ("stock_move__location_dest_id"."parent_left" >= $981))) AND (("stock_move__location_dest_id"."parent_left" < $982) OR ("stock_move__location_dest_id"."parent_left" >= $983))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
121 min
< 0.1%
|
34,333 ms
|
211
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641,$642,$643,$644,$645,$646,$647,$648,$649,$650,$651,$652,$653,$654,$655,$656,$657,$658,$659,$660,$661,$662,$663,$664,$665,$666,$667,$668,$669,$670,$671,$672,$673,$674,$675,$676,$677,$678,$679,$680,$681,$682,$683,$684,$685,$686,$687,$688,$689,$690,$691,$692,$693,$694,$695,$696,$697,$698,$699,$700,$701,$702,$703,$704,$705,$706,$707,$708,$709,$710,$711,$712,$713,$714,$715,$716,$717,$718,$719,$720,$721,$722,$723,$724,$725,$726,$727,$728,$729,$730,$731,$732,$733,$734,$735,$736,$737,$738,$739,$740,$741,$742,$743,$744,$745,$746,$747,$748,$749,$750,$751,$752,$753,$754,$755,$756,$757,$758,$759,$760,$761,$762,$763,$764,$765,$766,$767,$768,$769,$770,$771,$772,$773,$774,$775,$776,$777,$778,$779,$780,$781,$782,$783,$784,$785,$786,$787,$788,$789,$790,$791,$792,$793,$794,$795,$796,$797,$798,$799,$800,$801,$802,$803,$804,$805,$806,$807,$808,$809,$810,$811,$812,$813,$814,$815,$816,$817,$818,$819,$820,$821,$822,$823,$824,$825,$826,$827,$828,$829,$830,$831,$832,$833,$834,$835,$836,$837,$838,$839,$840,$841,$842,$843,$844,$845,$846,$847,$848,$849,$850,$851,$852,$853,$854,$855,$856,$857,$858,$859,$860,$861,$862,$863,$864,$865,$866,$867,$868,$869,$870,$871,$872,$873,$874,$875,$876,$877,$878,$879,$880,$881,$882,$883,$884,$885,$886,$887,$888,$889,$890,$891,$892,$893,$894,$895,$896,$897,$898,$899,$900,$901,$902,$903,$904,$905,$906,$907,$908,$909,$910,$911,$912,$913,$914,$915,$916,$917,$918,$919,$920,$921,$922,$923,$924,$925,$926,$927,$928,$929,$930,$931,$932,$933,$934,$935,$936,$937,$938,$939,$940,$941,$942,$943,$944,$945,$946,$947,$948,$949,$950,$951,$952,$953,$954,$955,$956,$957,$958,$959,$960,$961,$962,$963,$964,$965,$966,$967,$968,$969,$970,$971,$972,$973,$974,$975,$976,$977,$978,$979,$980,$981,$982,$983,$984,$985,$986,$987,$988,$989,$990,$991,$992,$993,$994,$995,$996,$997,$998,$999,$1000,$1001,$1002,$1003,$1004,$1005,$1006,$1007,$1008,$1009,$1010,$1011,$1012,$1013,$1014,$1015,$1016,$1017,$1018,$1019,$1020,$1021,$1022,$1023,$1024,$1025,$1026,$1027,$1028,$1029,$1030,$1031,$1032,$1033,$1034,$1035,$1036,$1037,$1038,$1039,$1040,$1041,$1042,$1043,$1044,$1045,$1046,$1047,$1048,$1049,$1050,$1051,$1052,$1053,$1054,$1055,$1056,$1057,$1058,$1059,$1060,$1061,$1062,$1063,$1064,$1065,$1066,$1067,$1068,$1069,$1070,$1071,$1072,$1073,$1074,$1075,$1076,$1077,$1078,$1079,$1080,$1081,$1082,$1083,$1084,$1085,$1086,$1087,$1088,$1089,$1090,$1091,$1092,$1093,$1094,$1095,$1096,$1097,$1098,$1099,$1100,$1101,$1102,$1103,$1104,$1105,$1106,$1107,$1108,$1109,$1110,$1111,$1112,$1113,$1114,$1115,$1116,$1117,$1118,$1119,$1120,$1121,$1122,$1123,$1124,$1125,$1126,$1127,$1128,$1129,$1130,$1131,$1132,$1133,$1134,$1135,$1136,$1137,$1138,$1139,$1140,$1141,$1142,$1143,$1144,$1145,$1146,$1147,$1148,$1149,$1150,$1151,$1152,$1153,$1154,$1155,$1156,$1157,$1158,$1159,$1160,$1161,$1162,$1163,$1164,$1165,$1166,$1167,$1168,$1169,$1170,$1171,$1172,$1173,$1174,$1175,$1176,$1177,$1178,$1179,$1180,$1181,$1182,$1183,$1184,$1185,$1186,$1187,$1188,$1189,$1190,$1191,$1192,$1193,$1194,$1195,$1196,$1197,$1198,$1199,$1200,$1201,$1202,$1203,$1204,$1205,$1206,$1207,$1208,$1209,$1210,$1211,$1212,$1213,$1214,$1215,$1216,$1217,$1218,$1219,$1220,$1221,$1222,$1223,$1224,$1225,$1226,$1227,$1228,$1229,$1230,$1231,$1232,$1233,$1234,$1235,$1236,$1237,$1238,$1239,$1240,$1241,$1242,$1243,$1244,$1245,$1246,$1247,$1248,$1249,$1250,$1251,$1252,$1253,$1254,$1255,$1256,$1257,$1258,$1259,$1260,$1261,$1262,$1263,$1264,$1265,$1266,$1267,$1268,$1269,$1270,$1271,$1272,$1273,$1274,$1275,$1276,$1277,$1278,$1279,$1280,$1281,$1282,$1283,$1284,$1285,$1286,$1287,$1288,$1289,$1290,$1291,$1292,$1293,$1294,$1295,$1296,$1297,$1298,$1299,$1300,$1301,$1302,$1303,$1304,$1305,$1306,$1307,$1308,$1309,$1310,$1311,$1312,$1313,$1314,$1315,$1316,$1317,$1318,$1319,$1320,$1321,$1322,$1323,$1324,$1325,$1326,$1327,$1328,$1329,$1330,$1331,$1332,$1333,$1334,$1335,$1336,$1337,$1338,$1339,$1340,$1341,$1342,$1343,$1344,$1345,$1346,$1347,$1348,$1349,$1350,$1351,$1352,$1353,$1354,$1355,$1356,$1357,$1358,$1359,$1360,$1361,$1362,$1363,$1364,$1365,$1366,$1367,$1368,$1369,$1370,$1371,$1372,$1373,$1374,$1375,$1376,$1377,$1378,$1379,$1380,$1381,$1382,$1383,$1384,$1385,$1386,$1387,$1388,$1389,$1390,$1391,$1392,$1393,$1394,$1395,$1396,$1397,$1398,$1399,$1400,$1401,$1402,$1403,$1404,$1405,$1406,$1407,$1408,$1409,$1410,$1411,$1412,$1413,$1414,$1415,$1416,$1417,$1418,$1419,$1420,$1421,$1422,$1423,$1424,$1425,$1426,$1427,$1428,$1429,$1430,$1431,$1432,$1433,$1434,$1435,$1436,$1437,$1438,$1439,$1440,$1441,$1442,$1443,$1444,$1445,$1446,$1447,$1448,$1449,$1450,$1451,$1452,$1453,$1454,$1455,$1456,$1457,$1458,$1459,$1460,$1461,$1462,$1463,$1464,$1465,$1466,$1467,$1468,$1469,$1470,$1471,$1472,$1473,$1474,$1475,$1476,$1477,$1478,$1479,$1480,$1481,$1482,$1483,$1484,$1485,$1486,$1487,$1488,$1489,$1490,$1491,$1492,$1493,$1494,$1495,$1496,$1497,$1498,$1499,$1500,$1501,$1502,$1503,$1504,$1505,$1506,$1507,$1508,$1509,$1510,$1511,$1512,$1513,$1514,$1515,$1516,$1517,$1518,$1519,$1520,$1521,$1522,$1523,$1524,$1525,$1526,$1527,$1528,$1529,$1530,$1531,$1532,$1533,$1534,$1535,$1536,$1537,$1538,$1539,$1540,$1541,$1542,$1543,$1544,$1545,$1546,$1547,$1548,$1549,$1550,$1551,$1552,$1553,$1554,$1555,$1556,$1557,$1558,$1559,$1560,$1561,$1562,$1563,$1564,$1565,$1566,$1567,$1568,$1569,$1570,$1571,$1572,$1573,$1574,$1575,$1576,$1577,$1578,$1579,$1580,$1581,$1582,$1583,$1584,$1585,$1586,$1587,$1588,$1589,$1590,$1591,$1592,$1593,$1594,$1595,$1596,$1597,$1598,$1599,$1600,$1601,$1602,$1603,$1604,$1605,$1606,$1607,$1608,$1609,$1610,$1611,$1612,$1613,$1614,$1615,$1616,$1617,$1618,$1619,$1620,$1621,$1622,$1623,$1624,$1625,$1626,$1627,$1628,$1629,$1630,$1631,$1632,$1633,$1634,$1635,$1636,$1637,$1638,$1639,$1640,$1641,$1642,$1643,$1644,$1645,$1646,$1647,$1648,$1649,$1650,$1651,$1652,$1653,$1654,$1655,$1656,$1657,$1658,$1659,$1660,$1661,$1662,$1663,$1664,$1665,$1666,$1667,$1668,$1669,$1670,$1671,$1672,$1673,$1674,$1675,$1676,$1677,$1678,$1679,$1680,$1681,$1682,$1683,$1684,$1685,$1686,$1687,$1688,$1689,$1690,$1691,$1692,$1693,$1694,$1695,$1696,$1697,$1698,$1699,$1700,$1701,$1702,$1703,$1704,$1705,$1706,$1707,$1708,$1709,$1710,$1711,$1712,$1713,$1714,$1715,$1716,$1717,$1718,$1719,$1720,$1721,$1722,$1723,$1724,$1725,$1726,$1727,$1728,$1729,$1730,$1731,$1732,$1733,$1734,$1735,$1736,$1737,$1738,$1739,$1740,$1741,$1742,$1743,$1744,$1745,$1746,$1747,$1748,$1749,$1750,$1751,$1752,$1753,$1754,$1755,$1756,$1757,$1
|
121 min
< 0.1%
|
318 ms
|
22,737
odoo
|
SELECT "sale_order".id FROM "sale_order" WHERE ((("sale_order"."partner_id" = $1) AND ("sale_order"."brand_id" = $2)) AND ("sale_order"."create_date" < $3)) ORDER BY "sale_order"."date_order" DESC,"sale_order"."id" DESC limit $4
Covered by index on (partner_id)
Rows: 881291
Row progression: 881291, 9
Row estimates
- partner_id (=): 9
- brand_id (=): 12240
- create_date (<): 88129
- date_order (sort): 1
Existing indexes
- id PRIMARY
- brand_id
- code
- confirmation_date
- create_date
- date_order
- deliverect_id UNIQUE
- dh_token UNIQUE
- fo_state
- instashop_id UNIQUE
- name
- partner_id
- platform_id
- state
- user_id
- zomato_id UNIQUE
|
113 min
< 0.1%
|
13,581 ms
|
498
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $618) AND ("stock_move__location_id"."parent_left" < $619)) OR (("stock_move__location_id"."parent_left" >= $620) AND ("stock_move__location_id"."parent_left" < $621))) OR (("stock_move__location_id"."parent_left" >= $622) AND ("stock_move__location_id"."parent_left" < $623))) OR (("stock_move__location_id"."parent_left" >= $624) AND ("stock_move__location_id"."parent_left" < $625))) OR (("stock_move__location_id"."parent_left" >= $626) AND ("stock_move__location_id"."parent_left" < $627))) OR (("stock_move__location_id"."parent_left" >= $628) AND ("stock_move__location_id"."parent_left" < $629))) OR (("stock_move__location_id"."parent_left" >= $630) AND ("stock_move__location_id"."parent_left" < $631))) OR (("stock_move__location_id"."parent_left" >= $632) AND ("stock_move__location_id"."parent_left" < $633))) OR (("stock_move__location_id"."parent_left" >= $634) AND ("stock_move__location_id"."parent_left" < $635))) OR (("stock_move__location_id"."parent_left" >= $636) AND ("stock_move__location_id"."parent_left" < $637))) OR (("stock_move__location_id"."parent_left" >= $638) AND ("stock_move__location_id"."parent_left" < $639))) OR (("stock_move__location_id"."parent_left" >= $640) AND ("stock_move__location_id"."parent_left" < $641))) OR (("stock_move__location_id"."parent_left" >= $642) AND ("stock_move__location_id"."parent_left" < $643))) OR (("stock_move__location_id"."parent_left" >= $644) AND ("stock_move__location_id"."parent_left" < $645)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $646) OR ("stock_move__location_dest_id"."parent_left" >= $647)) AND (("stock_move__location_dest_id"."parent_left" < $648) OR ("stock_move__location_dest_id"."parent_left" >= $649))) AND (("stock_move__location_dest_id"."parent_left" < $650) OR ("stock_move__location_dest_id"."parent_left" >= $651))) AND (("stock_move__location_dest_id"."parent_left" < $652) OR ("stock_move__location_dest_id"."parent_left" >= $653))) AND (("stock_move__location_dest_id"."parent_left" < $654) OR ("stock_move__location_dest_id"."parent_left" >= $655))) AND (("stock_move__location_dest_id"."parent_left" < $656) OR ("stock_move__location_dest_id"."parent_left" >= $657))) AND (("stock_move__location_dest_id"."parent_left" < $658) OR ("stock_move__location_dest_id"."parent_left" >= $659))) AND (("stock_move__location_dest_id"."parent_left" < $660) OR ("stock_move__location_dest_id"."parent_left" >= $661))) AND (("stock_move__location_dest_id"."parent_left" < $662) OR ("stock_move__location_dest_id"."parent_left" >= $663))) AND (("stock_move__location_dest_id"."parent_left" < $664) OR ("stock_move__location_dest_id"."parent_left" >= $665))) AND (("stock_move__location_dest_id"."parent_left" < $666) OR ("stock_move__location_dest_id"."parent_left" >= $667))) AND (("stock_move__location_dest_id"."parent_left" < $668) OR ("stock_move__location_dest_id"."parent_left" >= $669))) AND (("stock_move__location_dest_id"."parent_left" < $670) OR ("stock_move__location_dest_id"."parent_left" >= $671))) AND (("stock_move__location_dest_id"."parent_left" < $672) OR ("stock_move__location_dest_id"."parent_left" >= $673))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
111 min
< 0.1%
|
98 ms
|
68,019
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"
|
102 min
< 0.1%
|
12,070 ms
|
508
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $642) AND ("stock_move__location_id"."parent_left" < $643)) OR (("stock_move__location_id"."parent_left" >= $644) AND ("stock_move__location_id"."parent_left" < $645))) OR (("stock_move__location_id"."parent_left" >= $646) AND ("stock_move__location_id"."parent_left" < $647))) OR (("stock_move__location_id"."parent_left" >= $648) AND ("stock_move__location_id"."parent_left" < $649))) OR (("stock_move__location_id"."parent_left" >= $650) AND ("stock_move__location_id"."parent_left" < $651))) OR (("stock_move__location_id"."parent_left" >= $652) AND ("stock_move__location_id"."parent_left" < $653))) OR (("stock_move__location_id"."parent_left" >= $654) AND ("stock_move__location_id"."parent_left" < $655))) OR (("stock_move__location_id"."parent_left" >= $656) AND ("stock_move__location_id"."parent_left" < $657))) OR (("stock_move__location_id"."parent_left" >= $658) AND ("stock_move__location_id"."parent_left" < $659))) OR (("stock_move__location_id"."parent_left" >= $660) AND ("stock_move__location_id"."parent_left" < $661))) OR (("stock_move__location_id"."parent_left" >= $662) AND ("stock_move__location_id"."parent_left" < $663))) OR (("stock_move__location_id"."parent_left" >= $664) AND ("stock_move__location_id"."parent_left" < $665))) OR (("stock_move__location_id"."parent_left" >= $666) AND ("stock_move__location_id"."parent_left" < $667))) OR (("stock_move__location_id"."parent_left" >= $668) AND ("stock_move__location_id"."parent_left" < $669)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $670) OR ("stock_move__location_dest_id"."parent_left" >= $671)) AND (("stock_move__location_dest_id"."parent_left" < $672) OR ("stock_move__location_dest_id"."parent_left" >= $673))) AND (("stock_move__location_dest_id"."parent_left" < $674) OR ("stock_move__location_dest_id"."parent_left" >= $675))) AND (("stock_move__location_dest_id"."parent_left" < $676) OR ("stock_move__location_dest_id"."parent_left" >= $677))) AND (("stock_move__location_dest_id"."parent_left" < $678) OR ("stock_move__location_dest_id"."parent_left" >= $679))) AND (("stock_move__location_dest_id"."parent_left" < $680) OR ("stock_move__location_dest_id"."parent_left" >= $681))) AND (("stock_move__location_dest_id"."parent_left" < $682) OR ("stock_move__location_dest_id"."parent_left" >= $683))) AND (("stock_move__location_dest_id"."parent_left" < $684) OR ("stock_move__location_dest_id"."parent_left" >= $685))) AND (("stock_move__location_dest_id"."parent_left" < $686) OR ("stock_move__location_dest_id"."parent_left" >= $687))) AND (("stock_move__location_dest_id"."parent_left" < $688) OR ("stock_move__location_dest_id"."parent_left" >= $689))) AND (("stock_move__location_dest_id"."parent_left" < $690) OR ("stock_move__location_dest_id"."parent_left" >= $691))) AND (("stock_move__location_dest_id"."parent_left" < $692) OR ("stock_move__location_dest_id"."parent_left" >= $693))) AND (("stock_move__location_dest_id"."parent_left" < $694) OR ("stock_move__location_dest_id"."parent_left" >= $695))) AND (("stock_move__location_dest_id"."parent_left" < $696) OR ("stock_move__location_dest_id"."parent_left" >= $697))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
101 min
< 0.1%
|
11,649 ms
|
520
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $634) AND ("stock_move__location_id"."parent_left" < $635)) OR (("stock_move__location_id"."parent_left" >= $636) AND ("stock_move__location_id"."parent_left" < $637))) OR (("stock_move__location_id"."parent_left" >= $638) AND ("stock_move__location_id"."parent_left" < $639))) OR (("stock_move__location_id"."parent_left" >= $640) AND ("stock_move__location_id"."parent_left" < $641))) OR (("stock_move__location_id"."parent_left" >= $642) AND ("stock_move__location_id"."parent_left" < $643))) OR (("stock_move__location_id"."parent_left" >= $644) AND ("stock_move__location_id"."parent_left" < $645))) OR (("stock_move__location_id"."parent_left" >= $646) AND ("stock_move__location_id"."parent_left" < $647))) OR (("stock_move__location_id"."parent_left" >= $648) AND ("stock_move__location_id"."parent_left" < $649))) OR (("stock_move__location_id"."parent_left" >= $650) AND ("stock_move__location_id"."parent_left" < $651))) OR (("stock_move__location_id"."parent_left" >= $652) AND ("stock_move__location_id"."parent_left" < $653))) OR (("stock_move__location_id"."parent_left" >= $654) AND ("stock_move__location_id"."parent_left" < $655))) OR (("stock_move__location_id"."parent_left" >= $656) AND ("stock_move__location_id"."parent_left" < $657))) OR (("stock_move__location_id"."parent_left" >= $658) AND ("stock_move__location_id"."parent_left" < $659))) OR (("stock_move__location_id"."parent_left" >= $660) AND ("stock_move__location_id"."parent_left" < $661)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $662) OR ("stock_move__location_dest_id"."parent_left" >= $663)) AND (("stock_move__location_dest_id"."parent_left" < $664) OR ("stock_move__location_dest_id"."parent_left" >= $665))) AND (("stock_move__location_dest_id"."parent_left" < $666) OR ("stock_move__location_dest_id"."parent_left" >= $667))) AND (("stock_move__location_dest_id"."parent_left" < $668) OR ("stock_move__location_dest_id"."parent_left" >= $669))) AND (("stock_move__location_dest_id"."parent_left" < $670) OR ("stock_move__location_dest_id"."parent_left" >= $671))) AND (("stock_move__location_dest_id"."parent_left" < $672) OR ("stock_move__location_dest_id"."parent_left" >= $673))) AND (("stock_move__location_dest_id"."parent_left" < $674) OR ("stock_move__location_dest_id"."parent_left" >= $675))) AND (("stock_move__location_dest_id"."parent_left" < $676) OR ("stock_move__location_dest_id"."parent_left" >= $677))) AND (("stock_move__location_dest_id"."parent_left" < $678) OR ("stock_move__location_dest_id"."parent_left" >= $679))) AND (("stock_move__location_dest_id"."parent_left" < $680) OR ("stock_move__location_dest_id"."parent_left" >= $681))) AND (("stock_move__location_dest_id"."parent_left" < $682) OR ("stock_move__location_dest_id"."parent_left" >= $683))) AND (("stock_move__location_dest_id"."parent_left" < $684) OR ("stock_move__location_dest_id"."parent_left" >= $685))) AND (("stock_move__location_dest_id"."parent_left" < $686) OR ("stock_move__location_dest_id"."parent_left" >= $687))) AND (("stock_move__location_dest_id"."parent_left" < $688) OR ("stock_move__location_dest_id"."parent_left" >= $689))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
101 min
< 0.1%
|
12,402 ms
|
488
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629))) AND ((((((((((((((("stock_move__location_id"."parent_left" >= $630) AND ("stock_move__location_id"."parent_left" < $631)) OR (("stock_move__location_id"."parent_left" >= $632) AND ("stock_move__location_id"."parent_left" < $633))) OR (("stock_move__location_id"."parent_left" >= $634) AND ("stock_move__location_id"."parent_left" < $635))) OR (("stock_move__location_id"."parent_left" >= $636) AND ("stock_move__location_id"."parent_left" < $637))) OR (("stock_move__location_id"."parent_left" >= $638) AND ("stock_move__location_id"."parent_left" < $639))) OR (("stock_move__location_id"."parent_left" >= $640) AND ("stock_move__location_id"."parent_left" < $641))) OR (("stock_move__location_id"."parent_left" >= $642) AND ("stock_move__location_id"."parent_left" < $643))) OR (("stock_move__location_id"."parent_left" >= $644) AND ("stock_move__location_id"."parent_left" < $645))) OR (("stock_move__location_id"."parent_left" >= $646) AND ("stock_move__location_id"."parent_left" < $647))) OR (("stock_move__location_id"."parent_left" >= $648) AND ("stock_move__location_id"."parent_left" < $649))) OR (("stock_move__location_id"."parent_left" >= $650) AND ("stock_move__location_id"."parent_left" < $651))) OR (("stock_move__location_id"."parent_left" >= $652) AND ("stock_move__location_id"."parent_left" < $653))) OR (("stock_move__location_id"."parent_left" >= $654) AND ("stock_move__location_id"."parent_left" < $655))) OR (("stock_move__location_id"."parent_left" >= $656) AND ("stock_move__location_id"."parent_left" < $657)))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" < $658) OR ("stock_move__location_dest_id"."parent_left" >= $659)) AND (("stock_move__location_dest_id"."parent_left" < $660) OR ("stock_move__location_dest_id"."parent_left" >= $661))) AND (("stock_move__location_dest_id"."parent_left" < $662) OR ("stock_move__location_dest_id"."parent_left" >= $663))) AND (("stock_move__location_dest_id"."parent_left" < $664) OR ("stock_move__location_dest_id"."parent_left" >= $665))) AND (("stock_move__location_dest_id"."parent_left" < $666) OR ("stock_move__location_dest_id"."parent_left" >= $667))) AND (("stock_move__location_dest_id"."parent_left" < $668) OR ("stock_move__location_dest_id"."parent_left" >= $669))) AND (("stock_move__location_dest_id"."parent_left" < $670) OR ("stock_move__location_dest_id"."parent_left" >= $671))) AND (("stock_move__location_dest_id"."parent_left" < $672) OR ("stock_move__location_dest_id"."parent_left" >= $673))) AND (("stock_move__location_dest_id"."parent_left" < $674) OR ("stock_move__location_dest_id"."parent_left" >= $675))) AND (("stock_move__location_dest_id"."parent_left" < $676) OR ("stock_move__location_dest_id"."parent_left" >= $677))) AND (("stock_move__location_dest_id"."parent_left" < $678) OR ("stock_move__location_dest_id"."parent_left" >= $679))) AND (("stock_move__location_dest_id"."parent_left" < $680) OR ("stock_move__location_dest_id"."parent_left" >= $681))) AND (("stock_move__location_dest_id"."parent_left" < $682) OR ("stock_move__location_dest_id"."parent_left" >= $683))) AND (("stock_move__location_dest_id"."parent_left" < $684) OR ("stock_move__location_dest_id"."parent_left" >= $685))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
95 min
< 0.1%
|
6,698 ms
|
848
odoo
|
SELECT min("stock_quant".id) AS id, count("stock_quant".id) AS "product_id_count" , sum("stock_quant"."quantity") AS "quantity" ,"stock_quant"."product_id" as "product_id"
FROM "stock_location" as "stock_quant__location_id","stock_quant"
WHERE ("stock_quant"."location_id"="stock_quant__location_id"."id") AND (("stock_quant"."product_id" in ($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,$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,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608)) AND ((((((((((((((("stock_quant__location_id"."parent_left" >= $609) AND ("stock_quant__location_id"."parent_left" < $610)) OR (("stock_quant__location_id"."parent_left" >= $611) AND ("stock_quant__location_id"."parent_left" < $612))) OR (("stock_quant__location_id"."parent_left" >= $613) AND ("stock_quant__location_id"."parent_left" < $614))) OR (("stock_quant__location_id"."parent_left" >= $615) AND ("stock_quant__location_id"."parent_left" < $616))) OR (("stock_quant__location_id"."parent_left" >= $617) AND ("stock_quant__location_id"."parent_left" < $618))) OR (("stock_quant__location_id"."parent_left" >= $619) AND ("stock_quant__location_id"."parent_left" < $620))) OR (("stock_quant__location_id"."parent_left" >= $621) AND ("stock_quant__location_id"."parent_left" < $622))) OR (("stock_quant__location_id"."parent_left" >= $623) AND ("stock_quant__location_id"."parent_left" < $624))) OR (("stock_quant__location_id"."parent_left" >= $625) AND ("stock_quant__location_id"."parent_left" < $626))) OR (("stock_quant__location_id"."parent_left" >= $627) AND ("stock_quant__location_id"."parent_left" < $628))) OR (("stock_quant__location_id"."parent_left" >= $629) AND ("stock_quant__location_id"."parent_left" < $630))) OR (("stock_quant__location_id"."parent_left" >= $631) AND ("stock_quant__location_id"."parent_left" < $632))) OR (("stock_quant__location_id"."parent_left" >= $633) AND ("stock_quant__location_id"."parent_left" < $634))) OR (("stock_quant__location_id"."parent_left" >= $635) AND ("stock_quant__location_id"."parent_left" < $636))))
GROUP BY "stock_quant"."product_id"
ORDER BY "id"
|
92 min
< 0.1%
|
4,890 ms
|
1,129
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,$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))) AND (("stock_move__location_id"."parent_left" >= $258) AND ("stock_move__location_id"."parent_left" < $259))) AND (("stock_move__location_dest_id"."parent_left" < $260) OR ("stock_move__location_dest_id"."parent_left" >= $261)))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
87 min
< 0.1%
|
8,725 ms
|
596
odoo
|
SELECT min("stock_quant".id) AS id, count("stock_quant".id) AS "product_id_count" , sum("stock_quant"."quantity") AS "quantity" ,"stock_quant"."product_id" as "product_id"
FROM "stock_location" as "stock_quant__location_id","stock_quant"
WHERE ("stock_quant"."location_id"="stock_quant__location_id"."id") AND (("stock_quant"."product_id" in ($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,$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,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597)) AND ((((((((((((((("stock_quant__location_id"."parent_left" >= $598) AND ("stock_quant__location_id"."parent_left" < $599)) OR (("stock_quant__location_id"."parent_left" >= $600) AND ("stock_quant__location_id"."parent_left" < $601))) OR (("stock_quant__location_id"."parent_left" >= $602) AND ("stock_quant__location_id"."parent_left" < $603))) OR (("stock_quant__location_id"."parent_left" >= $604) AND ("stock_quant__location_id"."parent_left" < $605))) OR (("stock_quant__location_id"."parent_left" >= $606) AND ("stock_quant__location_id"."parent_left" < $607))) OR (("stock_quant__location_id"."parent_left" >= $608) AND ("stock_quant__location_id"."parent_left" < $609))) OR (("stock_quant__location_id"."parent_left" >= $610) AND ("stock_quant__location_id"."parent_left" < $611))) OR (("stock_quant__location_id"."parent_left" >= $612) AND ("stock_quant__location_id"."parent_left" < $613))) OR (("stock_quant__location_id"."parent_left" >= $614) AND ("stock_quant__location_id"."parent_left" < $615))) OR (("stock_quant__location_id"."parent_left" >= $616) AND ("stock_quant__location_id"."parent_left" < $617))) OR (("stock_quant__location_id"."parent_left" >= $618) AND ("stock_quant__location_id"."parent_left" < $619))) OR (("stock_quant__location_id"."parent_left" >= $620) AND ("stock_quant__location_id"."parent_left" < $621))) OR (("stock_quant__location_id"."parent_left" >= $622) AND ("stock_quant__location_id"."parent_left" < $623))) OR (("stock_quant__location_id"."parent_left" >= $624) AND ("stock_quant__location_id"."parent_left" < $625))))
GROUP BY "stock_quant"."product_id"
ORDER BY "id"
|
82 min
< 0.1%
|
45 ms
|
110,671
odoo
|
INSERT INTO "stock_move" ("id", "warehouse_id", "state", "procure_method", "product_id", "sequence", "additional", "location_id", "partner_id", "product_uom_qty", "origin", "group_id", "propagate", "date_expected", "picking_type_id", "priority", "sale_line_id", "rule_id", "product_uom", "is_done", "ordered_qty", "location_dest_id", "name", "scrapped", "to_refund", "company_id", "date", "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, $26, $27, $28, $29, (now() at time zone $30), (now() at time zone $31)) RETURNING id
|
80 min
< 0.1%
|
9,226 ms
|
520
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $634) AND ("stock_move__location_dest_id"."parent_left" < $635)) OR (("stock_move__location_dest_id"."parent_left" >= $636) AND ("stock_move__location_dest_id"."parent_left" < $637))) OR (("stock_move__location_dest_id"."parent_left" >= $638) AND ("stock_move__location_dest_id"."parent_left" < $639))) OR (("stock_move__location_dest_id"."parent_left" >= $640) AND ("stock_move__location_dest_id"."parent_left" < $641))) OR (("stock_move__location_dest_id"."parent_left" >= $642) AND ("stock_move__location_dest_id"."parent_left" < $643))) OR (("stock_move__location_dest_id"."parent_left" >= $644) AND ("stock_move__location_dest_id"."parent_left" < $645))) OR (("stock_move__location_dest_id"."parent_left" >= $646) AND ("stock_move__location_dest_id"."parent_left" < $647))) OR (("stock_move__location_dest_id"."parent_left" >= $648) AND ("stock_move__location_dest_id"."parent_left" < $649))) OR (("stock_move__location_dest_id"."parent_left" >= $650) AND ("stock_move__location_dest_id"."parent_left" < $651))) OR (("stock_move__location_dest_id"."parent_left" >= $652) AND ("stock_move__location_dest_id"."parent_left" < $653))) OR (("stock_move__location_dest_id"."parent_left" >= $654) AND ("stock_move__location_dest_id"."parent_left" < $655))) OR (("stock_move__location_dest_id"."parent_left" >= $656) AND ("stock_move__location_dest_id"."parent_left" < $657))) OR (("stock_move__location_dest_id"."parent_left" >= $658) AND ("stock_move__location_dest_id"."parent_left" < $659))) OR (("stock_move__location_dest_id"."parent_left" >= $660) AND ("stock_move__location_dest_id"."parent_left" < $661)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $662) OR ("stock_move__location_id"."parent_left" >= $663)) AND (("stock_move__location_id"."parent_left" < $664) OR ("stock_move__location_id"."parent_left" >= $665))) AND (("stock_move__location_id"."parent_left" < $666) OR ("stock_move__location_id"."parent_left" >= $667))) AND (("stock_move__location_id"."parent_left" < $668) OR ("stock_move__location_id"."parent_left" >= $669))) AND (("stock_move__location_id"."parent_left" < $670) OR ("stock_move__location_id"."parent_left" >= $671))) AND (("stock_move__location_id"."parent_left" < $672) OR ("stock_move__location_id"."parent_left" >= $673))) AND (("stock_move__location_id"."parent_left" < $674) OR ("stock_move__location_id"."parent_left" >= $675))) AND (("stock_move__location_id"."parent_left" < $676) OR ("stock_move__location_id"."parent_left" >= $677))) AND (("stock_move__location_id"."parent_left" < $678) OR ("stock_move__location_id"."parent_left" >= $679))) AND (("stock_move__location_id"."parent_left" < $680) OR ("stock_move__location_id"."parent_left" >= $681))) AND (("stock_move__location_id"."parent_left" < $682) OR ("stock_move__location_id"."parent_left" >= $683))) AND (("stock_move__location_id"."parent_left" < $684) OR ("stock_move__location_id"."parent_left" >= $685))) AND (("stock_move__location_id"."parent_left" < $686) OR ("stock_move__location_id"."parent_left" >= $687))) AND (("stock_move__location_id"."parent_left" < $688) OR ("stock_move__location_id"."parent_left" >= $689))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
80 min
< 0.1%
|
9,360 ms
|
511
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617,$618,$619,$620,$621,$622,$623,$624,$625,$626,$627,$628,$629,$630,$631,$632,$633,$634,$635,$636,$637,$638,$639,$640,$641))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $642) AND ("stock_move__location_dest_id"."parent_left" < $643)) OR (("stock_move__location_dest_id"."parent_left" >= $644) AND ("stock_move__location_dest_id"."parent_left" < $645))) OR (("stock_move__location_dest_id"."parent_left" >= $646) AND ("stock_move__location_dest_id"."parent_left" < $647))) OR (("stock_move__location_dest_id"."parent_left" >= $648) AND ("stock_move__location_dest_id"."parent_left" < $649))) OR (("stock_move__location_dest_id"."parent_left" >= $650) AND ("stock_move__location_dest_id"."parent_left" < $651))) OR (("stock_move__location_dest_id"."parent_left" >= $652) AND ("stock_move__location_dest_id"."parent_left" < $653))) OR (("stock_move__location_dest_id"."parent_left" >= $654) AND ("stock_move__location_dest_id"."parent_left" < $655))) OR (("stock_move__location_dest_id"."parent_left" >= $656) AND ("stock_move__location_dest_id"."parent_left" < $657))) OR (("stock_move__location_dest_id"."parent_left" >= $658) AND ("stock_move__location_dest_id"."parent_left" < $659))) OR (("stock_move__location_dest_id"."parent_left" >= $660) AND ("stock_move__location_dest_id"."parent_left" < $661))) OR (("stock_move__location_dest_id"."parent_left" >= $662) AND ("stock_move__location_dest_id"."parent_left" < $663))) OR (("stock_move__location_dest_id"."parent_left" >= $664) AND ("stock_move__location_dest_id"."parent_left" < $665))) OR (("stock_move__location_dest_id"."parent_left" >= $666) AND ("stock_move__location_dest_id"."parent_left" < $667))) OR (("stock_move__location_dest_id"."parent_left" >= $668) AND ("stock_move__location_dest_id"."parent_left" < $669)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $670) OR ("stock_move__location_id"."parent_left" >= $671)) AND (("stock_move__location_id"."parent_left" < $672) OR ("stock_move__location_id"."parent_left" >= $673))) AND (("stock_move__location_id"."parent_left" < $674) OR ("stock_move__location_id"."parent_left" >= $675))) AND (("stock_move__location_id"."parent_left" < $676) OR ("stock_move__location_id"."parent_left" >= $677))) AND (("stock_move__location_id"."parent_left" < $678) OR ("stock_move__location_id"."parent_left" >= $679))) AND (("stock_move__location_id"."parent_left" < $680) OR ("stock_move__location_id"."parent_left" >= $681))) AND (("stock_move__location_id"."parent_left" < $682) OR ("stock_move__location_id"."parent_left" >= $683))) AND (("stock_move__location_id"."parent_left" < $684) OR ("stock_move__location_id"."parent_left" >= $685))) AND (("stock_move__location_id"."parent_left" < $686) OR ("stock_move__location_id"."parent_left" >= $687))) AND (("stock_move__location_id"."parent_left" < $688) OR ("stock_move__location_id"."parent_left" >= $689))) AND (("stock_move__location_id"."parent_left" < $690) OR ("stock_move__location_id"."parent_left" >= $691))) AND (("stock_move__location_id"."parent_left" < $692) OR ("stock_move__location_id"."parent_left" >= $693))) AND (("stock_move__location_id"."parent_left" < $694) OR ("stock_move__location_id"."parent_left" >= $695))) AND (("stock_move__location_id"."parent_left" < $696) OR ("stock_move__location_id"."parent_left" >= $697))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|
78 min
< 0.1%
|
106 ms
|
44,082
odoo
|
SELECT "product_product".id FROM "product_product" WHERE ("product_product"."active" = $1) ORDER BY "product_product"."default_code" ,"product_product"."id" limit $2
Covered by index on (active, default_code)
Rows: 1000206
Row progression: 1000206, 500103, 0
Row estimates
- active (=): 500103
- default_code (sort): 0
- id (sort): 1
Existing indexes
- id PRIMARY
- active, default_code
- barcode UNIQUE
- default_code
- product_tmpl_id
|
76 min
< 0.1%
|
9,209 ms
|
498
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,$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,$353,$354,$355,$356,$357,$358,$359,$360,$361,$362,$363,$364,$365,$366,$367,$368,$369,$370,$371,$372,$373,$374,$375,$376,$377,$378,$379,$380,$381,$382,$383,$384,$385,$386,$387,$388,$389,$390,$391,$392,$393,$394,$395,$396,$397,$398,$399,$400,$401,$402,$403,$404,$405,$406,$407,$408,$409,$410,$411,$412,$413,$414,$415,$416,$417,$418,$419,$420,$421,$422,$423,$424,$425,$426,$427,$428,$429,$430,$431,$432,$433,$434,$435,$436,$437,$438,$439,$440,$441,$442,$443,$444,$445,$446,$447,$448,$449,$450,$451,$452,$453,$454,$455,$456,$457,$458,$459,$460,$461,$462,$463,$464,$465,$466,$467,$468,$469,$470,$471,$472,$473,$474,$475,$476,$477,$478,$479,$480,$481,$482,$483,$484,$485,$486,$487,$488,$489,$490,$491,$492,$493,$494,$495,$496,$497,$498,$499,$500,$501,$502,$503,$504,$505,$506,$507,$508,$509,$510,$511,$512,$513,$514,$515,$516,$517,$518,$519,$520,$521,$522,$523,$524,$525,$526,$527,$528,$529,$530,$531,$532,$533,$534,$535,$536,$537,$538,$539,$540,$541,$542,$543,$544,$545,$546,$547,$548,$549,$550,$551,$552,$553,$554,$555,$556,$557,$558,$559,$560,$561,$562,$563,$564,$565,$566,$567,$568,$569,$570,$571,$572,$573,$574,$575,$576,$577,$578,$579,$580,$581,$582,$583,$584,$585,$586,$587,$588,$589,$590,$591,$592,$593,$594,$595,$596,$597,$598,$599,$600,$601,$602,$603,$604,$605,$606,$607,$608,$609,$610,$611,$612,$613,$614,$615,$616,$617))) AND ((((((((((((((("stock_move__location_dest_id"."parent_left" >= $618) AND ("stock_move__location_dest_id"."parent_left" < $619)) OR (("stock_move__location_dest_id"."parent_left" >= $620) AND ("stock_move__location_dest_id"."parent_left" < $621))) OR (("stock_move__location_dest_id"."parent_left" >= $622) AND ("stock_move__location_dest_id"."parent_left" < $623))) OR (("stock_move__location_dest_id"."parent_left" >= $624) AND ("stock_move__location_dest_id"."parent_left" < $625))) OR (("stock_move__location_dest_id"."parent_left" >= $626) AND ("stock_move__location_dest_id"."parent_left" < $627))) OR (("stock_move__location_dest_id"."parent_left" >= $628) AND ("stock_move__location_dest_id"."parent_left" < $629))) OR (("stock_move__location_dest_id"."parent_left" >= $630) AND ("stock_move__location_dest_id"."parent_left" < $631))) OR (("stock_move__location_dest_id"."parent_left" >= $632) AND ("stock_move__location_dest_id"."parent_left" < $633))) OR (("stock_move__location_dest_id"."parent_left" >= $634) AND ("stock_move__location_dest_id"."parent_left" < $635))) OR (("stock_move__location_dest_id"."parent_left" >= $636) AND ("stock_move__location_dest_id"."parent_left" < $637))) OR (("stock_move__location_dest_id"."parent_left" >= $638) AND ("stock_move__location_dest_id"."parent_left" < $639))) OR (("stock_move__location_dest_id"."parent_left" >= $640) AND ("stock_move__location_dest_id"."parent_left" < $641))) OR (("stock_move__location_dest_id"."parent_left" >= $642) AND ("stock_move__location_dest_id"."parent_left" < $643))) OR (("stock_move__location_dest_id"."parent_left" >= $644) AND ("stock_move__location_dest_id"."parent_left" < $645)))) AND ((((((((((((((("stock_move__location_id"."parent_left" < $646) OR ("stock_move__location_id"."parent_left" >= $647)) AND (("stock_move__location_id"."parent_left" < $648) OR ("stock_move__location_id"."parent_left" >= $649))) AND (("stock_move__location_id"."parent_left" < $650) OR ("stock_move__location_id"."parent_left" >= $651))) AND (("stock_move__location_id"."parent_left" < $652) OR ("stock_move__location_id"."parent_left" >= $653))) AND (("stock_move__location_id"."parent_left" < $654) OR ("stock_move__location_id"."parent_left" >= $655))) AND (("stock_move__location_id"."parent_left" < $656) OR ("stock_move__location_id"."parent_left" >= $657))) AND (("stock_move__location_id"."parent_left" < $658) OR ("stock_move__location_id"."parent_left" >= $659))) AND (("stock_move__location_id"."parent_left" < $660) OR ("stock_move__location_id"."parent_left" >= $661))) AND (("stock_move__location_id"."parent_left" < $662) OR ("stock_move__location_id"."parent_left" >= $663))) AND (("stock_move__location_id"."parent_left" < $664) OR ("stock_move__location_id"."parent_left" >= $665))) AND (("stock_move__location_id"."parent_left" < $666) OR ("stock_move__location_id"."parent_left" >= $667))) AND (("stock_move__location_id"."parent_left" < $668) OR ("stock_move__location_id"."parent_left" >= $669))) AND (("stock_move__location_id"."parent_left" < $670) OR ("stock_move__location_id"."parent_left" >= $671))) AND (("stock_move__location_id"."parent_left" < $672) OR ("stock_move__location_id"."parent_left" >= $673))))
GROUP BY "stock_move"."product_id"
ORDER BY "id"
|