PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 30th of June, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:06:48] <John____> Anyone here have experience with using morphia with mongodb?
[00:10:44] <John____> I have visited the morphia channel but it is quite dead so i was going to get some help here
[00:10:54] <John____> well hoping to get some anyway
[00:13:38] <jrcharney> Anyone know how I can get mongodb to stop logging hundreds of those [clientcursormon] messages everyday in mongodb.log?
[03:21:27] <kold> Hi everyone. I'm trying to remove an item from a nested array in a collection via $pull, but it doesn't seem to be working: https://gist.github.com/kevinold/9235740d0537507adb04
[03:30:20] <joannac> ObjectId("53b08bbdb343a4363c7dc3ef") is not the same as "53b08bbdb343a4363c7dc3ef"
[03:30:51] <joannac> which you would've seen if you had tried db.users.find({ _id: "53b08bbdb343a4363c7dc3ef" })
[03:33:04] <joannac> kold: ^^
[03:33:34] <kold> joannac: thanks!
[05:33:32] <j0rd> Does anyone here have any expirience w/ MongDB perl module? im trying to find out if a key exists and if not create it
[08:43:25] <richthegeek_> is there any way to automatically have mongodb search strings and numbers as if they were the same? I guess $in but that seems slow
[08:56:50] <ArSn> hey guys
[08:57:04] <ArSn> I am creating an $in-find query with my application
[08:57:32] <ArSn> but in the slow log it appears to be an regex... it still matches and works fine, I am only concerned about not matchin the index then
[08:57:42] <ArSn> is that a standard behavior or am I missing something?
[09:33:53] <d0x> Hi, i like to use Object.getOwnPropertyNames() in the mongodb JavaScript context. But it isn't defined there. Any alternatives for that?
[09:36:09] <d0x> I like to loop over all fields
[09:38:18] <d0x> o
[09:38:42] <d0x> i am stupid. for(val in obj) works fine
[10:03:04] <j0rd> Does anyone here have any expirience w/ MongDB perl module? im trying to find out if a key exists and if not create it
[10:19:24] <avi__> looking for code review and suggestions... I am building an app which alerts user whenever there is a change in price of a product
[10:19:26] <avi__> http://codereview.stackexchange.com/questions/55674/e-commerce-product-price-tracker
[10:23:30] <swapneshs> Hello All !!
[10:24:20] <swapneshs> I am stuck with Self referencing of schema in mongoose
[10:24:41] <swapneshs> Following is my schema http://pastebin.com/qLqdJpM8
[10:25:16] <swapneshs> and http://pastebin.com/tb3VJYqJ is the error I am getting
[10:26:10] <swapneshs> I am doing this as I am having 3 type of users - admin, manager, employee so employee can be created by maanger , manager created by admin
[10:27:12] <swapneshs> so I want to save all info using a single schema (few fields I deleted from schema for the brevity here) but I am getting the above error
[10:27:27] <swapneshs> Let me know what I am doing wrong here
[10:29:20] <Nodex> pastebin your entire script
[10:31:08] <swapneshs> @Nodex Should I pastebin first and then the link or the entire schema here to paste ?
[10:34:20] <Nodex> lol, what do you think?
[10:35:09] <swapneshs> @Nodex okk fixed it actually I need to use type: mongoose.Schema.Types.ObjectId instead I am using type: Schema.Types.ObjectId
[10:35:37] <Nodex> :)
[10:38:21] <avi__> nodes have anything to add this http://codereview.stackexchange.com/questions/55674/e-commerce-product-price-tracker
[10:38:30] <avi__> nodex I meant
[10:38:31] <avi__> :P
[10:40:28] <Nodex> don't know python sorry
[10:42:21] <Nodex> though you might get better scalability duping the data into each user' own settings document
[11:01:54] <richthegeek_> hey, just noticed there's an error in the docs for mongostat (http://docs.mongodb.org/manual/reference/program/mongostat/#bin.mongostat) - the description on the "repl" field doesn't include "PRI"
[11:05:34] <avi__> 'duping the data into each user' own settings document' can u elaborate this
[11:12:17] <Nodex> avi__ : it's pretty self explanitory no?
[11:12:24] <avi__> no
[11:12:26] <avi__> I didn't get it
[11:12:44] <Nodex> each user has their own document that stores their settings?
[11:12:50] <avi__> u mean keep all data of products in user document?
[11:13:01] <avi__> settings you mean products they are tracking
[11:13:10] <Nodex> no lol
[11:13:25] <Nodex> settings - things like their email, name etc
[11:13:40] <avi__> oh... for twitter user id, iOS push etc/
[11:13:41] <avi__> ?
[11:13:48] <Nodex> :)
[11:16:21] <avi__> okay :)
[11:16:39] <Nodex> beaar in mind I said "dupe" not store
[11:16:47] <Nodex> bear*
[11:17:04] <avi__> what does that mean? I am not a native english speaker
[11:17:11] <Nodex> duplicate
[11:37:40] <dmitrijs> Hello
[11:49:31] <bcave> hello
[11:49:35] <Simon____> Hey, I've got a simple replica set setup and I'm trying to figure out a way to route traffic to the primary with HA Proxy on ly
[11:50:19] <Simon____> Any thoughts?
[11:50:54] <bcave> Simon____: what client connects to it/
[11:50:56] <bcave> ?
[11:51:33] <Simon____> I have three nodejs servers (with mongoose)
[11:51:49] <Simon____> and three mongo servers (the replica set)
[11:55:03] <bcave> not sure about mongoose, but i see it is RS aware
[11:55:38] <bcave> i remember on the java client trying to connect to an RS with only 1 server accessible, and it wouldn't load without connectivity to the other members
[11:56:17] <Simon____> So, plug in the three hostnames in the mongoose config and it "might" route to the correct one?
[11:56:35] <bcave> db.openSet("mongodb://user:pwd@localhost:27020/testing,mongodb://example.com:27020,mongodb://localhost:27019");
[11:56:40] <Simon____> yeah, cool
[11:56:52] <bcave> mongoose's connection format for RS's
[11:56:52] <Simon____> I've been massively over complicating things all morning!!
[11:57:40] <Simon____> Cool, that will save me a bunch of work. Thanks bcave ;)
[11:58:21] <bcave> no problem Simon____. I see they describe it in a bit more detail on the docs page: http://mongoosejs.com/docs/connections.html
[11:58:43] <Simon____> yeah just reading that.
[11:58:58] <Simon____> Had never thought the client would actually be able to do that.
[11:59:32] <Simon____> I'm new to Mongo but it's full of surprising stuff
[11:59:43] <Simon____> Go Mongo!
[12:01:55] <bcave> wondering if someone could help me now :p
[12:02:52] <bcave> i'm having authentication issues. have set noauth=true (also tried auth=false) and restarted, but cannot access the database without authentication
[12:04:09] <dmitrijs> can you please advise me, which patching mechanism should I use for mongodb (mongoose + nodejs) projects?
[12:11:11] <bcave> http://pastie.org/private/cfb8c3big0ngjhdzlqdtw
[12:19:35] <dmitrijs> I have a task to run mongoDB on remote server, with the following requirements: * DB should be running in background; * DB should be automatically started in case if host is being restarted; * DB system logs should be logged in appropriate log
[12:19:59] <dmitrijs> can anyone give me some guidance?
[12:21:29] <bcave> use a service wrapper dmitrijs
[12:22:51] <dmitrijs> bcave thank you for your response. Unfortunately I do not have appropriate knowledge, could you please give me more detailed response? What do you mean by 'service wrapper'? Can you please provide me an example?
[12:23:55] <bcave> use --fork option
[12:27:10] <j0rd> wld anyone here be willing to help me w/ updating a document using perl. i've got inserting worked out and im sure im missing something obvious here. i'll pastebin the code and punch a hole in my firewall to allow mongoDB access through if needs be. i just need someone (anyone) who wldnt mind just eyeballing it for me
[12:33:15] <j0rd> dmitrijs: i your $distro-of_choice has a PPA / yum repo then install it from there. i installed it from the MongoDb yum repo onto CentOS current and it dropped an upstart init script in for me. just had to chkconfig mongod on and service mongod start
[12:34:27] <j0rd> s/i you/if your/
[13:28:30] <KushS> I am testing my node api using mocha. How do I set up a dummy mongodb for that ?
[13:50:48] <tpayne> is there a way to add a unique index, but ignoring NULL?
[13:51:44] <ArSn> tychoish: sparse index & do not set null if the field is not set
[13:52:15] <tpayne> ArSn: huh?
[13:52:20] <tpayne> sparse index
[13:52:34] <tpayne> Right now i'm doing db.users.ensureIndex({phone: 1}, {unique: true});
[13:52:42] <tpayne> but phone is optional
[13:52:49] <ArSn> yeah well
[13:52:57] <ArSn> is it stored as "null" in the documents where it is not set?
[13:53:01] <ArSn> or is it just left out?
[13:53:12] <cheeser> yeah. don't store nulls.
[13:53:33] <tpayne> it's not stored as "null" but null, yes
[13:53:36] <tpayne> "phone" : null
[13:53:43] <ArSn> if so, that is your answer: http://docs.mongodb.org/manual/core/index-sparse/#sparse-and-unique-properties
[13:53:46] <tpayne> and this is done by casbah, the wrapper
[13:53:51] <tpayne> scala mongodb wrapper
[13:53:51] <ArSn> hm
[13:53:53] <ArSn> thats bad :D
[13:53:58] <ArSn> then there is no option I think
[13:54:22] <ArSn> spare index would be the answer if the null attribute was just left out instead
[14:01:10] <tscanausa> anyone had success with socket timeout paramter in node?
[14:04:27] <tpayne> ArSn: ok thanks
[15:32:23] <Nebukadneza> heho
[15:33:29] <Nebukadneza> i have a rather general question on the use of mongodb -- i'm still thinking too much relational
[15:33:48] <Nebukadneza> what i have is a system where i have users playing games, which yield certain data, such as a score, different winning conditions, etc.
[15:34:15] <Nebukadneza> those data i'd like to save, some are the same for each user in one game (there are 4 in each game), and some are specific to one user
[15:34:46] <Nebukadneza> now i'm somehow starting to think relational again ... maybe you can see why -- how would you (roughly) solve this problem using mongo?
[15:40:22] <tscanausa> put each games worth of data in 1 document?
[15:40:44] <tscanausa> I think we might need more information on the problem you are trying to solve rather then how you think you should solve it.
[15:41:39] <Nebukadneza> mhhh, agreed ;0
[15:42:13] <Nebukadneza> imagine a random board game with 4 players, where you can save statistics such as winning conditions and the game "replay"/"history" for each round played
[15:42:25] <Nebukadneza> to provide players with ... well, replay and statistics/ranking, i somehow need to save that information
[15:43:02] <Nebukadneza> as one game's informations are inherently linked to the participating players, i can't jump my relational thinking here ;0
[15:43:25] <Nebukadneza> for statistics display i need some efficient way of locating the stats and replays for one player...
[16:22:41] <kas84> hi guys
[16:23:26] <kas84> how can I add an object to a collection inside a record when doing an upsert update operation?
[16:57:44] <pingboy> can anyone tell me if they're seeing a major difference between 2.4 and 2.6 where upserting a document won't automatically generate an ID from the mongo ruby driver ( tried using 1.10.2 and earlier )
[17:00:37] <pingboy> yeah.. if the query part of your update is _id: null, and you've specified upsert: true, it no longer injects an ID for you.
[17:02:05] <pingboy> figured out how to fix it.
[17:02:12] <pingboy> teh search criteria has to be completely empty if there's no _id
[17:02:14] <pingboy> lame.
[17:03:24] <Raze_> Hello!
[17:03:32] <pingboy> howdy
[17:03:40] <Raze_> has anyone played with authentication and mongoose?
[17:04:13] <pingboy> not i
[17:04:45] <Raze_> i'm able to get a user set for mongodb so that there is some authorization only problem i've hit is i'm getting a key mismatch error
[17:23:01] <KanwarUjjaval> Hey everyone, I was looking for technical details about what makes nosql more scalable than relational dbs..
[17:23:16] <KanwarUjjaval> for my school work
[17:24:26] <KanwarUjjaval> anyone, just point me to soemewhere
[17:24:46] <pingboy> that's a tough point to argue.
[17:25:02] <pingboy> it's not so much that it's nosql that makes it more scalable.
[17:25:26] <KanwarUjjaval> pingboy: some stuff like easy and automatic sharding
[17:25:32] <pingboy> it's a case by case thing.. mongo is very horizontally scalable because of the ability to specify a shard key and have your database even distribute the writes out without you having to code that logic in your app
[17:25:34] <pingboy> sure
[17:25:39] <pingboy> but not all nosql data stores have that
[17:25:41] <pingboy> i.e. redis
[17:26:17] <pingboy> you can code that yourself and do some magic across a bunch of mysql master/slave setups and get a lot of scalability out of that.. dunno. it's just a hard thing to defend definitively.
[17:26:39] <KanwarUjjaval> pingboy: thanks, anypoint about having no schema that mkes it easier to scale out
[17:28:09] <macpablo> Hi is there any way to run a copydb, clonedb, copycollection, copydb from a secondary?
[17:31:53] <pingboy> nothing about schemaless really helps it to scale.. helps ease of development though :)
[17:32:13] <pingboy> macpablo ive not tried it but have you set slaveOk() in your shell and tried it?
[17:32:51] <macpablo> but that command runs on the destination, so the slaveok wont work
[17:35:10] <tscanausa> Cassandra is schema ( basedish I dont even really know at this point ) and is simpler to scale them mongo is ( IMO )
[17:35:25] <KanwarUjjaval> pingboy: thanks :D
[17:35:53] <KanwarUjjaval> tscanausa: anythng specefic to cassandra that makes it more easy to scale?
[17:37:27] <tscanausa> every node is an equal. unlike mongodb you can have up to 4 types of nodes.
[17:38:08] <KanwarUjjaval> <tscanausa> thanks, will look into it :d
[17:38:36] <tscanausa> all you have to do it start a node point it at another and wham n + 1 capacity,
[17:40:42] <lavoro92> hi
[17:41:29] <lavoro92> is there any way to mapping conceptual model with no sql logic model?
[17:44:01] <stefandxm> KanwarUjjaval, sql provides ACID functionality. and only way to gurantee ACID is basically to have a synchronized log of operations
[17:44:11] <stefandxm> KanwarUjjaval, synchronizing this log is very expensive
[17:44:38] <KanwarUjjaval> <stefandxm> thanks will include this too
[17:45:05] <stefandxm> but if you need to have ACID and transactions
[17:45:15] <stefandxm> then nosql doesnt have any reason to scale better
[17:45:26] <cheeser> that's not really true.
[17:45:32] <stefandxm> not by generalization, but a specific database may
[17:46:33] <lavoro92> is there any way to mapping conceptual model with no sql logic model? (another crash)
[17:46:50] <stefandxm> cheeser, what is not really true?
[17:47:04] <cheeser> that nosql can't scale better with transactions
[17:47:54] <federated_life> cheeser: TokuMX
[17:48:06] <federated_life> but no cross shard tx's of course
[17:48:29] <stefandxm> cheeser, i never said that
[17:48:49] <stefandxm> cheeser, i said theres no general reason why it should scale better
[17:49:24] <cheeser> well, your sentence structure is odd, then.
[17:49:24] <stefandxm> in the case of mongo, scaling is basically done as in any sql server
[17:49:28] <stefandxm> no its not
[17:49:38] <cheeser> i'm not going to argue about it.
[17:49:41] <stefandxm> tho with mongo its less safe :)
[17:49:51] <cheeser> it is not less safe actually
[17:49:54] <stefandxm> it is
[17:50:08] <cheeser> whatever. i'm not in the mood to argue.
[17:50:20] <stefandxm> then dont
[17:50:28] <cheeser> i won't!
[17:51:28] <stefandxm> however. a very important point is
[17:51:43] <stefandxm> just because full ACID is safe, doesnt make it more reliable
[17:51:57] <lavoro92> no one knows about mapping from conceptual schema to nosql logic model?
[17:52:16] <stefandxm> for many situations acid can be the cause of data loss when scaling
[17:52:53] <stefandxm> lavoro92, nosql doesnt have a generic structure. but when it comes to document based databases (mongo) or graph databases there are plenty of resources on the web
[17:54:28] <lavoro92> stefandxm: but i read that nosql is schema less
[17:56:16] <KanwarUjjaval> <stefandxm> can we use mapreduce or something similar in relational dbs
[17:56:53] <lavoro92> if i describes the structure with graph layout or schema layout
[17:57:08] <stefandxm> KanwarUjjaval, a sql database can do map reducing yes.
[17:57:35] <stefandxm> KanwarUjjaval, its an implementation technicality
[17:58:08] <stefandxm> KanwarUjjaval, for instance if you use HIVE your sql queries (tho not full sql support) will be translated to hbase (or similair) map reduction jobs
[17:59:02] <lavoro92> stefandxm: if i wanna describe the structure
[17:59:09] <q85> lavoro92: as stefandxm stated, there are resources on the web. Here is one such resource: http://blog.mongodb.org/post/88473035333/6-rules-of-thumb-for-mongodb-schema-design-part-3
[17:59:41] <KanwarUjjaval> <stefandxm> okay, so it cannot be a point for nosql scalability in distributed file systems?
[18:00:04] <lavoro92> q85: stefandxm thank you :)
[18:00:08] <stefandxm> KanwarUjjaval, its easier to allow for map reduction/more control in mapping if you arent restricted to ACID
[18:00:48] <stefandxm> KanwarUjjaval, but it would be immature to say that this or that *cannot* be done in sql compability/or not
[18:00:59] <stefandxm> KanwarUjjaval, one thing we can say is that you *never* need sql
[18:01:00] <KanwarUjjaval> <stefandxm> okay, is there any advantage for non relational dbs implemented over distributed file system like hfs?
[18:01:33] <stefandxm> KanwarUjjaval, what should be argued is if you a) need ACID and b) you want a 3rd form normalized database
[18:02:42] <KanwarUjjaval> <stefandxm> thanks, i took that into consideration, im just going over the scalability advantages for the last section
[18:02:50] <stefandxm> i think most serious (database) developers would argue that normalization is nice but its not always needed and the speed gain can be huge
[18:03:08] <KanwarUjjaval> <stefandxm> noted!
[18:04:24] <stefandxm> and if you have the problem that you either might not be able to store the data, not be able to seek the data then normalization wont be a choice
[18:05:11] <stefandxm> KanwarUjjaval, also please remember.. nosql == not only sql
[18:05:28] <stefandxm> meaning nosql ~= "please think outside of the box"
[18:05:44] <KanwarUjjaval> stefandxm : okay :D
[18:05:50] <stefandxm> and planning your scaling withoug locking into a technique can never be bad
[18:06:23] <KanwarUjjaval> <stefandxm> thanks a lot for the help
[18:07:01] <stefandxm> np
[18:21:45] <KanwarUjjaval> is there any benchmark or reousource for comparing vertical and horizontal scaling with cost! Kindly point me to it if anyone knows!
[18:23:22] <q85> That would largely depend on the application.
[18:24:11] <KanwarUjjaval> general performance vs cost
[18:24:12] <lavoro92> anyway q85 the link that you gave me talks about one to many relation
[18:24:36] <lavoro92> what about generalization ?
[18:25:25] <q85> lavoro92: I guess I don't understand what you mean by generalization.
[18:27:54] <q85> KanwarUjjaval: does this work http://www.fstsummitus.com/media/whitepapers/2013/a_total_-10gen.pdf
[18:27:56] <lavoro92> https://4.bp.blogspot.com/-OCYoDmvaJBg/TeVO3bg_ltI/AAAAAAAAAsQ/3JZO89rGunw/s1600/generalizzazione.png
[18:28:01] <lavoro92> this is generalization
[18:30:35] <lavoro92> what i wanna do is to convert somethink like this : https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/ER_Diagram_MMORPG.png/1009px-ER_Diagram_MMORPG.png in no sql
[18:30:39] <lavoro92> db?
[18:31:49] <lavoro92> q85
[18:35:30] <q85> lavoro92: I'm ponding this a bit.
[18:35:35] <q85> pondering*
[18:40:16] <q85> lavoro92: my hunch is to just say, these diagrams are not necessarily technology dependent. They are simply a way to "talk" about your data.
[18:44:22] <lavoro92> yes i know
[18:45:11] <lavoro92> but image that you made only one diagram and you retrieve all logic model
[18:45:23] <lavoro92> (sql no sql ec..)
[18:45:27] <lavoro92> imagine*
[18:47:47] <q85> So, by looking at one model, you'd understand how, on a technical level, the models would be implemented on two different database technologies?
[18:48:10] <q85> Provided you understood the mapping between the model and the technical design?
[18:48:44] <lavoro92> yes with other info
[18:48:50] <lavoro92> that can permit mapping
[18:49:39] <lavoro92> for example in sql type of attribute
[18:50:16] <lavoro92> the problem
[18:50:21] <lavoro92> is with no sql
[18:50:25] <lavoro92> database
[18:50:45] <lavoro92> if i wanna show a logical model of a no sql db
[18:50:52] <lavoro92> i need to show an example of data
[18:52:55] <lavoro92> the problem is how can i know the structure of logical model given the conceptual schema?
[18:54:04] <lavoro92> q85
[18:54:40] <q85> our architects use doctrine for that.
[18:54:46] <q85> https://doctrine-mongodb-odm.readthedocs.org/en/latest/
[18:56:00] <q85> I cannot give you more specific information than that. I'm unfamiliar with doctrine.
[20:26:01] <DansVC> hi :D
[20:27:09] <q85> hi
[20:27:40] <DansVC> I'm new in MongoDB and have lots of daught
[20:27:42] <DansVC> :s
[20:28:04] <DansVC> how I connect the mongodb in MongoDB with php?
[20:28:14] <LouisT> do you me doubt?
[20:28:35] <DansVC> I need help to begin
[20:28:35] <LouisT> http://www.php.net/manual/en/class.mongodb.php
[20:29:27] <DansVC> I try to read that but I dont have a lot of knowledge of PHP and it becomes really hard to me to understand :S
[20:30:11] <LouisT> you should probably install the controller first as well http://www.php.net/manual/en/mongo.installation.php
[20:30:33] <q85> Why are you trying to connect in php?
[20:30:59] <DansVC> because my host only have php
[20:31:07] <DansVC> I'm very confused
[20:31:33] <LouisT> are you on a shared host? if so, you'd have to ask them to install it for you
[20:31:49] <LouisT> q85: whats wrong with using mongodb with php?
[20:32:04] <q85> LouisT: nothing
[20:32:15] <DansVC> I use 000webhosting and eu5.org
[20:32:44] <LouisT> ah yea, it's unlikely that they support mongodb
[20:32:49] <LouisT> where would you even be connecting to?
[20:33:03] <DansVC> MongoLab
[20:33:28] <LouisT> ah
[20:33:32] <DansVC> I create there a database and I guess that know I have to link to my host
[20:33:35] <DansVC> I'm right?
[20:33:44] <LouisT> well yea, you'll have to contact the 000webhosting support and ask them what you can do
[20:36:21] <DansVC> but dont exist a way to include the database in the php and work like it was a variable?
[20:36:37] <DansVC> (soz I'm thinking very much in JavaScript xD)
[20:38:04] <LouisT> no
[20:38:13] <LouisT> you have to connect remotely
[20:40:11] <DansVC> so, I have to do like this:
[20:40:49] <DansVC> <?php
[20:40:49] <DansVC> $m = new MongoClient(); // connect
[20:40:49] <DansVC> $db = $m->selectDB("example");
[20:40:49] <DansVC> ?>
[20:40:55] <DansVC> soz :s
[20:41:13] <DansVC> and I paste this where:
[20:41:22] <DansVC> mongodb://<dbuser>:<dbpassword>@ds048537.mongolab.com:48537/ray-dee-oh
[20:41:23] <DansVC> ??
[20:42:03] <LouisT> in the MongoClient()
[20:42:14] <LouisT> $m = new MongoClient('mongodb://<dbuser>:<dbpassword>@ds048537.mongolab.com:48537/ray-dee-oh');
[20:42:30] <LouisT> but again, it's unlikely that 000webhosting has the mongo libs installed
[20:42:59] <DansVC> so there is another host with mongodb istalled?
[20:43:08] <LouisT> there are probably a few
[20:43:15] <LouisT> i just don't know of any free shared hosts
[20:43:20] <LouisT> i've always just done it myself
[20:44:54] <DansVC> :s
[20:45:30] <LouisT> you could probably get it running on that free amazon ec2 stuff?
[20:45:35] <LouisT> lasts like a year
[20:46:42] <LouisT> or even openshift i guess, idk, hitting my limits of known free hosts heh
[20:47:45] <DansVC> I never uderstand very well how openshift works
[20:51:18] <LouisT> DansVC: you'd probably be better off paying for some cheapish hosting that supports mongodb
[20:51:47] <DansVC> yes, but I'm just learning
[20:52:37] <DansVC> dont make a lot od sense paying for a thing that I'm not sure if will be useful
[20:57:58] <LouisT> well DansVC, as i said, you could try EC2
[20:58:16] <DansVC> I need a credit card :s
[20:58:28] <LouisT> oh i found a typo in the mongodb docs apparently
[20:58:43] <LouisT> they link EC2 as aws.amazon.come
[21:06:24] <DansVC> thx
[21:06:25] <DansVC> :D
[21:34:16] <Centigonal> yo! I'm kind of new to mongo, and I was wondering: How do I get estimated counts for elements in a collection?
[21:34:26] <Centigonal> or even size on disk works
[21:36:13] <Centigonal> basically, if I have 5GB of records but don't know that, how do I get a rough estimate without waiting for count()?
[21:37:15] <kalink> Centigonal: count() is fast. mongodb is not postgresql
[21:38:03] <Centigonal> oh, wow
[21:38:48] <kali> Centigonal: db.collection.stats() will give you disk size
[21:39:04] <Centigonal> That helps, too!
[21:39:37] <kali> Centigonal: http://docs.mongodb.org/manual/faq/storage/ more stuff here
[21:40:33] <Centigonal> That's actually really helpful -- I have no idea how I missed this page
[21:42:38] <kali> dont feel bad about that. finding the usefull pages in the current doc is still hard (even if it's slowly improving)
[21:46:06] <Centigonal> :D
[21:55:49] <daidoji> hello, who's got experience with geocoding (GeoNames in particular) and Mongo?
[21:56:17] <daidoji> if so, what libraries do you use? Are you using the Geonames webservice? Do you utilize the internal Mongo tools (although it doesn't seem like there's too much there)?
[21:56:21] <daidoji> etc.. etc...