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

Increment Attributes Values #5231

Closed
HaNdTriX opened this issue Jul 4, 2014 · 9 comments
Closed

Increment Attributes Values #5231

HaNdTriX opened this issue Jul 4, 2014 · 9 comments

Comments

@HaNdTriX
Copy link

HaNdTriX commented Jul 4, 2014

I'd like to use sails-redis to track all kinds of events.
Therefore I need the ability to increment model attributes in a performant way.
I already found the Model.native function, wich allows me to access the native redis methods but since sails-redis is based on Strings and not on Hashes I can not use any native increment method.

Is there any clean and performant way to solve this issue?

@CWyrtzen
Copy link

@HaNdTriX have you tried posting your question on one of the other forums?

Contribution Guide | Stackoverflow | Google Group | Trello | IRC | Build Status

@HaNdTriX
Copy link
Author

@CWyrtzen
Copy link

Let us know if you get an answer (update and close this issue), thanks~

@HaNdTriX
Copy link
Author

ok, I'll keep an eye on it.

@CWyrtzen
Copy link

I went and looked and heard the crickets chirping ;) You could go out on a limb and ask on Twitter~

@CWyrtzen
Copy link

CWyrtzen commented Aug 2, 2014

I'm still pulling for you @HaNdTriX , any update here?

Sails v0.10 is finally here: Upgrade | Contribution Guide | Stackoverflow | Google Group | IRC | Build Status

@CWyrtzen
Copy link

CWyrtzen commented Sep 7, 2014

Oh @HaNdTriX, please tell me you found your answer :)

@CWyrtzen
Copy link

CWyrtzen commented Oct 2, 2014

R.I.P

@CWyrtzen CWyrtzen closed this as completed Oct 2, 2014
@HaNdTriX
Copy link
Author

Since somebody else besides me showed some interest in the topic I answered my own question.

The thing sails-redis does is to create a database with CRUD methods by using redis key-value-store based on strings.

Therefore do not see sails-redis as an wrapper for redis. Forget about that. It is just another database wich almost has nothing to do with redis.

I you have a job like event tracking where you want to use Redis because of it's speed use node-redis and implement it yourself. sails-redis is just not made for such things.

http://stackoverflow.com/questions/24575724/sails-redis-increment-attributes-values/26844771#26844771

Please correct me if I am wrong! @particlebanana @CWyrtzen

@raqem raqem transferred this issue from balderdashy/sails-redis Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants