开发者

Doctrine: ODM vs. ORM [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I consider using ODM/ORM/mixing ODM and ORM entities in my new Doctrine 2.0 project. When should 开发者_运维问答I use ORM (MySQL InnoDB) and when ODM (MongoDB)? Should I mix it in one project?

Pseudo structure of my app (Google Reader like):

  • user { id, login, password, email }
  • channel { id, url }
  • entry { id, channelId, title, body, date }
  • entryValue { entryId, userId, value }
  • userFriend { user1Id, user2Id }

Most popular functions:

  • getValuesOfNewsByUsers(newsId, [userIdArray])
  • getEntriesByUserWithMinValue(userId, minValue)
  • areFriends(user1, user2)
  • getEntryValues(userId, [entryIdArray])

I should be prepared for billions of rows in entry and entryValue tables.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜