fragmenta / fragmenta-cms

A user-friendly CMS written in Go (golang)
http://fragmenta.eu
MIT License
586 stars 70 forks source link

Swapping DB #22

Closed SCKelemen closed 8 years ago

SCKelemen commented 8 years ago

Can you tell me if it's possible to use MongoDB, which is a NoSQL database? I can rewrite the code, I am simply just accessing if its possible to use a NoSQL db with this, and how difficult it would be...

kennygrant commented 8 years ago

Yes it should be possible as the records are relatively simple and it doesn't use joins much at present (I plan to later though). I was also thinking of looking at an adapter for boltdb.

Joins would be your main issue, which you'd have to handle manually (things like tags joins).

SCKelemen commented 8 years ago

@kennygrant thanks for the reply. I tried using mongo for another project, and I think I'm going to leave mongo. I just think in relations and SQL, not documents and objects.