[02:42:24] <vsmatck> Is there a way to have a selector get the size of a field (a array field) instead of returning the field? Do I need to have a counter in my doc to do this?
[02:46:32] <TkTech> $inc as needed when you modify the array.
[02:47:09] <vsmatck> TkTech: Ah thank you sir. I searched the docs a lot but wanted to be sure. I'll do a counter.
[04:21:38] <circlicious> hello, i am facing some problems.
[04:22:10] <circlicious> i am making an insert, and its not happening. var_dump() on the insert query gives me this http://pastie.org/4346663 - i guess there's nothing wrong, yet no inserts?
[04:22:39] <circlicious> also sometimes it works, sometimes it doesnt on other pages. is mongo reliable :S
[04:27:04] <circlicious> $db->lastError() dumps the same thing
[06:22:47] <Lawnchair_> you're doing a batch insert ya? don't know why off hand but one of the records isn't valid, so the entire batch fails to insert
[06:23:29] <taipres> is mongodb based off anything?
[06:27:34] <circlicious> i am not doing bantch inserts, dont leave
[06:28:32] <circlicious> god, someone please help, NodeX u there?
[06:43:35] <deoxxa> taipres: happiness and rainbows
[06:46:35] <circlicious> i was talking about same prboelm in ##php, there's a guy, he really hates mongo :P
[13:05:51] <jrm2k6> augustl: can you check that really quickly? http://stackoverflow.com/questions/11701193/save-on-mongoose-schema-stuck-in-coffeescript
[13:05:53] <augustl> but it will be created for you
[13:06:01] <jrm2k6> i explained what is the problem exactly
[13:06:14] <jrm2k6> dunno if it is a config problem/ callback problem or something... really, totally stuck
[13:06:33] <augustl> jrm2k6: so the callback to Post.prototype.save is never calld?
[13:07:04] <augustl> also, are you listening to callbacks for errors on "connect" etc?
[15:03:36] <mids> some non-cryptographic hash functions might be a lot faster if that is a concern
[15:05:31] <sunshadow> mids: Thanks.. I am pretty new to handling hash functions. Could you points a few references?
[15:06:15] <sunshadow> There is one more challenge, while creating a new <longURL,shortURL> entry, first the system has to check whether an entry already exists
[15:07:25] <sunshadow> Thus when creating a new entry, control has to traverse through all the shards before confirming there are no duplicates
[15:07:59] <sunshadow> Is there any solution for that. I thought of spawning 10 threads one for each table. I know there must be better ways to handle this
[15:08:03] <mids> can ppl pick their own short url?
[18:40:14] <sspy> totalSize() shows ~ 54 MB but files are occupying 512 MB. I know about preallocating, but it's unclear why all these files are full of data. What it can be ?