dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Ping timeout: 264 seconds]
v0n has joined #datamapper
v0n has quit [Ping timeout: 248 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
solnic has quit [Read error: Connection reset by peer]
talntid2 has joined #datamapper
talntid has quit [Ping timeout: 240 seconds]
talntid has joined #datamapper
talntid2 has quit [Ping timeout: 248 seconds]
mbj has quit [Remote host closed the connection]
mbj has joined #datamapper
solnic has joined #datamapper
campezzi has joined #datamapper
<campezzi>
hey everyone. anyone available for a quick beginner question?
<mbj>
campezzi: shoot!
<mbj>
campezzi: answering questions, about answering questions is more boring. So just ask your question!
<campezzi>
just looking for a workaround to the n+1 issue when iterating through a collection that has a many-to-many relationship. ie getting a collection of "videos" and iterating through the "tags" collection of each of those
<campezzi>
I noticed strategic eager loading works really well in one-to-many relationships, but doesn't seem to be doing anything on many-to-many :)
<mbj>
campezzi: SEL (strategic eager loading) does not support multiple levels
<mbj>
campezzi: There is a gist on github with a workaround
<mbj>
solnic: but dunno where
<campezzi>
hm, lets see if I can find that in google. I thought about getting all tags on a separate query and build a "map" instead of relying on something like videos.tags.each. I would probably need to set a join table though (at the moment I'm just using Resource)
<solnic>
SEL is very limited and buggy
rsim has joined #datamapper
<campezzi>
yup. wish i could eager load that. i'm checking out an eager loading plugin gist now, it makes sense
mbj has quit [Ping timeout: 248 seconds]
mbj has joined #datamapper
kandie has joined #datamapper
<kandie>
hi guys, using the dm-mysql adapter, is it possible to specify an encrypted password in DataMapper#setup ? (the result of mysql's PASSWORD(), something like '*ASDFASDF' )
<mbj>
kandie: Id client and server know only the encrypted password they cannot do challenge response authentication anymore.
<mbj>
kandie: So most likely storing only the encrypted pw on client and server would not make any sense.
<kandie>
mbj: thanks for the info, is there any way to keep from writing passwords in plain text in config files then (without resorting to $env variables or such)?
campezzi has quit [Quit: campezzi]
<namelessjon>
kandie: If your app can use it to login, anyone who steals it can, anyway.
campezzi has joined #datamapper
Ortuna has joined #datamapper
<campezzi>
alright, eager loading worked as per this gist: https://gist.github.com/tillsc/3162356 - I had to create a join model on my many-to-many though instead of using :through => Resource. not a problem :)
mbj_ has joined #datamapper
mbj has quit [Ping timeout: 276 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
kandie_ has joined #datamapper
kandie has quit [Ping timeout: 264 seconds]
campezzi has quit [Quit: campezzi]
mbj_ has quit [Ping timeout: 260 seconds]
knowtheory has quit [Ping timeout: 276 seconds]
mbj has joined #datamapper
kandie_ has quit [Ping timeout: 256 seconds]
snusnu has joined #datamapper
snusnu1 has joined #datamapper
snusnu1 has quit [Client Quit]
snusnu has quit [Ping timeout: 252 seconds]
snusnu has joined #datamapper
zombor has joined #datamapper
Voker57 has quit [Ping timeout: 256 seconds]
mbj has quit [Ping timeout: 276 seconds]
mbj has joined #datamapper
rsim has quit [Quit: Leaving.]
zombor has quit [Remote host closed the connection]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
rsim has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
knowtheory has joined #datamapper
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]