Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May auto_increment column cause some problems while using vitess? #544

Closed
Juckey opened this issue Apr 2, 2015 · 1 comment
Closed

May auto_increment column cause some problems while using vitess? #544

Juckey opened this issue Apr 2, 2015 · 1 comment

Comments

@Juckey
Copy link

Juckey commented Apr 2, 2015

No description provided.

@sougou
Copy link
Contributor

sougou commented Apr 3, 2015

It depends on your setup. If you're unsharded, then it's no problem. But if you have a sharded database and want a globally unique auto_increment, then you obviously can't use MySQL's autoinc directly.
There is a way to get the effect of a globally unique auto increment using the V3 API. I've shown how to do it here: https://groups.google.com/forum/#!searchin/vitess/auto$20increment/vitess/EcUB0mIrLN4/b49SZyOLLCkJ.

@enisoc enisoc closed this as completed Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants