mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
Update category document count using +1/-1 diff instead of running COUNT(*) query every time
This commit is contained in:
parent
85532fa502
commit
7df5a84f11
2 changed files with 19 additions and 9 deletions
|
|
@ -4,6 +4,7 @@
|
|||
</tables>
|
||||
<columns>
|
||||
<column name="document_count" var="document_count" />
|
||||
<column name="document_count" var="document_count_diff" operation="plus" />
|
||||
<column name="last_update" var="last_update" default="curdate()" />
|
||||
</columns>
|
||||
<conditions>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue