GET /loki/api/v1/series -- taking more time, How do we optimise this

Hello,

we are seeing more delay/latency when we hit GET /loki/api/v1/series query, why is this behavour/how to works in backend. and how do we optimise this search.
this seems to be fine, when we query for limited duration, if we query for more duration, results in delay,

Many thanks,

I don’t use this API much myself, but I think its performance is directly related to cardinality, and I don’t think you are supposed to use it for too long of a time period.