Changes between Version 1 and Version 2 of P9
- Timestamp:
- 05/25/26 21:12:06 (16 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
P9
v1 v2 11 11 Complex reporting query that aggregates per-story statistics grouped by calendar quarter, then computes engagement rates, quarter-over-quarter growth percentages, and per-quarter rankings using window functions across three CTEs. 12 12 13 {{{ 13 {{{ 14 14 WITH quarterly_story_stats AS ( 15 15 SELECT … … 269 269 270 270 == Indexes for this queries 271 271 {{{ 272 272 CREATE INDEX idx_story_created_at 273 273 ON story(story_created_at); … … 294 294 295 295 CREATE INDEX idx_comment_story_id ON comment(story_id); 296 297 298 296 }}} 299 297 … … 304 302 ANALYZE likes; 305 303 ANALYZE comment; 306 304 }}} 307 305 |QUERY PLAN | 308 306 |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
