Case study · Periscope Labs · 2022 – 2024

Quore

I made its slowest reports up to 36× faster, wrote 200+ stored procedures, and led a team of four on a new product.

Reports for hotels: their housekeepers' and every other role's work and time, their inquiries, logbooks and registers, each report open to the roles allowed to see it.

Full stack · reporting and query performance

a working copy · try it · demo data

live · real time · the measured times

The same reports, the same answers. Up to 36× sooner.

My part

I reworked the SQL behind most of Quore's reports, and wrote 200+ MySQL stored procedures and complex reporting queries, report scheduling and aggregation among them. I also led a team of four on Phase 1 of a visual SQL query builder, and took it to beta.

The brief

Quore's clients are hotels, and its reports cover their operations: the work and time of housekeepers and every other role, inquiries, logbooks and registers, each report shown to the roles allowed to see it. On tables of thousands to millions of rows, many were too slow to use, and some filters didn't work at all.

The hard part

Making slow reports fast without changing what they say. I rewrote their queries with proper composite indexes and fewer join hops. Many reports came down that way; two of them: one that took 3 minutes now comes back in 5 seconds, and one that took 10 seconds in 300 ms.

beforet1t2t3t4t53 minaftert1t5index5 scomposite indexes · fewer join hopsbeforet1t2t3t4t53 minaftert1indext55 scomposite indexes · fewer join hops
  1. 1 before: a chain of joins, a long wait
  2. 2 composite indexes, fewer join hops
  3. 3 after: the same report, in seconds

Also: a visual query builder

Like a database workbench, but visual: a user joins tables and builds select queries on screen instead of writing SQL. I led the team of four that delivered its Phase 1 to beta.

Built with

Plain SQL, done properly: the speed came from the queries and the indexes, not from more hardware.

  • MySQL
  • stored procedures
  • composite indexes
  • report scheduling · aggregation

Open to conversations about senior roles and interesting projects. Remote or relocation.

English, Bangla, Hindi/Urdu