naggie / megafilter

2013: Single-user Google RSS Reader alternative, with RESTful API
http://callanbryant.co.uk/#Blog/introducing_megafilter.md
Apache License 2.0
60 stars 6 forks source link

dynamic insertion for internal articleStore #50

Closed naggie closed 11 years ago

naggie commented 11 years ago

Compare pubdates:

  1. If newest, unshift
  2. If oldest, push
  3. If anywhere in between, look for a place and do an expensive operation to insert in in order

Of course, SQLite can do this with clever queries, not being expensive. So can Redis, prbably

also cache dump internally, invalidating when new article is added

This will allow for transparent g reader importing. Note that the articles are already checked for uniqueness!

http://www.w3schools.com/jsref/jsref_splice.asp

naggie commented 11 years ago

yep