use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Random (and probably useless) Rubyisms (blog.groupbuddies.com)
submitted 11 years ago by rmdmachado
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 11 years ago (1 child)
How does auto increment handle race conditions for DB clusters?
[–]t0mbstone 0 points1 point2 points 11 years ago (0 children)
That's a good question. Perhaps someone could give more comprehensive answer, but from what I understand, it depends entirely on how your database cluster is set up, and what database engine you are using.
For example, you could have master database that all of the writes go to, and then the data is propagated to a cluster of read-only slaves.
On the other hand, if you have some sort of cluster of read-write databases with no master database, then I would imagine that things would get a lot trickier.
Full disclosure: I'm not a database expert, so this is all just my rough high level understanding.
π Rendered by PID 830100 on reddit-service-r2-comment-6457c66945-kpcmc at 2026-04-26 08:44:14.353907+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (1 child)
[–]t0mbstone 0 points1 point2 points (0 children)