Open fitouch opened 9 months ago
@fitouch You can try adding a wait option as the second parameter of load like this:
- gun.user().get("messages").load(messages => console.log(messages));
+ gun.user().get("messages").load(messages => console.log(messages), {wait: timeInMilliseconds});
Try to figure out a minimum timeInMilliseconds that ensures all the data is loaded while ensuring a satisfactory response time.
@trPrince That's what I did. Its not always guaranteed to get all of the data at once.
@amark When I used .load(), didn't get all the data one time. Sometimes it skipped some data or return
{}
. I tried it with 17,000 random messages. I have no issue with on() or open(), once() and load() didn't return all keys that I expected. I have my own relay peer with AWS config in Heroku as well.