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
Right now we are clearing the feed every 10 minutes and recreating it. This will probably cause some random problems as more users join and it doesn't scale too well.
As a fist step, ideally we would want to have the script run a lot more often... but deleting the feed collection so often leaves some users with a blank feed (until the script is done and they refresh)...
One quick thing could be to maybe first populate a tempFeed collection, then drop the old one and rename the tempFeed to feed? And maybe the client can refresh itself if the server returns an empty array []... . Or maybe just say your feed is being built.. click to refresh.... and also we make sure not clear the old items if the server returns [].
This is still very MVP.
The ultimate solution will be a bit more complex :)
Right now we are clearing the feed every 10 minutes and recreating it. This will probably cause some random problems as more users join and it doesn't scale too well.
As a fist step, ideally we would want to have the script run a lot more often... but deleting the feed collection so often leaves some users with a blank feed (until the script is done and they refresh)...
One quick thing could be to maybe first populate a tempFeed collection, then drop the old one and rename the tempFeed to feed? And maybe the client can refresh itself if the server returns an empty array []... . Or maybe just say your feed is being built.. click to refresh.... and also we make sure not clear the old items if the server returns [].
This is still very MVP.
The ultimate solution will be a bit more complex :)