How can I rate query performance? |
Sometimes we can write a query multiple ways, or break down a query into multiple queries, so I wonder how to rate the performance of the query (or queries) to know what will have the best performance.
I'm thinking about this this morning because I have a query like this: Code: SELECT When I use EXPLAIN it looks like it's doing 3 queries, and I could just do 3 separate queries, but how will I know which way is best/fastest? Is there a way to rate the query (some numeric value)? (09-07-2018, 08:53 AM)php_rocs Wrote: @skunkbad, Looks perfect. Thanks!
This is more of a question, but could you use the benchmarking class??
https://www.codeigniter.com/userguide3/l...hmark.html
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
(09-07-2018, 09:35 AM)ignitedcms Wrote: This is more of a question, but could you use the benchmarking class?? I believe the benchmarking class is taking total execution time into account, which is mostly PHP, and isn't specifically what I'm interested in. Ideally I can run my queries via the terminal, so PHP won't even be a factor. |
Welcome Guest, Not a member yet? Register Sign In |