Will Spree support MongoDB in the future?

173 views
Skip to first unread message

Bakhtiyor Homidov

unread,
Nov 8, 2013, 6:55:26 AM11/8/13
to spree...@googlegroups.com
Hi there,

I heard about some e-commerces support MongoDB. Any plan about supporting mongodb in your roadmap? Thanks!

Javier Barcena

unread,
Nov 8, 2013, 7:47:36 AM11/8/13
to spree...@googlegroups.com

Andrew Hooker

unread,
Nov 8, 2013, 7:56:41 AM11/8/13
to spree...@googlegroups.com
What is your use case for switching to MongoDB? E-commerce is structured data, and fits well in a relational database.
---
Andrew Hooker
Lead Support Engineer
Spree Commerce, Inc.

Ryan Bigg

unread,
Nov 10, 2013, 8:45:17 PM11/10/13
to spree...@googlegroups.com
This is not the first time this question has been asked.

On GitHub:


On this mailing list:


----

I can see in some cases in Spree where having a document store could be useful. For instance, a product has variants (which themselves have prices), properties and option types nested under it. An order has line items, payments, adjustments and shipments nested under it. Situations like this could be why you think MongoDB could be a good fit.

The difficulty in a system like this lies in the relationships between deeply-nested objects. For instance, an order's line item needs to link to a product's variant. Relational databases lend themselves to links like this, whereas a document database would not. MongoDB would not be a good fit if we wanted to maintain these links.

There are absolutely no plans at all to support MongoDB in the future. As Andrew already pointed out, relational databases lend themselves quite well to ecommerce stores, and that is what we will be using going forward. In addition to that, rewriting everything to use MongoDB or an alternative database system would require a huge amount of work and we're already applying that huge amount of work to plenty of other things within Spree.



--

Ryan Bigg
Community Manager
Spree Commerce, Inc.
Reply all
Reply to author
Forward
0 new messages