I have a field called 'sort_order' and it's bigint, i use it in my mysql queries for sorting.
Is it wise I put an index on it?
Generally, yes. If you are doing an ORDER BY
on that field, it should probably be indexed. Of course you'll want to test it first to make sure it actually helps - if you only ever select a small number of rows it may not make that much of a difference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With