juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
12.1k stars 1.27k forks source link

fix(payments): remove time range filter from payment attempt #6160

Closed apoorvdixit88 closed 2 days ago

apoorvdixit88 commented 2 days ago

We don't need time range filters since created at is not indexed in payments attempts, we are already getting filtered payments intents and using its active attempt ids. It is further slowing down 'IN' query performance.