re: SQL 201: Speed up your queries with Indexes VIEW POST

VIEW FULL DISCUSSION
 

So if I’m (typically) putting measurements in a database with the Unix epoch time, and then pulling out the last 24 hours to plot, do I want to add an index on epoch? Is there an SQL “query” that’ll do that? I’m mostly using mysql and mariadb on Raspberry Pi (Debian-ish) if it matters. Thanks!

code of conduct - report abuse