Skip to content

Conversation

@kirillian
Copy link

As mentioned in the top of this, this is merely a naive implementation. I will need to improve this even for my own use, but I wanted to solicit comments and suggestions while I'm doing some testing with this in my app.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirillian woah nice and simple - do you have a test that passes?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet. I was doing this for a bit of an emergency MVP that was having some performance struggles while processing millions of records...this weekend is the first one I've gotten where I actually have some time to get back to it. I'll probably rewrite this tonight. I didn't like having to pass so much stuff around, so I thought I'd take another pass at it...I also thought about possibly doing an increment_by: value signature.

@evadne
Copy link
Contributor

evadne commented Jan 21, 2016

Use a trigger to do this or use something like an auto-increment column?

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

Successfully merging this pull request may close these issues.

3 participants