Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rubanm
Copy link
Contributor

@rubanm rubanm commented Nov 9, 2013

Addresses #85
Also added MySqlLongStore on the lines of RedisLongStore.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can I challenge you to implement multiMerge? Merge is implemented in terms of that, so you get that for free. Is that too hard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like implementing multiMerge will require directly executing INSERT or UPDATE queries, instead of relying on the underlying put (which in-turn executes its own SELECT query per key to decide whether to INSERT or UPDATE).

Definitely doable. (We lose the ability to re-use the type-converted put that ConvertedStore provides us, but we gain more control and avoid redundant SELECT queries being run for merges.)

Will update the pull req with this.

@rubanm
Copy link
Contributor Author

rubanm commented Nov 13, 2013

Implemented multiMerge. Looks a lot like MySqlStore's multiPut.

Copy link
Collaborator

Choose a reason for hiding this comment

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

.map here and not bother with lifting into Future.value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, fixed.

@johnynek
Copy link
Collaborator

Looking really good.

Anxious to see someone use this with summingbird in production and see how well it does.

@rubanm
Copy link
Contributor Author

rubanm commented Nov 14, 2013

Yeah, will be interesting to see; quite a different beast than memcache or redis.
@reconditesea @zicongzhou want to give this a spin?

johnynek added a commit that referenced this pull request Nov 16, 2013
MergeableMySqlStore and MySqlLongStore
@johnynek johnynek merged commit b70b9f9 into twitter:develop Nov 16, 2013
@johnynek
Copy link
Collaborator

So good. This might be really useful for Kevin, Alberto and Zichong.

@reconditesea
Copy link

Thanks guys! We're looking forward to using this new version of summingbird when it's available in science.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants