[02:28:52] <ThatTreeOverTher> r01010010, I personally only know how to use mongoose when working with mongodb (I think it's easier) but what error are you getting?
[02:29:10] <r01010010> Error: failed to connect to [localhost:27017]
[02:30:46] <ThatTreeOverTher> it appears to me that the way you're doing it should work
[02:30:58] <ThatTreeOverTher> at least from the Node perspective
[06:20:48] <BuildRPMPackage> + cp 'debian/*.1' /tmp/tmpBf8Jzv/rpmbuild/BUILDROOT/mongodb-org-2.6.5-1.el6.x86_64/usr/share/man/man1/ cp: cannot stat `debian/*.1': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.rBsE48 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.rBsE48 (%install) Traceback (most recent call last): File "./packager1.py", line 653, in <module> main(sys.argv) File "./packager1.py",
[06:21:11] <BuildRPMPackage> sorry for the non-formated paste
[06:21:28] <BuildRPMPackage> can someone help here?
[06:25:27] <BuildRPMPackage> is there anyone around here?
[07:33:11] <kenITR> very new to Mongo. When I do a find(), should mby docs have a lot of slashes in them?
[11:57:30] <lareth> Hello I want to create a new collection which will save the results of my mapreduce jobs. I know I can use "out" for that. What I want though is the results to be saved in a structues like collection.year.mongth.results. How can I do that?
[15:22:17] <dreambox> hey guys, I'm trying to do a within() geometry thingie...
[15:28:37] <wsmoak> interesting… have you tried making it simpler? without the sort and populate perhaps?
[15:28:47] <wsmoak> just comparing it to https://github.com/aheckmann/mquery#geometry
[15:29:35] <dreambox> I will start simplifying it yes (this is all MeanJS boilerplate)
[15:31:10] <dreambox> removed sort and populate, unfortunately no change :(
[15:31:41] <dreambox> I am wondering whether it should be where('location') or where('message.location')
[15:31:53] <dreambox> basically how on earth do you debug something like this ? :(
[15:39:28] <dreambox> wsmoak: in the examples you gave me (very cool btw) , it doesn't show how the 'loc' should look like..
[15:39:35] <dreambox> maybe thats where the pbm is
[15:41:32] <wsmoak> so that appears to be the underlying mongodb operator: http://docs.mongodb.org/manual/reference/operator/query/geoWithin/#op._S_geoWithin
[15:42:17] <wsmoak> what I haven’t found is, what must the data you are querying look like ?
[15:43:16] <wsmoak> basically I want to insert some sample data and see that query work at the command line
[15:43:38] <wsmoak> can you paste some sample data in a gist ?
[15:50:44] <sethetter> I'm trying to model a poll application, where each poll has choices and those choices have votes. A vote will be tied to a user. Is it more "mongo-ish" to embed choices and votes inside the Poll document? Or have each as it's own resource with assocations like I would with a relational DB?
[16:36:19] <wsmoak> this is fun! I’m adding locations to my example app to see if I can get to where you are.
[16:36:44] <wsmoak> so… on yours, who wrote the schema ?
[16:37:02] <wsmoak> I’m far from an expert, I don’t want to tell you to change it and make it worse :)
[16:49:37] <Zerg_Rush> hey whats the quickest way to check something like: select x from TABLE where (a=1 and b=1) or (a=2 and b=2) or (a=3 and b=3) .... thanks guys. I'd say $or : [{a:1, b:1}, {a:2, b:2}, ...] but I'm not totally sure if the mongo query equals to the mysql query. thanks for help
[16:51:37] <dreambox> wsmoak: it's a MeanJS boilerplate.. it's generated out of commands, I didn't write much. (ok, I added the location)
[17:01:57] <wsmoak> dreambox: to me it looks like you’ll need to use GeoJSON format for your location so that you can query it. I found this that might help with your schema http://stackoverflow.com/questions/15556624/how-does-one-reprsent-mongodb-geojson-fields-in-a-mongoose-schema
[17:29:22] <dreambox> I got disconnected.. I saw your last message.. I just put random coords in the polygon, I dont know if it would work
[17:35:50] <wsmoak> dreambox: yeah… I don’t think that’s a polygon. :) the ones on http://blog.mongolab.com/2014/08/a-primer-on-geospatial-data-and-mongodb/ have the same starting and ending point, making a closed figure.
[17:37:15] <wsmoak> I got mine to work like that example, with a 1-unit box starting and ending at 0,0, and a point at 0.5, 0.75 within it.
[18:25:49] <dreambox> wsmoak: so I do need the array thingie and I also need the 'type' ? as in the documentation?
[18:27:21] <wsmoak> it looks like you could get away with the legacy 2d location … and that the embedded document is actually legal. http://docs.mongodb.org/manual/core/2d/
[18:27:59] <wsmoak> but if this is new development I would go with GeoJSON
[18:28:22] <wsmoak> (that is, you don’t have a ton of data already in the legacy format)
[18:29:18] <dreambox> no its totally new and experimental
[18:29:47] <wsmoak> and it seems like “how to validate GeoJSON” should be a solved problem, something you just include into your schema :/
[18:37:57] <wsmoak> dreambox: what are you using on top of mongodb? that .where().sort() syntax ?
[18:49:23] <wsmoak> dreambox: so the current issue is changing your schema to accept the location in GeoJSON format?
[19:28:28] <dreambox> yep :) I looked at the stackoverflow question but..
[19:28:45] <dreambox> seems like there's an issue with mongoose and the schema when u re trying to make it
[20:39:48] <qutwala> http://dba.stackexchange.com/questions/83399/mongodb-insert-performance who can give any suggestions?
[21:38:29] <AlexZanf> hey guys, when i insert a new item into my collection, it creates an id that is an objectId, how can I make it so that its just an auto incrementing integer instead?
[21:39:57] <AlexZanf> this is only for testing, not production
[21:42:57] <Derick> there are no auto increment ids in MongoDB
[21:43:25] <joannac> assuming you have a single app (and single threaded), do it app-side?