[13:53:19] <Infin1ty> I changed the config server ip, yet the mongos still tries to connect to the old ip, pinging from the machine the hostname that was provided in mongos.conf works on the new ip, looks like some mongos refuses to check the IP and uses those in the cache
[14:20:57] <OliverJAsh> i have an app that is a bit like twitter in that it has the concept of "following". this means i need to keep track of two things: who a user is following, and counts for how many users a user is following, as well as counts for how many followers they have.
[14:21:28] <OliverJAsh> can anybody suggest how they would model this data? especially with the following/followers counts. doing a count() operation every time would be very expensive, so i'm searching for a better methos.
[14:40:38] <Elico> hey all I am trying to think about a DB structure. anyone is interested to help me think a bit??
[17:58:54] <caitp-> I'm wondering if it makes more sense to let clients of a mongodb connect to it and mess around with it on their own, or if it's better to have trusted scripts on a trusted machine that retrieves and operates on data for the client applications
[18:00:01] <caitp-> like the model layer of an MVC system I guess
[18:00:42] <caitp-> (the clients in question are a bunch of little embedded linux machines, so it's probably better to not impose the mongodb dependency on them)
[18:01:12] <kali> you're worried mongodb might be to fast ? :)
[18:01:49] <caitp-> it's just a question of infrastructure and management, I worry that if each client does this independently it could possibly get mixed up when code gets updated inconsistently
[18:02:10] <kali> hard to give advice without much more information
[18:02:48] <kali> but i'd say mongo is not a game changer from good old SQL techs here
[18:02:48] <caitp-> okay so, mongodb somewhere has a document containing authorized RFID codes with expiry dates and attached names and such
[18:03:07] <kali> if you needed a middleware before or a webservice before, you probably still need one
[18:03:12] <caitp-> we have a bunch of embedded linux machines which need to ask that database "is this RFID code okay? should I open a door for this individual"
[18:03:31] <caitp-> I don't really want to put the auth logic on each individual lock unit
[18:03:38] <kali> what about a simple webservice then ?
[18:04:49] <caitp-> so like, connect over tls to web service, give it json with RFID code and wait for a response?
[18:05:03] <caitp-> that is probably more sensible
[18:05:40] <kali> or even simple GET /rfid/<the id> returning 200 or 404, or 401, or whatever
[18:36:07] <kali> caitp-: arduino are too small to run linux
[21:33:22] <OliverJAsh> i have a question about whether to replicate data in my schema design or not. would appreciate any help i can get http://stackoverflow.com/questions/17137904/schema-design-in-mongodb-to-replicate-data-or-not
[22:44:53] <dorkmafia> is there a away to set unique keys for collections using the java driver?
[23:04:40] <belak> With mongo, if I try to upsert with an id of empty string, will it be the same as an insert?
[23:42:57] <Bilge> Why does the query: { $or: [ {tags: {$in: ['foo']}}, {tags: {$nin: ['bar']}} ] } NOT use an index on tags?
[23:43:20] <barneygale> Hi. I'm using mongoengine to write a forum-like thing. In my listing of Topics, I want to sort by the most recent Post in each. Posts are related by a ReferenceField to their parent Topic. Currently I'm doing "Topic.objects().order_by('+date')" to sort by topic-post-date, but what about most-recent-reply-date? Very new to this, sorry for n00b question.