PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 7th of July, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:31:34] <rchopra> hello... any activity here?
[00:32:01] <rchopra> i have a question on find_and_modify
[00:32:33] <rchopra> if I use javascript within find_and_modify's query, will it be atomic?
[00:34:59] <rchopra> anyone?
[00:39:02] <rchopra> people joining and leaving.... thats all the activity
[00:39:06] <rchopra> someone please take time to answer my question please
[00:39:22] <arinel> hey guys
[00:39:25] <rchopra> repeating : if I use javascript within find_and_modify's query, will it be atomic?
[00:40:04] <arinel> is it possible to set up replication in such a way that only documents with certain keys get replicated? or only certain collections?
[00:40:37] <rchopra> you are talking about sharding
[00:41:48] <arinel> perhaps, I'm not sure yet. I have a master database, and a public database. I'd like to mark certain documents as public, and rely on mongodb to replicate them to the public database (effectively a slave).
[00:42:01] <arinel> is that something sharding could accomplish?
[00:42:29] <arinel> it should certainly not replicate the entire master database
[00:43:14] <rchopra> you mean replicate a collection's data to another collection automatically? i guess no such feature
[00:43:22] <rchopra> but you could do that in your driver
[00:44:01] <arinel> interesting
[00:45:01] <arinel> rchopra: but I don't want to replicate to another collection, I'd like to replicate some documents in a collection (marked with public:true) to another collection in a second mongodb database
[00:45:21] <vsmatck> Is mongo returning a float for "ok" in the getlasterror response document?? wtf
[00:45:48] <arinel> rchopra: any ideas?
[00:47:32] <rchopra> arinel, hmm... i guess you would have to deal with this in your driver function... what language do you use to write to the dbs?
[00:48:05] <arinel> rchopra: php
[00:49:48] <rchopra> i guess you would have to write the data to different mongo instances manually... it is definitely not possible to make mongo communicate with another instance of itself
[00:57:54] <arinel> ok, so if I shard a collection by a key that can take 2 values : true or false, can I make mongodb send documents with 1 value to shard A, and documents with second value to shard B?
[01:04:03] <vsmatck> ^ simplified question. "what happens if you shard on a bool".
[01:04:13] <vsmatck> I can't figure it out. Maybe someone knows.
[02:18:38] <fitzagard> no jeremy?
[02:53:59] <dstorrs> Can someone confirm this for me please? : Setting the 'fastsync' option on a replica secondary means "I've already migrated your data, so just use that instead of doing it again"
[02:54:02] <dstorrs> yes?
[10:13:33] <wubino> anyone know where the data/db dir is when using the ubuntu distro?
[10:14:10] <mids> wubino: /var/lib/mongodb
[10:16:01] <wubino> mids: when my system boots it uses that folder, when I stop the server and restart it uses /data/db whats the best fix?
[10:16:40] <mids> how do you stop/start it manually?
[10:18:04] <wubino> mongod stop
[10:19:01] <wubino> if I symlink /var/lib/mongod to /data/db any forceeable problems?
[10:19:01] <mids> use upstart: service mongodb start/stop
[10:19:27] <wubino> foreseeable
[10:19:46] <mids> upstart will start mongodb using /etc/mongodb.conf
[10:21:35] <wubino> ubuntu apt says upstart is installed but it is not recognized at the cl
[10:23:34] <mids> wubino: check out http://upstart.ubuntu.com/getting-started.html
[10:23:51] <mids> this is the default mechanism of ubuntu service management
[10:24:17] <mids> especially see the part on job control
[10:24:37] <mids> and read /etc/init/mongodb.conf
[10:24:50] <mids> hopefully gives you a good impression how ubuntu manages these things
[10:26:03] <mids> now if you insist on calling mongod directly; you'll need to pass the /etc/mongodb.conf config file to it with the --config option
[10:26:10] <mids> so it knows what directories etc you like
[11:25:01] <lolwtfyeh> how can i search for documents where a certain field has a value and is not null?
[11:25:27] <NodeX> not null or not =""
[11:25:58] <NodeX> ?
[12:23:13] <iman> I found a writable problem in mongo document, how can i report it ?
[12:51:14] <ic3> hi guys! i have a big mongodb database with different data inside and i want to make web html reports with this data. How can i do this in a profy way?
[13:45:12] <rarspace01> hi, i have a question concerning an update within an array in mongodb document. soemhow i seem to have an syntax erro on the following example:
[13:45:19] <rarspace01> db.kunden.update({Bestellungen.bestellnummer:321001},{$addToSet:{Bestellungen.$.bestellpositionen:bestellpos1}});
[13:45:49] <rarspace01> all i get is: "Sat Jul 07 15:46:29 SyntaxError: missing : after property id (shell):1"
[13:45:58] <mids> rarspace01: try putting quotes around the name and values
[13:46:27] <rarspace01> acutally i tried bot with " and ' and without anything
[13:49:20] <rarspace01> sry forget it i only put qutoes around the first part :/
[13:49:48] <rarspace01> works now, thanks :)
[13:50:44] <mids> nice
[14:22:36] <Sim0n> Hiya. I have synced over stuff to a new replica-member and now the memory is all used so the building of one of the indexes are reallt slow (100 docs per minute). Is there some danger in restarting the mongod process? Will mongo free up the memory and pick up were it left off or should I just delete all the files and resync and hope for the best? 14gb ram, 450gb data, big indexes.
[14:22:44] <Sim0n> Mongodb 2.0.6 on ubuntu 10.04
[16:50:53] <dnnsmanace> i am having some trouble querying random docs, would someone have any advice on how to go about it?
[18:52:40] <nooga> hi
[18:54:07] <nooga> can I import json file that contain documents without _id using mongoimport ?
[18:54:13] <nooga> contains*
[18:57:54] <nooga> guys?
[22:20:25] <shpoont> is it possible to use dot notation to search into embedded tree?
[23:15:53] <daveluke> if i use $set, will the values for unspecified attributes remain in the existing doc?
[23:30:15] <vsmatck> daveluke: Easy to test in mongo cli.
[23:59:45] <mhenson> I have a mongo server that seems to be in a state where it refuses to shutdown. It's v2.0.2, gist of shutdown sequence itself is https://gist.github.com/3068631 - any ideas?