Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created October 19, 2010 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/634547 to your computer and use it in GitHub Desktop.
Save PharkMillups/634547 to your computer and use it in GitHub Desktop.
07:42 <hoodoos> is there any way to list non empty buckets? I guess not, but still :)
07:43 <seancribbs> hoodoos: in the erlang api yes
07:43 <seancribbs> also in PBC i think
07:43 <seancribbs> but, it's just as expensive as listing keys
07:44 <hoodoos> seancribbs, well, it's for admin cases, so no matter how fast it is
07:44 <seancribbs> gotcha
07:44 <seancribbs> {ok, C} = riak:local_client(), C:list_buckets().
07:44 <seancribbs> try that from the console
07:44 <hoodoos> okay, thanks a lot! :)
07:45 <hoodoos> btw, is there any chance to get advice on mailing list
about better architecture of database for some abstract task? or better not do it there?
07:46 <seancribbs> you can ask, but it might be hard to answer in the abstract
07:46 <seancribbs> can you give the 30-second version here?
07:51 <hoodoos> seancribbs, it takes me kinda long to write it, i'll let you know
when I'm finished :)
07:51 <seancribbs> k
07:54 <hoodoos> seancribbs, i'm ready :))
07:54 <hoodoos> I want to gather statistics on user requests. The data should
contain requests it self, let's say it's a flight requests so we have e.g. Moscow
to London route for statistics, then we need to know on which dates it was
requested by users ( Moscow to London on 12th of December 2010 ) and we need
to also keep when it was requested detailed by hour e.g. Moscow to London on
12th of Decemeber 2010 flight was requested on 11th of November 2010 in 15:00. So genera
07:54 <hoodoos> ly this system gotta answer atleast following question
given by Route:Moscow to London, Date:12th of December 2010, which should show
dynamics of price change for that flight, and another one is given the same params
plus N, where N is plus minus days to find statistics on nearest flight dates.
I couldn't really figure out how to get data stored to be able to do mapreduce queries
07:54 <hoodoos> and gather needed information.
07:55 <hoodoos> add to second question: showing the most recent info for prices
07:56 <seancribbs> hoodoos: sounds like a complicated multi-variate problem
07:57 <hoodoos> seancribbs, well i have solution in mysql, but would be great
to solve it in RIak, I will keep thinking on that, and maybe i'll come more concrete questions
07:57 <seancribbs> that might be difficult in Riak
07:57 <seancribbs> although… search could help
07:57 <seancribbs> somewhat
07:57 <seancribbs> but how you store the data is unclear to me
07:58 <seancribbs> (maybe because I don't know the domain very well)
07:58 <hoodoos> seancribbs, I don't store in Riak yet, if i figure out how to
request for it, I would store it in suffiecient way..
07:58 <hoodoos> or maybe begin with storing :)
07:59 <seancribbs> from:Moscow to:London date:(2010-12-8 TO 2010-12-12)
07:59 <seancribbs> right, best to figure out how you'll query it first
08:00 <hoodoos> does riak ds do that kind of consulting?
08:00 <hoodoos> enterprise ds
08:01 <seancribbs> hoodoos: we do professional services, yes
08:01 <hoodoos> i was considering riak for startups, but it's not super hot yet
08:02 <hoodoos> seancribbs, once we have working solution we can migrate data to riak step
by step, I guess that's the right course :)
08:03 <seancribbs> yup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment