Query taking long time to run

As mentioned

You do not have

You have a compoud index with createdAt as a secondary key.

1 Like