V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
kenneth
V2EX  ›  Python

求一个Python实现的Mysql分表算法?

  •  
  •   kenneth · Apr 26, 2013 · 4378 views
    This topic created in 4760 days ago, the information mentioned may be changed or developed.
    以及分表后带来的索引的问题,大家一般如何处理?
    求教
    6 replies    1970-01-01 08:00:00 +08:00
    binux
        1
    binux  
       Apr 26, 2013
    如果分表后会有索引问题,那么说明你分错了。。
    explon
        2
    explon  
       Apr 26, 2013
    分表跟语言无关
    gaocheng
        3
    gaocheng  
       Apr 26, 2013
    分表跟索引有什么关系,每个表的结构都是一样的啊
    lanyueniao
        4
    lanyueniao  
       Apr 26, 2013
    murmurhash
    kenneth
        5
    kenneth  
    OP
       Apr 27, 2013
    @binux 高手,能否展开一下,这个问题,我还不很明白。
    binux
        6
    binux  
       Apr 27, 2013
    @kenneth 一般来说,分表之后,对于一个查询应该能够定位到一个确定的表上,索引该是什么就是什么,没有影响。
    如果有索引问题。。要么是分法不对,要么不应该分。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2964 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1169ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.