That won't make much difference, since the select on the logging table isn't targeting any user columns.
On Sat, Dec 30, 2017 at 1:09 PM, John
<phoenixoverride@gmail.com> wrote:
I would also find the first log of 2017 and use that instead of the timestamp
That would make it worse, since there's no index on (log_type, log_id). It'll either have to use the primary key and filter out all rows with a different log_type, or use one of the indexes that begins with log_type and filter out all the rows with an earlier log_id.