CGUC / skybunk-server

The back-end application for Conrad Grebel University College students to stay connected
3 stars 9 forks source link

Store posts in object with ids as keys instead of array #56

Closed picklechips closed 6 years ago

picklechips commented 6 years ago

If we store our posts in an object with keys as ids we'll have much faster lookup time so things like liking, editing, and deleting can be reflected much faster, since currently we're cycling over all posts and updating the post once we find it. With this described object we could find it instantly

Talk to Ryan for questions

picklechips commented 6 years ago

This should probably be done on the client