EXPLAIN ANALYZE

Query plan for the launched search

Exact prefix

Searching for: JULI NIGE (Jan. 1, 1990)

Explaining: prefix

B-tree indexed istartswith — fast type-ahead, exact spelling.

SQL

SELECT "records_courtrecord"."id", "records_courtrecord"."first_name", "records_courtrecord"."last_name", "records_courtrecord"."middle_name", "records_courtrecord"."date_of_birth", "records_courtrecord"."nicknames", "records_courtrecord"."person_id" FROM "records_courtrecord" WHERE (UPPER("records_courtrecord"."first_name"::text) LIKE UPPER(JULI%) AND UPPER("records_courtrecord"."last_name"::text) LIKE UPPER(NIGE%) AND "records_courtrecord"."date_of_birth" = 1990-01-01) ORDER BY "records_courtrecord"."date_of_birth" DESC LIMIT 200

Query plan

EXPLAIN (ANALYZE, BUFFERS)

Limit  (cost=0.56..2520.54 rows=1 width=64) (actual time=2.249..3.518 rows=7.00 loops=1)
  Buffers: shared hit=1496
  ->  Index Scan using idx_person_date_of_birth on records_courtrecord  (cost=0.56..2520.54 rows=1 width=64) (actual time=2.248..3.516 rows=7.00 loops=1)
        Index Cond: (date_of_birth = '1990-01-01'::date)
        Filter: ((upper((first_name)::text) ~~ 'JULI%'::text) AND (upper((last_name)::text) ~~ 'NIGE%'::text))
        Rows Removed by Filter: 2189
        Index Searches: 1
        Buffers: shared hit=1496
Planning:
  Buffers: shared hit=293
Planning Time: 1.919 ms
Execution Time: 3.570 ms