Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Better solutions for feed implementation #2

Description

@jasonify

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 :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions