|
|
|
|
|
by zasdffaa
1537 days ago
|
|
IME just run the DB, pick up and look at the query plans for the most common/time consuming, then add indexes. That's 80% of it. So... > Is it a matter of having a conceptual model of relational algebra and the way the different db engines work ...no.... > or is it more an accumulation of heuristics over time for what probably will cause problems ...no.... > an iterative process of using EXPLAIN, adjusting the query and seeing what happens? ...that's more like it! Once you understand the underlying data structures, all the magic goes away. As it should. |
|
> Once you understand the underlying data structures, all the magic goes away. As it should.
Once you actually understand them, I feel you don’t need explain in most cases; you will simply ‘see’ why certain queries or definitions or structures are bad.