On 2017-10-27 06:35, Thierry Bruyere wrote:
> Is it possible to apply this type of search by domain by forcing the order of 
> domain clauses
> and so limiting the number of items involved in quantity calculation?

No, each clause is evaluated one by one individually. What may happen is
when the clause evaluation result is a SQL query then the database may
perform optimization by using a specific query plan.

If this is really a performance killer, you may create a custom function
field which implement a searcher that compose many clause together. In
your case, it will reproduce the _search_quantity but on the desired
subset of products.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20171027232037.GB6037%40kei.

Reply via email to