Dashboard New Posts statistics broken

Ah sorry maybe I only saw it because I was running it locally. Try this:

MethodProfiler.output_sql_to_stderr!
Report.find("posts", start_date: 4.weeks.ago, end_date: Time.zone.now).data

You will get a lot more noise of queries now, but the last few queries will be the ones from the report:

1 Like