java - 用mysql,数据量预估有1亿行记录,想用cobar分库分表实现,大家有其他好的方案么?单次查询控制在100ms内。
PHP中文网
PHP中文网 2017-04-18 10:42:54
0
6
372
PHP中文网
PHP中文网

认证0级讲师

reply all (6)
刘奇

It’s enough to divide 100 million data into about 30 tables. The data volume of a single table should not exceed 500W, otherwise the indexing efficiency will decrease. Create an index for the necessary query conditions. There is no problem with a single 100ms query. Cobar is just A framework of sub-tables and sub-databases has nothing to do with query efficiency. Hbase is a storage system, and the two cannot be confused

    左手右手慢动作

    cobar good? Is Hbase better?

      巴扎黑

      You can try mycat

        PHPzhong

        Try es

          左手右手慢动作

          Improve query performance (optimized reading), generally distributed + multiple copies. 100 million records is a large amount for a single MySQL, but it is too easy for HBase. However, HBase belongs to NOSQL and is very different from MySQL in application. This should be considered carefully. There are also ElasticSearch (itself is retrieval, but it is not bad as a database) and MongoDB, these can all be considered.

            阿神

            100 million items, it has not yet reached the level of sub-database, the dimension of sub-table is the key, just one master and N stations can read it, and do a good job of indexing

              Latest Downloads
              More>
              Web Effects
              Website Source Code
              Website Materials
              Front End Template
              About us Disclaimer Sitemap
              php.cn:Public welfare online PHP training,Help PHP learners grow quickly!