[IMP] core: populate CLI improvements - #85537
Conversation
3077a51 to
8637ad0
Compare
|
@Xavier-Do Don't you think it could be useful to integrate the profiling feature directly into the populate script ? (And eventually the rollback part, but I can drop it, it's less useful). |
|
Forgot my last message, I didn't look at the diff. I don't have any objections if it is opt-in :) But keep in mind that the default profiler parameters includes the sql collector witch have an impact for a lot of fast queries. It would be great to have a way to define what we want to profile. I also wonder if a --profile option isn't too generic we may want to add that to odoo-bin some day. Those comments are just ideas the current solution looks great! |
73fe8e7 to
f189453
Compare
As I see it, when you use the profiler, you should limit yourself to the small (/medium) population size, since you'll globally have the same results and perf bottlenecks when investigating the creation of X records instead of X*10 records. (I even think I got some strange errors while trying profiling & rollback on complex models/sizes).
I don't have a better option in mind (and --populate-profile is overkill imho). |
|
Is there any human readable summary :D ? |
|
Profiling: creation of ir.profile records for each models population Rollback: allow triggering multiple times the same population, without any risk of records conflicts (& having to recreated a clean database) Note: those two options are mostly recommended for small models population. Indeed, profiling slows down the population, and large/medium population is already quite slow for some models (and it seems that the rollback breaks as well for some advanced models).
f189453 to
148af51
Compare
|
@robodoo r+ |
|
@robodoo rebase-ff |
|
Merge method set to rebase and fast-forward |
Profiling: creation of ir.profile records for each models population Rollback: allow triggering multiple times the same population, without any risk of records conflicts (& having to recreated a clean database) Note: those two options are mostly recommended for small models population. Indeed, profiling slows down the population, and large/medium population is already quite slow for some models (and it seems that the rollback breaks as well for some advanced models). Part-of: #85537
closes #85537 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr