redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

JsonModel query with many records with diferent expirations crashes find().sort_by().page()

Open pantunes opened this issue 5 months ago • 2 comments

Hello, First of all great job with redis-om-python it's great!

I've been using it a lot lately, and I've stumbled into an issue.

I have a JsonModel which gets inserted many times a second, each entry is set to expire in 1 minute. Everything works good on insertion.

When I try to query this model using find().sort_by().page() everything works fine until the expirations start to kick in, so my assumption is that there is an issue when tries to return the data that in meantime expires.

There is no error but just hangs forever.

If I remove the expire() all works good.

Do you have any pointers?

pantunes avatar Jan 12 '24 19:01 pantunes