You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kbrock so this originates in templates list, when I select 1 templates and choose provision VM.
With 70k templates this was doing 70k SQL queries, so it took like 8 minutes to load the VM provision workflow page.
But for 70k images, each :include takes about 6s to load, which results in like 30s and then create_hash_struct_from_vm_or_template take 1ms, so 70s for 70k templates.
So this still takes about 1.5 minute to load.
So it's pretty bad we need to load 70k AR object + N*70k included objects. Just to verify if 1 template is allowed. :-) So a bigger rewrite will be needed in this area I suppose. :-)
if I go to provision from instance list, that is even worse, several n+1 here, that goes also through genealogy, so we probably can't :include that. This repeats for every template:
At a high level, If the collection (instead of each template) were passed into create_hash_struct_from_vm_or_template, then the MiqPreload could be moved in there as well. The preload can be converted to using select with virtual and the number of queries/data downloaded would be reduced significantly. See [comment ref] for more details.
This issue has been automatically marked as stale because it has not been updated for at least 6 months.
If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.
kbrock so this originates in templates list, when I select 1 templates and choose provision VM.
With 70k templates this was doing 70k SQL queries, so it took like 8 minutes to load the VM provision workflow page.
But for 70k images, each :include takes about 6s to load, which results in like 30s and then create_hash_struct_from_vm_or_template take 1ms, so 70s for 70k templates.
So this still takes about 1.5 minute to load.
So it's pretty bad we need to load 70k AR object + N*70k included objects. Just to verify if 1 template is allowed. :-) So a bigger rewrite will be needed in this area I suppose. :-)
if I go to provision from instance list, that is even worse, several n+1 here, that goes also through genealogy, so we probably can't :include that. This repeats for every template:
but if I remember correctly, this doesn't have any search and will try to print me all 70k templates on 1 page?
also it's strange that the each template list has a different code
The text was updated successfully, but these errors were encountered: