My contribution

I designed the order-history benchmark, inspected PostgreSQL plans in Navicat Premium 18, and validated that each rewrite returned the same ordered records. I also assessed Explain, Real-Time Error Detection, Code Insight, and local Fill with AI.

Technical approach

I compared a date expression with a timestamp range, added a covering index to match the query and its sort order, and replaced deep OFFSET pagination with a cursor based on timestamp and order ID.

  • Date filtering: the timestamp range moved the date bounds from a separate Filter into Index Cond. Five alternating pairs produced medians of 0.083 ms and 0.074 ms, with overlapping timing ranges.
  • Covering index: the same 20 ordered records took 278.733 ms without the index and 0.464 ms with it. Shared buffer hits went from 9,019 to 4 in this single-run comparison.
  • Deep pagination: OFFSET took 977.196 ms and keyset took 15.566 ms in single runs. The scan emitted 100,020 rows versus 20. Finding the starting cursor took 110.917 ms separately.

How I compared the queries

  1. 01Inspect the query plan
  2. 02Change SQL or index
  3. 03Check ordered results and execution
Navicat Premium 18 Engineering Evaluation: simplified illustration of the documented workflow or implementation areas. Infrastructure and confidential implementation details are intentionally omitted.

Testing & validation

The PostgreSQL 18.7 lab contained 1,000,000 synthetic orders, of which 200,411 qualified for the example. The measurements describe database execution in this lab. Java and Spring Boot runtime performance was outside the evaluation.

Outcome & lessons

The PostgreSQL SQL and index changes reduced the work seen in the execution plans. Navicat helped diagnose the queries, compare plans, and verify the results.

Project context & evidence

Independent Architecture in Motion research. Navicat provided complimentary evaluation access and offered an annual subscription in connection with publication.

A public repository or demo link has not been provided for this project.