Postgresql JSONB is coming. What to use now? Hstore? JSON? EAV?

前端 未结 2 1258
梦谈多话
梦谈多话 2021-01-31 10:31

After going through the relational DB/NoSQL research debate, I\'ve come to the conclusion that I will be moving forward with PG as my data store. A big part of that decision wa

2条回答
  •  鱼传尺愫
    2021-01-31 10:56

    You probably don't give quite enough to give a very detailed answer, but I will say this... If your data is "very relational" then I believe your best course is to build it with a good relational design. If it's just one field with "variable assigned attributes", then that sounds like a good use for an hstore. Which is pretty tried and true at this point. I've been doing some reading on 9.4 and jsonb sounds cool, but, that won't be out for a while. I suspect that a good schema design in 9.3 + a very targeted use of hstore will probably yield a good combination of performance and flexibility.

提交回复
热议问题