Redis as database

7 views
Skip to first unread message

Wallace Araujo

unread,
Oct 3, 2010, 2:45:24 PM10/3/10
to redi...@googlegroups.com
Redis can be used as a database? as well as the cassandra? I'm wondering why I did some tests and had a problem with lack of memory. Is to control the maximum memory used or where I need to get by setting expiration time?

  Wallace Araujo
  Linux user #515394
  visite meu site:http://devsubdev.wordpress.com
  MSN:  walla...@hotmail.com
  Follow me on Twitter: @wallacejvm

ben wiseley

unread,
Oct 3, 2010, 4:38:14 PM10/3/10
to redi...@googlegroups.com
In my limited experience the answer to "can redis be used as a dabase?" is:
  1. yes
  2. but you probably shouldn't
Using redis as your sole data store has some major drawbacks.  Namely, reporting.  Remember - with redis - for any multi table join you want to do you need to create, and maintain, more sets/hashes/etc in redis to be able to get this data out.  This quickly becomes quite a problem to manage/maintain.

IMO (which isn't worth much) I'd use redis to solve issues that redis is extremely good at (huge key/value look ups) but leave the database in place for normal create/read/update/delete ops which are so common to so many apps and generally need a lot of flexibility interms of queries against then.



--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Demis Bellot

unread,
Oct 3, 2010, 4:42:00 PM10/3/10
to redi...@googlegroups.com
You can definitely use it as a datastore and if you have reporting requirements export snapshot of your data to an RDBMS for all your offline reporting needs.
It really depends on your data requirements if you need a lot of querying / reporting requirements you're probably best to go with and RDBMS, etc.

- Demis

Wallace.Jvm

unread,
Oct 4, 2010, 10:42:39 AM10/4/10
to Redis DB
My doubt is regarding the consultations and their conditions ... I
would like to query with conditions for numerical values so it returns
me to an appropriate range? I saw that it is possible to do something
sorted sets, but would require the addition of a String that will not
be useful for me ... = /

On 3 out, 17:42, Demis Bellot <demis.bel...@gmail.com> wrote:
> You can definitely use it as a datastore and if you have reporting
> requirements export snapshot of your data to an RDBMS for all your offline
> reporting needs.
> It really depends on your data requirements if you need a lot of querying /
> reporting requirements you're probably best to go with and RDBMS, etc.
>
> - Demis
>
>
>
> On Sun, Oct 3, 2010 at 9:38 PM, ben wiseley <wisel...@gmail.com> wrote:
> > In my limited experience the answer to "can redis be used as a dabase?" is:
>
> >    1. yes
> >    2. but you probably shouldn't
>
> > Using redis as your sole data store has some major drawbacks.  Namely,
> > reporting.  Remember - with redis - for any multi table join you want to do
> > you need to create, and maintain, more sets/hashes/etc in redis to be able
> > to get this data out.  This quickly becomes quite a problem to
> > manage/maintain.
>
> > IMO (which isn't worth much) I'd use redis to solve issues that redis is
> > extremely good at (huge key/value look ups) but leave the database in place
> > for normal create/read/update/delete ops which are so common to so many apps
> > and generally need a lot of flexibility interms of queries against then.
>
> > On Sun, Oct 3, 2010 at 11:45 AM, Wallace Araujo <wallace....@gmail.com>wrote:
>
> >> Redis can be used as a database? as well as the cassandra? I'm wondering
> >> why I did some tests and had a problem with lack of memory. Is to control
> >> the maximum memory used or where I need to get by setting expiration time?
>
> >>   Wallace Araujo
> >>   Linux user #515394
> >>   visite meu site:http://devsubdev.wordpress.com
> >>   MSN:  wallace....@hotmail.com
> >>   Follow me on Twitter: @wallacejvm
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Redis DB" group.
> >> To post to this group, send email to redi...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> redis-db+u...@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/redis-db?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Redis DB" group.
> > To post to this group, send email to redi...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > redis-db+u...@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> > .
Reply all
Reply to author
Forward
0 new messages