summaryrefslogtreecommitdiff
path: root/lib/Multi/Maintenance.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-07 11:07:57 +0200
committerYorhel <git@yorhel.nl>2019-10-07 11:11:49 +0200
commit65ed955890c7ee7250a2bce4467c8c092c1bbbbe (patch)
tree43dda83ad493e4350dff6af301f5c1a5b6b779aa /lib/Multi/Maintenance.pm
parentba02e35cea8f2f25ab0ed1a4fccc8983435f9671 (diff)
SQL: Perform incremental updates on tags_vn_inherit when tags are modified
This has some limitations: - tags.c_items is not updated, so that may be out of sync. (The UPDATE takes about 400ms, so doing that more regularly from Multi::Maintenance should be a viable option) - When the hidden flag of a VN is changed, the tags will also be out of sync. - I don't see a way to do fast incremental updates when tag entries themselves are changed, e.g. to handle changes in the tag tree or searchable flag
Diffstat (limited to 'lib/Multi/Maintenance.pm')
-rw-r--r--lib/Multi/Maintenance.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm
index 1ef68dbf..0308d171 100644
--- a/lib/Multi/Maintenance.pm
+++ b/lib/Multi/Maintenance.pm
@@ -66,7 +66,7 @@ my %dailies = (
) AS r(id)|,
# takes about 15 seconds max, still OK
- tagcache => 'SELECT tag_vn_calc()',
+ tagcache => 'SELECT tag_vn_calc(NULL)',
# takes about 25 seconds, OK
traitcache => 'SELECT traits_chars_calc()',