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
Bug Report: TTL Index Information Lost After compactDatafile Function Call
Description
When the compactDatafile function is called on a datastore that has a TTL index, the information related to the TTL index is deleted. This means that any automatic deletion of documents based on the TTL index will no longer occur after the compaction.
To Reproduce
Create a NeDB datastore and add a TTL index to it.
Insert some documents that should be affected by the TTL index.
Call the compactDatafile function on the datastore.
Observe that the TTL index information is lost, and documents are no longer automatically deleted based on the TTL.
Expected Behavior
The expected behavior is that after calling compactDatafile, the TTL index should remain intact, and documents should continue to be automatically deleted according to the TTL settings.
Actual Behavior
The actual behavior is that the TTL index information is deleted, and documents are no longer automatically deleted based on the TTL.
Logs
Logs would typically show the compaction process but might not explicitly indicate the deletion of the TTL index information unless additional logging is added.
Environment Info
Runtime: Node 20
NeDB Version: 4.0.4
OS: Kubernetes Pod
The text was updated successfully, but these errors were encountered:
Bug Report: TTL Index Information Lost After compactDatafile Function Call
Description
When the
compactDatafile
function is called on a datastore that has a TTL index, the information related to the TTL index is deleted. This means that any automatic deletion of documents based on the TTL index will no longer occur after the compaction.To Reproduce
compactDatafile
function on the datastore.Expected Behavior
The expected behavior is that after calling
compactDatafile
, the TTL index should remain intact, and documents should continue to be automatically deleted according to the TTL settings.Actual Behavior
The actual behavior is that the TTL index information is deleted, and documents are no longer automatically deleted based on the TTL.
Logs
Logs would typically show the compaction process but might not explicitly indicate the deletion of the TTL index information unless additional logging is added.
Environment Info
The text was updated successfully, but these errors were encountered: