Skip to content

Instantly share code, notes, and snippets.

@yulisunny
Created April 29, 2016 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yulisunny/1c810135fc9c182f8b6f528795f978a7 to your computer and use it in GitHub Desktop.
Save yulisunny/1c810135fc9c182f8b6f528795f978a7 to your computer and use it in GitHub Desktop.
SELECT * FROM persistent_queue_table WHERE polled_time IS NOT null AND sent_time IS NOT null ORDER BY id; -- id is a primary key
ADD INDEX polled_time_sent_time (polled_time, sent_time);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment