Changes between Version 2 and Version 3 of App


Ignore:
Timestamp:
09/04/25 23:21:54 (4 days ago)
Author:
163080
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • App

    v2 v3  
    3838  - `idx_invoice_notifications_invoice_id`: Speeds up notification retrieval
    3939  - `idx_invoice_notifications_processed`: Partial index for unprocessed notifications
     40
     41- Using `EXPLAIN` on the `Client` table
     42
     43  - Before creating the index:
     44
     45{{{
     46EXPLAIN ANALYZE SELECT * FROM "Client" WHERE email = 'client12@example.com';
     47}}}
     48
     49  - After adding index and creating 1000 rows:
     50{{{
     51EXPLAIN ANALYZE SELECT * FROM "Client" WHERE email = 'client12@example.com';
     52}}}
     53
     54{{{
     55Index Scan using idx_client_email on "Client"  (cost=0.28..8.29 rows=1 width=303)
     56  Index Cond: (email = 'client12@example.com'::text)
     57}}}