discourse/plugins/poll/spec
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
..
controllers DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
fabricators FEATURE: Add Ranked Choice Voting 2024-07-17 11:49:14 +02:00
integration FEATURE: Add Ranked Choice Voting 2024-07-17 11:49:14 +02:00
jobs/regular DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
lib FIX: poll ranked choice result algo majority check (#28191) 2024-08-02 08:51:26 +02:00
models PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00
requests PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00
serializers DEV: Apply syntax_tree formatting to `plugins/*` 2023-01-07 11:11:37 +00:00