[06:10:21] <Ecugetons> I'm looking for a JSON database for a PaaS kind of service. I need one database to handle possibly 1000s of "clients" each with their own db/collection. I was wondering if it is safe in mongo to give each one a collection and let it run anything (collection.query etc) on it, or can it possibly access other collections?
[06:18:50] <ron> Ecugetons: you should read about mongodb's security configuration, but imho, you shouldn't rely on it but have some kind of an additional layer in front of it. not sure how performant it would be with 1000s of clients too, but given the first point, I don't see a reason you should need it.
[06:19:28] <ron> also, keep in mind that mongodb does *not* store JSON but rather BSON. they are represented as JSON when you view them, but that's not how they are stored internally.
[06:22:25] <Ecugetons> "I don't see a reason you should need it."
[06:25:12] <jinmatt> Hey, is it a best practice to use mongodb or any db for storing feature switching config variables? or just use constants in a config file?
[06:49:00] <ron> Ecugetons: if you have an extra layer before mongodb, then you can control the access using that without the need for a collection per user.
[07:34:04] <newbsduser> hello, i cant start mongodb instance, logs here: http://pastebin.com/twXH2fkP can you check it please?
[07:37:34] <ppeterma1n> newbsduser: have you tried to do as it tells you?
[07:39:48] <newbsduser> it s already enabled before unclean shutdown
[07:40:27] <ppeterma1n> Tue Jan 7 09:25:02.458 [initandlisten] exception in initAndListen: 13597 can't start without --journal enabled when journal/ files are present, terminating
[07:40:31] <ppeterma1n> thats when you start your repair
[07:40:50] <ppeterma1n> and its shuting down because of that
[09:59:33] <WhereIsMySpoon> Im having trouble reconciling the idea of mongodb to making classes with them..mongo is schema-less, which means there is no strict structure. This means that I cannot be sure that all objects in a collection will have the same structure
[09:59:58] <WhereIsMySpoon> I guess my question is..how do people go about dealing with this and what is the normal way to go about architecting this sort of thing with mongo
[10:00:33] <WhereIsMySpoon> im a bit puzzled as to how putting together a strict class system and mongo's system works
[10:00:33] <ron> you know you're controlling the data, right? no little gnomes going in and altering the data for you.
[10:00:59] <WhereIsMySpoon> but i would also like ot make sure the system is robust
[10:01:07] <ron> store strict classes in a collection, and you'll have only strict classes in mongo. it's that simple.
[10:03:19] <WhereIsMySpoon> ron: ok the specific thing im dealing with here is whether to store a list of user ids as a single object in a collection as a list of ids or as a list of user objects in the collection
[10:03:24] <WhereIsMySpoon> in sql its a no brainer, its a list of user rows
[11:44:55] <ppetermann> last summer i had a really nice signatory filling of a ben nevis
[11:45:03] <Derick> I'm having the problem of running out of shelf space
[11:45:59] <ppetermann> i'm not collecting, i'm just ordering between 2 and 3 bottles (+ some bottles for some friends if they join in), and order the next when those are empty
[11:46:24] <ppetermann> how many of your bottles are open?
[11:46:50] <Nodex> Derick : horizontally scale the shelves :P
[11:58:38] <ppetermann> just wondering, co-worker of mine has alot of open bottles as well, and he just bought some co2-thing that you can use to re-seal the bottles
[11:59:19] <Derick> not sure how much effect that has really...
[12:00:35] <ppetermann> tbh, my bottles don't live long enough for oxidation to make much of a difference, but i had a bottle port wine turn on me last year
[12:01:00] <Derick> yeah, wine and port is much more sensitive to this
[12:01:21] <ppetermann> well, less alcohol and more sugar =)
[16:02:14] <treaves> I'm trying to determine what "scoped connection to 127.0.0.1:27017 not being returned to the pool" means.
[16:02:47] <treaves> I see the comment in connpool.cpp, but, it doesn't make any sense.
[16:03:28] <treaves> "/* see done() comments above for why we log this line */"
[16:03:32] <treaves> Which is "The pool takes care of deleting the failed connection - this will also trigger disposal of older connections in the pool"
[16:03:33] <treaves> But, the connection is not failed.
[16:03:33] <treaves> So I do not understand the relevence .
[16:21:13] <metasansana> trying to compile mongo on ubuntu12.04 and I get error : "target has GLIBC_2.4 dependencies!"
[18:04:38] <TehShrike|Work> I'm using the Java API (an oldish version, 2.6.5). If I get back a document containing a list, what is the proper way to turn it into a Set/List/Collection? Can I just cast it ala (BasicBSONList)obj.get("my_list") ?
[18:15:03] <maginot> Hello. Can anyone help me with where can I found more information on how to configure mongodb.conf for a configuration with replicaSet and shard?
[18:20:35] <Nodex> maginot : try the docs on the mongodb website, they have a lot of info
[18:24:39] <cheeser> i don't think anything in mongodb.conf affects either of those, really.
[19:14:13] <maginot> okay, I'm digging inside mongo's website, and I'm having a lot of information and doubts, maybe I should adopt a good book to get a more didactic approach on how to implement a trustful cluster on my production environment, I'm open for suggestion if you have any. Thanks
[19:18:15] <NaN_> any help with this error? > [initandlisten] exception in initAndListen: 10310 Unable to lock file: /var/lib/mongo/mongod.lock. Is a mongod instance already running?, terminating
[19:18:32] <NaN_> mongo is not running and it doesn't let me start
[19:25:45] <cheeser> you can safely delete that file then
[19:27:38] <NaN_> cheeser: I already deleted the file, the problem continues
[19:50:37] <mrpoundsign> I'm getting a strange error trying to use upsert on a 2dsphere index... Can't extract geo keys from object, malformed geometry?:{ type: "Point", coordinates: [ 180, 91 ] } -- seems to haveppen if X < 180 or Y > 90
[19:53:08] <mrpoundsign> is that the right index for Point? The docs were pretty confusing on this. haha
[19:54:23] <mrpoundsign> I was thinking about just using the 2d index, because it is just points on a plane. But I was frightened by it being labeled as "legacy"
[19:56:49] <ranman> mrpoundsign: 2dsphere indexes are modeled on the earth
[19:56:59] <ranman> 2d indexes are more coordinate plane oriented
[19:57:52] <ranman> but the 2dsphere index can also support the old coordinate pairs unless I'm mistaken
[19:58:22] <ranman> so data that you would have in the 2d index "should" work the same? can anyone confirm that?
[19:59:34] <mrpoundsign> that was my understanding, but I can't seem to upsert { type: "Point", coordinates: [ 181, 88 ] }
[20:00:30] <mrpoundsign> actually, it seems to have the same problem in the negative. hmm
[20:03:10] <mrpoundsign> would there be a better way to do this for a flat plane of x,y coords that I don't want to have a limit on and that I can still query as a box?
[20:04:00] <mrpoundsign> or should I multiply by some factor to make it fractional?
[20:05:43] <ranman> I think you might be able to just use a 2d index and get what you want
[20:14:04] <ranman> seeing as http://docs.mongodb.org/manual/core/2d/ this page is the first result for mongodb geoindex I think we should update that to have another bullet underneath use a 2d index if
[20:14:37] <mrpoundsign> * if you're creating a really silly website and trying too hard
[22:23:47] <OliverJAsh> can anyone share their thoughts on how best to implement paging over mongodb? http://stackoverflow.com/questions/20960815/range-query-for-mongodb-pagination/20960868