avoid deleted_at condition, add note for further improvements (#208)
This route is already cached, but when we have a cache miss its
currently a ~2 second query because its doing an index scan on the
primary key index. Dropping the deleted_at implicit condition helps
reduce this to ~500ms which is a good gain (unfortunately doesnt show up
in any benchmarks because this is only slow at scale).
If this ever ends up being a problem, the simple solution is to add an
extra index, but that makes the write path slower which I don't really
want to do right now.
authored by