Sign In Register

How can we help you today?

Start a new topic
Answered

Script.log question

This runtime collection can become very big.

Do we need to keep the size reasonnable and delete old entries, or is it done automaticaly ?

Is there a simpel way to delete entries older than N days ?


Thanks !


Best Answer

Hi Eric,


The log doesn't remove itself automatically so it's important to drop the collection every so often manually through the NoSQL explorer.


If you know that you are already dealing with a lot of documents but only want the most recent, you can type {ts:-1} in the "Sort" box in the find dialog. This will display the most recent logs at the top, rather than the bottom. Together with the "Limit" box, you have some degree of control over how you check your log's.


Hope I was able to help, any more issues please let me know.


-Pádraig

1 Comment

Answer

Hi Eric,


The log doesn't remove itself automatically so it's important to drop the collection every so often manually through the NoSQL explorer.


If you know that you are already dealing with a lot of documents but only want the most recent, you can type {ts:-1} in the "Sort" box in the find dialog. This will display the most recent logs at the top, rather than the bottom. Together with the "Limit" box, you have some degree of control over how you check your log's.


Hope I was able to help, any more issues please let me know.


-Pádraig

Login to post a comment