schema scripts gone

25 views
Skip to first unread message

Bryan

unread,
Jun 8, 2012, 4:36:14 PM6/8/12
to cube-user
The last time I did a pull there was a 'schema' directory with a
create and drop script in it. Those are what I used as an initial
guide to create my Mongo db. I believe your wiki documentation used to
instruct folks to do that.

I see that as of commit 0e39a1d03c8a7f3e305505ab308cab1cbc1d8e6e,
they've been removed (comment is "Remove defunct schema."). Can you
help me grok this? Does Cube know how to create the database and
indexes it needs in Mongo on boot if they don't exist or something
now?

Thanks... Bryan

Bryan

unread,
Jun 8, 2012, 4:51:18 PM6/8/12
to cube...@googlegroups.com
To answer my own question and maybe help someone who runs into the same thing.

Yes, Cube automagically creates everything you need in Mongo on the fly (db, collections, indexes, etc.). In fact, you should definitely let Cube do this, b/c when I tried to run that old schema-create.js script I had laying around, it evidently didn't create the proper indexes or collections or something, b/c none of my metrics collections were getting updated with new data, which resulted in terrible performance... unsurprisingly. So yeah... there you go. Let Cube do the Mongo work for you... don't try to do it yourself.

Russell Jurney

unread,
Jun 8, 2012, 5:54:18 PM6/8/12
to cube...@googlegroups.com
This is something I'm going to fix. I want to bulk load metrics from Hadoop into Mongo for Cube.

Russell Jurney
Reply all
Reply to author
Forward
0 new messages