toxinu / leselys

I'm Leselys, your very elegant RSS reader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configure mongo indexes

mblakele opened this issue · comments

As the database grows larger, indexes help keep some of the queries lively. In the long run it would be nice if leselys configured these automatically. Meanwhile it's easy enough to set them up manually.

I think these are a good start:

$ mongo
use leselys
db.feeds.ensureIndex({feed_id:"hashed"})
db.feeds.ensureIndex({guid:"hashed"})