Changes between Version 3 and Version 4 of Indexes


Ignore:
Timestamp:
02/04/26 20:10:20 (4 days ago)
Author:
233194
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Indexes

    v3 v4  
    178178
    179179=== Scenario 4: Admin Panel - Pending Approvals ===
    180 Without partial index:
    181 Index Scan using idx_build_approved_date on build b
    182   Index Cond: (is_approved = false)
    183   Buffers: shared hit=150
     180Without partial index: \\
     181Index Scan using idx_build_approved_date on build b \\
     182Index Cond: (is_approved = false) \\
     183Buffers: shared hit=150 \\
    184184Execution Time: 0.351 ms \\
    185185
    186 With partial index:
    187 Index Scan using idx_build_pending_date on build b
    188   Buffers: shared hit=68 read=2
     186With partial index: \\
     187Index Scan using idx_build_pending_date on build b \\
     188Buffers: shared hit=68 read=2 \\
    189189Execution Time: 0.219 ms \\
    190190
     
    194194=== Scenario 7: Top Performing Components Report ===
    195195
    196 Without indexes:
    197 Buffers: shared hit=7684
    198 Planning Time: 0.021 ms
    199 Execution Time: 506.953 ms
    200 
    201 With indexes:
    202 Buffers: shared hit=6379 read=351
    203 Planning Time: 0.022 ms
    204 Execution Time: 468.190 ms
     196Without indexes: \\
     197Buffers: shared hit=7684 \\
     198Planning Time: 0.021 ms \\
     199Execution Time: 506.953 ms \\
     200
     201With indexes: \\
     202Buffers: shared hit=6379 read=351 \\
     203Planning Time: 0.022 ms \\
     204Execution Time: 468.190 ms \\
    205205
    206206Result: The date index improved query performance, while not much, still a modest improvement reducing it from 506.953ms to 468.190ms. \\
     
    208208=== Scenario 8: User Reputation Leaderboard Report ===
    209209
    210 Without indexes:
    211 Buffers: shared hit=142884 dirtied=1, temp read=495 written=849
    212 Planning Time: 0.029 ms
    213 Execution Time: 553.368 ms
    214 
    215 With indexes:
    216 Buffers: shared hit=142892 read=1, temp read=231 written=584
    217 Planning Time: 0.022 ms
    218 Execution Time: 345.192 ms
     210Without indexes: \\
     211Buffers: shared hit=142884 dirtied=1, temp read=495 written=849 \\
     212Planning Time: 0.029 ms \\
     213Execution Time: 553.368 ms \\
     214
     215With indexes: \\
     216Buffers: shared hit=142892 read=1, temp read=231 written=584 \\
     217Planning Time: 0.022 ms \\
     218Execution Time: 345.192 ms \\
    219219
    220220Result: Here the improvement is much more noticeable than on Scenario 7, reducing the time from 553.368ms to 345.192ms. \\
     
    222222=== Scenario 9: Budget Tier Popularity Report ===
    223223
    224 Without indexes:
    225 Buffers: shared hit=1366 read=30
    226 Planning Time: 0.020 ms
    227 Execution Time: 131.234 ms
    228 
    229 With indexes:
    230 Buffers: shared hit=1396
    231 Planning Time: 0.029 ms
    232 Execution Time: 125.615 ms
     224Without indexes: \\
     225Buffers: shared hit=1366 read=30 \\
     226Planning Time: 0.020 ms \\
     227Execution Time: 131.234 ms \\
     228
     229With indexes: \\
     230Buffers: shared hit=1396 \\
     231Planning Time: 0.029 ms \\
     232Execution Time: 125.615 ms \\
    233233
    234234Result: Modest improvement, but the index still helped out with unnecessary reads, reducing time from 131.234ms to 125.615ms. \\