El 17/11/16 a les 09:55, Albert Cervera i Areny ha escrit:
2016-11-15 17:05 GMT+01:00 Cédric Krier <cedric.kr...@b2ck.com>:
> On 2016-11-15 07:02, Mikhail Savushkin wrote:
>> As long as we're talking about millions of DBs, this straightforward
>> approach wont work.
>
>
> - Improve the __setup__ methods:
>
> - find better than deepcopy:
> http://hg.tryton.org/trytond/file/default/trytond/model/model.py#l46
I'm not sure of what I'll say, but AFAIU deepcopy is used to support
several databases (with different modules). Would it be possible to
pass a "--single-database" parameter to trytond, so it would just
support a single database but it would also avoid deepcopying? Or is
there much more work than that?
Indeed there is an issue to remove multiple database support [1], so if
deepcopy is only used to support several databases it should be removed
with this issue and it will be great to have a note on it to not forget
about it.
[1] https://bugs.tryton.org/issue5694
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
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/29820a3d-c562-a7d6-043d-316a28dd2764%40koolpi.com.