Mix of MySQL and Mongodb in an application

前端 未结 2 1899
无人及你
无人及你 2021-02-14 10:10

I\'m writing a web application using PHP/Symfony2/Doctrine2 and just finishing up the design of the Database. We have to import these objects (for ex. Projects, Vendors) into ou

2条回答
  •  甜味超标
    2021-02-14 10:38

    So the way we solved this problem was by moving to Postgres. Postgres has a datatype called hstore that acts like a NoSQL column. Works pretty sweet

    UPDATE

    Now that I'm looking back, go with jsonb instead of json or hstore as it allows you to have more of a data structure than a key-value store.

提交回复
热议问题