HI Freddy,Would you please share with us the script you're using to prune the DB, i want to use it too.
--
You received this message because you are subscribed to a topic in the Google Groups "PrimaTest Automation" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/primatest-automation/EJFUO9yHFJQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to primatest-automation+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
cd "C:\Program Files\RedwoodHQ\"
mongodump
mongo automationframework --eval "var goBackByCount=-90, cleanupNow = true, collsToCleanup = 'executions executiontestcases'" dbcleanup.js
We are started using redwood recently, we want to increase the size before we encounter the size problem., we will be running more than 500 tests a day. Is there limit to size for the database or can i increase to 10GB. Can you provide little more of these steps
If you are using RedwoodHQ 2.5 or later you should not have any issues with DB. Let me know if you do.
Line #89 :
Current: var docs = db[coll].find({}).toArray();
Suggested: var docs = db[coll].find({},{"executionID":1}).toArray(); //Usage of projection to avoid holding entire document, in case of screenshots it holds the entire binary object which consumes at least few GB’s of memory.
Line #117:
Current : db[coll].remove({"executionID": doc.executionID});
Suggested : db[coll].remove({"_id": doc._id}); //Usage of index while looking up document for deletion
Line #145:
Current : db[coll].remove({"executionID": doc.executionID});
Suggested : db[coll].remove({"_id": doc._id}); //Usage of index while looking up document for deletion
Regards
Sujeet V