[00:38:27] <jiggliemon> Hey guys. I can't stop thinking in relational terms.
[02:10:46] <andholt> quick question if anyone has time to help - running a query with a $where statement like so: $where : "hex_md5(this.email) == '" + md5_hash + "'"
[02:11:01] <andholt> and getting the following error: rror { [MongoError: Error: hex_md5 takes a single string argument -- hex_md5(string) near 'his.email) == 'd1ac2903d2edabc5f2673a9a13' ] name: 'MongoError' }
[02:11:14] <andholt> this works locally on Mongo 2.6, but not remotely on our servers which are running 2.4
[02:15:06] <joannac> did you type that error or copy and paste?
[02:15:17] <joannac> how did this.email turn into his.email?
[04:29:04] <]random[> i'm trying to write a sidekick service to check if mongodb is alive or not. is there a way to check it without having to install the mongo client?
[04:32:28] <]random[> end goal is for sidekick to check if it's up and update etcd accordingly for service discovery by apps and replicas
[04:35:33] <]random[> nvm, i see they actually have a rest api interface.
[04:41:27] <]random[> can't figure out the rest api :(
[05:47:37] <hahuang62> joannac: we successfully upgraded from 2.0.4 to 2.6.5 yesterday and we're seeing some different query performances. In our mongod logs, we see a TON of queries not hitting an index (or seemingly using the _id index), but when we try .explain() on it, it'll hit the appropriate index and return in 30ms instead of 70k ms like in the mongod logs...
[05:47:45] <hahuang62> joannac: have yous een anything like that?
[05:48:48] <joannac> hahuang62: upgrade to the latest release 2.6.7
[05:49:27] <hahuang62> oh... was it a bug with 2.6.5?
[05:50:53] <joannac> no idea, but upgrading to the latest release at least assures me it's not a bug already fixed
[05:52:05] <hahuang62> joannac: I searched around, and found: https://jira.mongodb.org/browse/SERVER-13866
[05:52:11] <hahuang62> but that claims it was fixed in 2.6.2
[05:55:41] <joannac> hahuang62: isthe wrong index thing reproducible?
[05:55:48] <joannac> hahuang62: which shard is the mongod.log from?
[05:56:25] <hahuang62> joannac: it's shard 1 always, and we cannot reproduce it in mongo console, but a TON of these show up in the logs, enough to triple our average response time.
[05:56:39] <hahuang62> all the other queries look to be performing about the same as pre-upgrade
[05:57:10] <joannac> hahuang62: turn up your logging and try and catch one
[05:57:35] <hahuang62> joannac: I'm not sure I understand what that means? Aren't I already catching these int he log?
[05:58:05] <joannac> no, 1 line is not enough to diagnose
[05:59:17] <hahuang62> okay, lemme see what I can do
[06:47:02] <henryC> Is there anybody that can advise me with a situation that is similar, but not the same, as this? https://stackoverflow.com/questions/10726178/how-to-findandmodify-a-value-in-a-nested-array
[06:47:39] <joannac> what's wrong with the answer in the SO ?
[06:48:21] <joannac> how is your question different?
[06:48:41] <henryC> My situation is similar but I don't have unique keys in the array like that. I need to match based on _id first, then select the key based on some string (which is not unique across documents).
[06:56:01] <henryC> sorry if this not the prettiest, but in my callback I have _id and I have the symbol (eg. "VT"), and I want to update the "shares" in the array. http://pastebin.com/EfCVNF9i
[06:56:42] <henryC> VT will exist in other documents
[06:59:10] <joannac> so why can't you do db.foo.update({_id: ..., "tickers.symbol" : "VT"}, {$set: {"tickets.$.symbol" :"AB"}})
[07:00:48] <henryC> ah, thanks, I'll try that. Sorry this is all so new to me coming from SQL.
[07:08:13] <henryC> joannac: thanks. I think that will work but I can't see it work because I ran into an issue relating to meteor's allow/deny rules I think.
[07:10:55] <henryC> joannac: I guess Meteor will only allow me to query based on _id and a user may have several of these documents, so this is a separate problem I have to work out. Thanks for getting me straightened out on the mongo part.
[07:58:26] <jasperr> Searching for awaitData example in ruby. Anybody did this? Thx.
[09:13:01] <joy> hello can anybody sujjest a good database design to store my data's actually i am designing a taxi app and i want to store all data's into two dbs one relational and the other one is mongo db
[09:14:19] <joy> is relational db really needed here for my app design or just any nosql db is enough
[10:21:19] <hahuang62> Any mongodb employees here right now? We just had some huge perf issues and our cluster is down, would like to see if we can pay for some support
[16:07:31] <hahuang62> joannac: we purchased online actually, but they gave us a generic phone number
[20:12:03] <nfo> Hi everyone. I upgraded from MongoDB 2.4.9 to 2.6.7. Since the update, all requests (upserts) are written in the log file. I kept the configuration file from 2.4. Logging has the default values, which should be "not verbose".
[20:32:45] <nfo> ok I get it "mongod writes the output of the database profiler to the system.profile collection."
[20:32:53] <nfo> "mongod prints information about queries that take longer than the slowOpThresholdMs to the log even when the database profiler is not active."
[20:34:14] <nfo> joannac: Can I change this threshold from the configuration file ? Or I have to call "db.setProfilingLevel()" from the mongo shell ?
[20:37:07] <nfo> If mongod 2.4.9 behaved the same way, it worries me a bit that a lot more upserts take more than 100ms (about 200ms apparently) in 2.6.7. It fills gigabytes of log files in seconds.
[20:41:32] <nfo> and I usually get "warning: log line attempted (11k) over max size (10k)".
[20:47:04] <nfo> joannac: I can't really share the log lines, sensitive data (or I can share in a private message). But as I wrote, my upsert queries are quite big. I can share the mongostat output, if you'd like.
[21:04:00] <nfo> joannac: thanks a lot for your help.