A bug has arose from testing the code for computing the final results of the contestants. It had to do with not being able to receive all the documents in the database. After investigating it further, I discovered there was a default limit set on the number of documents returned.

Initially I increased the limit to a higher number, but was advised against doing so due to the document count possibly exceeding the limit or a huge limit placing a huge strain on memory. Thus now I am iterating through the pages to receive all the documents instead.

The process of retrieving the documents is placed in a loop so that documents are continually being retrieved until a certain condition is met to exit the loop and all documents have been received.


0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.