Open bluepichu opened 8 years ago
So right now, posts are stored in the fs for reliability reasons. However, since mongo can't index them, it makes it a pain in the neck to do searching. The way I see it, we have three options
Thoughts?
Stores data in database
More volatile than fs
Shouldn't it be the other way around?
@zwade we should revisit this, particularly since you're already doing a bunch of post restructuring anyway.
Yeah, it might not be a terrible idea to move posts into the database. I still kinda prefer the idea of a hard copy (in a cash-under-the-mattress sort of way), but I think the benefits of a transition outway the potential risk
With that in mind though, it would be easier to do that before dealing with slugs and stuff, so I may push the guid version first, and have slugs in a different PR.
This should be relatively straightforward using mongo's built-in text score once #106 goes through. However, we'll probably also want to add in extra relevance weight for tags, title, and author name.
As discussed in #18.