mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: faster main page
Looks like bu.database_ids[1:].sorted('name') was breaking the prefech set leading to one query per build. Fiwing it by sorting without slicing the ignoring the first record. ~230 ms improvement over 1.7 second
This commit is contained in:
parent
415bd311cf
commit
d0eaa85574
@ -304,8 +304,8 @@
|
|||||||
Force Build
|
Force Build
|
||||||
</a>
|
</a>
|
||||||
<t t-if="bu.local_state=='running'">
|
<t t-if="bu.local_state=='running'">
|
||||||
<t t-foreach="bu.database_ids[1:].sorted('name')" t-as="db">
|
<t t-foreach="bu.database_ids.sorted('name')" t-as="db">
|
||||||
<a class="dropdown-item" t-attf-href="/runbot/run/{{bu.id}}/{{db.db_suffix}}">
|
<a t-if="db != bu.database_ids[0]" class="dropdown-item" t-attf-href="/runbot/run/{{bu.id}}/{{db.db_suffix}}">
|
||||||
<i class="fa fa-sign-in"/>
|
<i class="fa fa-sign-in"/>
|
||||||
Connect <t t-out="db.db_suffix"></t>
|
Connect <t t-out="db.db_suffix"></t>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user