Sqlite cordova plugin gets slow

I use sqlite in my app for offline functionability, my db has multiple tables and some heavy querys, after some time using the app getting the data from the db starts to be slower, but after closing and opening the app it gets back to “normal” and takes no time in getting the data

Any idea what could cause this? I didn’t find someting helpfull in the plugin docummentation

Memory leaks. There are a bunch of profiling tools for finding them: I would start with the ones built into your browser, like Chrome’s developer tools.