Query History Events using Indexing

HI, I was wondering if it is possible to query past or old Events from stream/streams. It would be great if one can index any JSON field of Event. One way would be to run One-Time Projection but it will workaround. I tried looking up but could’t follow.

amit,

I don’t think there is a way to do this, so what we do at work here is build our streams to make querying a bit faster / easier.
For example, we have sales streams, and we create “2019” / “2020” streams, and one per month etc

So Sale#1 comes in 5th October, we would linkTo 2020Sales, 202010Sales and 20201005 streams.

1 Like