Changes between Version 12 and Version 13 of OtherTopics
- Timestamp:
- 06/24/26 21:13:26 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OtherTopics
v12 v13 128 128 -> Seq Scan on band b 129 129 130 **Planning Time: 3.057 ms 131 Execution Time: 0.838 ms** 132 }}} 130 }}} 131 132 **Planning Time: 3.057 ms** 133 134 135 **Execution Time: 0.838 ms**** 133 136 134 137 ==== EXPLAIN ANALYZE – After Indexes ==== … … 157 160 -> Seq Scan on venue_booking vb 158 161 -> Seq Scan on band b 159 ** 160 Planning Time: 1.506 ms 161 Execution Time: 0.492 ms** 162 }}} 162 }}} 163 **Planning Time: 1.506 ms** 164 165 166 **Execution Time: 0.492 ms** 163 167 164 168 ==== Performance Comparison ==== … … 259 263 -> Seq Scan on event_rsvp r (rows=104) 260 264 -> Seq Scan on attendance a (rows=370) 261 ** 262 Planning Time: 1.926 ms 263 Execution Time: 1.254 ms** 264 }}} 265 }}} 266 267 **Planning Time: 1.926 ms** 268 269 270 **Execution Time: 1.254 ms** 265 271 266 272 ==== EXPLAIN ANALYZE – After Indexes ==== … … 287 293 -> Seq Scan on event_rsvp r (rows=119) 288 294 -> Seq Scan on attendance a (rows=40) 289 290 **Planning Time: 1.314 ms 291 Execution Time: 1.122 ms** 292 }}} 295 }}} 296 297 298 **Planning Time: 1.314 ms** 299 300 301 **Execution Time: 1.122 ms** 293 302 294 303 ==== Performance Comparison ==== … … 320 329 321 330 {{{ 322 #! javascript331 #!sql 323 332 // Example: parameterized query for guest lookup 324 333 const result = await pool.query( … … 331 340 332 341 {{{ 333 #! javascript342 #!sql 334 343 // Example: parameterized INSERT for new booking 335 344 await pool.query( … … 348 357 349 358 {{{ 350 #! javascript359 #!sql 351 360 const bcrypt = require('bcrypt'); 352 361 const SALT_ROUNDS = 10; … … 373 382 374 383 {{{ 375 #! javascript384 #!sql 376 385 function requireAuth(req, res, next) { 377 386 if (!req.session || !req.session.user) {
