CouchDB multiple tags

前端 未结 6 1544
梦如初夏
梦如初夏 2021-02-13 16:25

Is there any way to have multiple tag search implemented in CouchDB? I have documents (posts) each with multiple tags. I need to find posts that have been tagged with an arbitra

6条回答
  •  遇见更好的自我
    2021-02-13 17:16

    Actually tagging seems to be a very relational problem and does not play well with CouchDB's design. So I have decided to have one small database for tags on mysql and have the actual documents stored at CouchDB. This lets me get the best of both worlds. Although this technique has problems related to synchronization, searching on tags is an efficient operation on sql and the content is not too much to worry about replication or sharding. Thanks for all your answers.

提交回复
热议问题