Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created December 1, 2016 03:33
Show Gist options
  • Save mdcallag/e2a0dee51f8470ac74ce5e85670eb175 to your computer and use it in GitHub Desktop.
Save mdcallag/e2a0dee51f8470ac74ce5e85670eb175 to your computer and use it in GitHub Desktop.
mysql -uroot -ppw test -e 'explain SELECT c FROM sbtest1 WHERE id BETWEEN 39927041 AND 39927140 ORDER BY c;'
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: sbtest1
partitions: NULL
type: range
possible_keys: PRIMARY
key: PRIMARY
key_len: 4
ref: NULL
rows: 118
filtered: 100.00
Extra: Using where; Using filesort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment