Open ezekg opened 2 years ago
We also need to swap out Wait, these are used for the top URLs endpoint.url
to status
here: https://github.com/ezekg/keygen-api/blob/master/db/schema.rb#L441
Should we also add indexes to status
, ip
and method
? Maybe we should create a view for the current week? Each index slows down writes.
We use an
ILIKE
on e.g.url
so we need agin_trgm_ops
index. But we need to keep in mind https://iamsafts.com/posts/postgres-gin-performance/.