[01:56:31] <AronBrrr> so i have a collection of, say, television shows, and inside each show is a seasons array, which contains info about each season, and inside each season object, there’s an array of episode objects. is this a good/bad way to do it?
[01:56:53] <AronBrrr> or should i have an episodes collection and then a tv shows collection? and link them somehow?
[04:54:01] <torarch> is there much sense in terms of efficiency to split a users collection into guest users and permanent users? I am getting large quantities of guest users which I expire based on a sparse index on a field that only the guest users have
[04:55:08] <torarch> there are some unique indexes that are applied to the user collection which dont need to hold for guest users
[14:15:17] <Patteh> i've got a db connection setup with mongoose
[14:15:24] <Patteh> but i need to use mongodb's batch insert functions
[14:15:32] <Patteh> must i create a new connection for mongodb native to use
[14:58:30] <mordof> i'm on EST - but i wake up at my 'work time' just out of routine, heh
[14:59:39] <mordof> so i've got a bunch of different items in several different collections that are holding x, y values (indexed with generic 2d index in mongo). my thought was that if i held a box (2 tuples or w/e they're called), that i could query a "is this point inside any user box"? type of thing
[14:59:56] <mordof> so as to find out which user needs to be alerted when an item in a collection gets updated
[15:00:36] <mordof> essentially all i've been trying to determine for the past week or so, is if that's a good idea, and if so - can mongo do that with "normal" 2d indexes
[15:01:07] <Patteh> what is the requirement? local event alerts for users?
[15:01:39] <mordof> it's a game for the sake of testing out node+mongo and other processes working together. so the user is looking at a current location, and if something gets updated - they should see that come up
[15:01:47] <mordof> socket io for web transmissions
[15:02:19] <mordof> so i'm trying to determine a decent way to mark that a user should receieve updated info
[15:02:42] <mordof> without just having the client request all data every few seconds or something, lol
[15:03:07] <Patteh> yeah would be a bit tricky getting full realtime
[15:03:22] <Patteh> that sounds like plausable logic
[15:03:37] <Patteh> but in terms of implementation with mongo/node i wouldnt know
[15:03:37] <mordof> the whole architecture/process for the game has been geared towards allowing for latency issues and certain timeouts and whatnot, so that part is fine
[15:11:31] <Patteh> undecided if i prefer it or not
[15:12:05] <mordof> i'd say it's a hindrance - depending on what type of projects you work on.
[15:12:11] <mordof> for databases in particular anyway
[15:13:02] <mordof> i generally have to jump on random remote boxes in production to check data quality and ensure records are there, so if i only knew the IDEs for the databases I work with... well that wouldn't work at all
[15:14:13] <mordof> i suppose a person can learn both well. generally that only occurs through necessity either way though
[15:19:40] <Patteh> it just has a mongodb explorer
[15:21:26] <mordof> https://groups.google.com/forum/#!topic/mongodb-user/LTt53Ki4Rug this is similar to what i want to do, without the need for the $near in the query... but i don't want to use lat/lng - and i'm wondering if this is possible to be done NOT based on a sphere (or if it's not, does it even matter?). i want to use x, y values with currently undetermined min/max limits
[15:24:15] <modulus^> mordof: what are you trying to accomplish?
[15:25:42] <mordof> modulus^: i'm making a game - user has a viewport (area of space they see). it's all 2D. each document in a collection has an x,y location for it. i want to update a user with new info if a document within his viewport has been updated
[15:26:14] <modulus^> mordof: are you writing a 2d physics engine?
[15:28:40] <mordof> modulus^: i figured if i stored a polygon for the user's viewport, then each time a document gets updated - i could update that user's document to say "i need to update" and only then send new data to the user
[15:29:37] <mordof> modulus^: by doing a $geoWithin. but the part i don't know about is if that *always requires* lat/lng and calculates on a sphere. the documentation is not clear on this