Odoo Aide

0

0
1 Answer
3
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
22087
| 9 9 12
Belgique
--Yenthe Van Ginneken--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
21/05/2019 04:11

Hi Tith,

The split_for_in_conditions is a built-in function in the Odoo core. You can find it in odoo/sql_db.py. See https://github.com/odoo/odoo/blob/12.0/odoo/sql_db.py#L254 

This method will call a function in the Odoo tools named "split_every". In short this function will split a list of identifiers into smaller tuples, which will give safer IN conditions when Odoo queries the database. Otherwise it would handle one huge set of data to do an IN SQL query, now it splits them up and does smaller (and thus more reliable) queries. You can find the code for this tool function at https://github.com/odoo/odoo/blob/659ff0da13951d0b940c24a070a4a7e51b0897bb/odoo/tools/misc.py#L689-L702


Regards,
Yenthe


1 Commentaires
Tith SereySambath
22/05/2019 00:16

Thank you so much Yenthe Van Ginneken

Poser une question
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register