I studied some macroeconomics in school. I’m still interested in it 20 years hence. I was recently in a discussion about query optimization and how to prioritize what to fix first. My pen and paper started graphing things, and here we are with an abstract thought. Bear with me. This is for entertainment purposes, mostly, but may actually have a small amount of value in your thought processes around optimizing queries. This is a riff on various supply, demand graphs from macroeconomics.
In the graph below:
- Axes:
- Vertical: number of distinct problem queries
- Horizontal: Database “query load capacity” gains (from optimization)
- Lines:
- LIRQ (long and/or infrequently run queries)
- SFRQ (short, frequently run queries)
- AC: Absolute capacity (the point at which …