discourse/plugins/poll
Bianca Nenciu 9b0300a647
PERF: Preload voters_count and has_voted (#28808)
These fields are often used when serializing topics which may contain
multiple polls. On average, serializing a poll took 2+N queries where N
is the number of options. This change reduces the number of queries to
3, one for each field (Poll#voters_count, PollOption#voters_count and
Poll#has_voted?).
2024-09-10 18:41:08 +03:00
..
app PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00
assets FIX: poll preview list styling remove redundant bullets (#28592) 2024-09-10 10:54:59 +02:00
config Update translations (#28705) 2024-09-03 11:46:50 -04:00
db DEV: Promote historic post_deploy migrations (#28128) 2024-07-30 01:14:03 +08:00
jobs/regular DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib FIX: poll ranked choice result algo majority check (#28191) 2024-08-02 08:51:26 +02:00
spec PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00
test/javascripts DEV: Remove widget wrapper from poll plugin (#28666) 2024-09-04 09:38:22 +01:00
plugin.rb PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00