mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-30 09:30:17 -06:00
Done by denormalizing EventTag.issue, and adding that into an index. Targets: * get-event-within-query (when it's 'last' or 'first') * .count (of search query results) * min/max (for the first/prev/next/last buttons) (The min/max query's performance significantly improved by the addition of the index, but was also rewritten into a simple SELECT rather than MIN/MAX). When this code was written, I thought I had spectacularly improved performance. I now believe this was based on an error in my measurements, but that this still represents (mostly) an improvement, so I'll let it stand and will take it from here in subsequent commits.