dsg7513 2016-02-27 11:53
浏览 23
已采纳

DSE查询优化和用例

Should I use Solr for all of my reading activities and then Cassandra for all writes to maximise the performance of DSE? or can I read using Cassandra but obviously on a key value basis for select activities?

  • 写回答

1条回答 默认 最新

  • doushi2845 2016-02-27 17:15
    关注

    Cassandra is a write-optimised database and so reads may be slow, but Solr should be used a crutch or a 'nitro-boost' if you will, and not as the go-to method for reading. Because if your reads are slow, it may be because the DB design is fundamentally flawed and that could be dangerous for scaling as well as maintenance.

    Maximizing the performance of a DSE should be based on the pattern of your reads and writes. For example if your users table is only used for login and a couple of other times for profile related data, you don't need Solr for that. Some duplicate tables with different keys should suffice.

    However if your app is an ERP that requires user data at all times, Solr indexing for faster reads should be considered.

    And to reiterate, if your reads are slow, check if a better db design can solve the issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料