You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting a new cross-platform project and looking for a JSON DocumentStore, is LokiJS supported on Node 10.x officially?
Is it possible to provide examples on how to query for items in a collection that are older than x days/hours etc? i.e. I'm looking to auto-purge old data
And what would the upgrade path from LokiJS to LokiDB look like in the future? Would it require a complete rewrite of my application or just a few changes?
The text was updated successfully, but these errors were encountered:
We do have one feature 'autoupdate' which is deprecated though, we should probably go ahead and remove that but we may possible. It is not enabled by default so don't turn on that option in collection constructor and expect it to work. If you would like to see a similar feature in LokiDb, but based on proxies, chime in over there regarding that feature.
We have TTL functionality which should be able to do what you are requesting, automatically. You can either look into the 'ttl' and 'ttlInterval' options on the Collection constructor or you could manually search and remove based on our built-in 'meta' object properties, such as :
I'm starting a new cross-platform project and looking for a JSON DocumentStore, is LokiJS supported on Node 10.x officially?
Is it possible to provide examples on how to query for items in a collection that are older than x days/hours etc? i.e. I'm looking to auto-purge old data
And what would the upgrade path from LokiJS to LokiDB look like in the future? Would it require a complete rewrite of my application or just a few changes?
The text was updated successfully, but these errors were encountered: