nddrylliog/agora2 — comment on commit 78a4013e9fee62c3142a233c8bca6feac230e0e8
File: javascripts/agora.coffee line 28
By nddrylliog:

BTW, how stupid is that from me? I just wanted to extend with some utility functions but it seemed like much trouble for little gain :/

One thing I thought about is: we probably want to cache most of the forum on the client-side, ie. say the 20 most recent threads from every category. It's little storage space (we store only content/authors etc. and render it on-demand) and will make pretty much everything snappier.

But, this means we have to have those client-side and be able to make queries etc. So we need some kind of database abstraction here on the client which knows when to take from the cache and when to make an API call to the backend. At first I thought that was what Backbone.js was for but when I investigated database mapping etc. I came out not so sure anymore...