News for hackers. Stuff that matters.
Re:A JSON field type for Django by richardwhiuk on Thursday March 13, 2014 @01:18PM (#7393186)
Why would you ever want to do this? Surely at this point you are better with a table with id, name, description, price, currency, in_stock and an extra data field for anything else - given you require the other fields.
Re:A JSON field type for Django by aidos on Thursday March 13, 2014 @02:55PM (#7393985)
Maybe - I need to test the performance, but for my application breaking things out into a table is a little slow. In all probability the constraints will be slower, but it's something to try.

At the moment I have all my data in mongo but over time it's fallen out of shape. There's a large chunk of it that just needs to be stores (json field) but it would be nice to constrain some of it.

Re:A JSON field type for Django by jlouis on Thursday March 13, 2014 @02:01PM (#7393494)
Depends on how much the data is going to be altered. Changing columns is not a free operation in data stores. They require you to rewrite all the rows in many cases.

This can be more dynamic short term.