[WIP] New powerfull feature zlink#92
Open
sam2x wants to merge 2 commits intomaritz:masterfrom
sam2x:master
Open
[WIP] New powerfull feature zlink#92sam2x wants to merge 2 commits intomaritz:masterfrom sam2x:master
sam2x wants to merge 2 commits intomaritz:masterfrom
sam2x:master
Conversation
added 2 commits
February 24, 2015 21:29
Collaborator
Author
|
The dbVals code added is misplaced, he should placed during multi (since the number of parameter differs between zadd and sadd) : Also, as you likely noticed, my code related to the fireevent is incorrect. |
Collaborator
Author
|
Patch incomplete, i added a scan/zscan feature with zlink that i didnt push (important for search stuff, etc.). I need to clean up my code and push my change. |
Owner
|
Same problem as #104 I think this should be converted into a new feature for v2.x (probably 2.2 or 2.3), instead of attempting to put it into v0.9 and then porting it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Since now 15days, i'm using Nohm as a Model Abstraction to redis.
After some practise and several tests cases, i decided to keep it
as a main Redis interaction for my project.
Here the benefits i can highlight :
I also fall in some unpleasant issue that should be imho redesigned :
As Sorted Set is one of the best benefit of Redis, i decided to integrate it in the relation model feature.
My pull request allow to specify a score in the zlink function :
User.zlink(Action, { score : date })
Remaining things to do :
What is the benefit ?
Now in ONE call, we give relation powerfull search :
get object id of Y linked to object X, which have [min/max] score S [limit the result to L] [DESC/ASC]
What do you think ?
Well, this is a small contribution. I think there is other improvement to bring about some Redis feature(eg: sscan/zscan).
Anyway thank you for your project, it is truely helping. Please don't let it go ;)
I hope to have time to help you again in the near future.
Regards,
S