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
ckrailo has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 276 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
brianpWins has quit [Quit: brianpWins]
v0n has joined #datamapper
zombor has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
v0n has quit [Read error: Operation timed out]
zombor has joined #datamapper
zombor has quit [Ping timeout: 252 seconds]
brainopia has joined #datamapper
brainopia has quit [Client Quit]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Ping timeout: 264 seconds]
mbj has joined #datamapper
slainer68 has joined #datamapper
slainer68 has quit [Ping timeout: 268 seconds]
zombor has joined #datamapper
zombor has quit [Ping timeout: 248 seconds]
mbj has quit [Ping timeout: 275 seconds]
rsim has joined #datamapper
mbj has joined #datamapper
rolfb has joined #datamapper
dawkirst has joined #datamapper
slainer68 has joined #datamapper
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #datamapper
splattael has joined #datamapper
snusnu has joined #datamapper
solnic has joined #datamapper
viranch has quit [Quit: No Ping reply in 180 seconds.]
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
viranch has joined #datamapper
zombor has quit [Remote host closed the connection]
rsim has quit [Quit: Leaving.]
ptico has joined #datamapper
postmodern has quit [Quit: Leaving]
mbj has quit [Read error: Connection reset by peer]
mbj has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
knowtheory has joined #datamapper
knowtheory has quit [Ping timeout: 264 seconds]
rolfb has quit [Quit: Leaving...]
rsim has joined #datamapper
cored has joined #datamapper
cored has quit [Quit: leaving]
cored has joined #datamapper
bobocopy has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has joined #datamapper
v0n has joined #datamapper
gix has quit [Ping timeout: 245 seconds]
gix has joined #datamapper
bobocopy has joined #datamapper
Frost has quit [Ping timeout: 256 seconds]
Frost has joined #datamapper
rsim has quit [Quit: Leaving.]
banditron has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
dkubb has joined #datamapper
snusnu has joined #datamapper
splattael has quit [Quit: Leaving.]
ckrailo has joined #datamapper
didlix has joined #datamapper
<didlix> Hello. Can anyone tell me if there is i18n for validations?
mikecmpbll has joined #datamapper
<snusnu> didlix: look through https://github.com/datamapper/dm-validations/issues/20 for a description how i got it to work back then
<didlix> Thanks
dkubb has quit [Quit: Linkinus - http://linkinus.com]
slainer68 has quit [Remote host closed the connection]
slainer68 has joined #datamapper
slainer68 has quit [Ping timeout: 240 seconds]
<didlix> snusnu: do you need to implement the class in https://github.com/datamapper/dm-validations/issues/20#issuecomment-5990868 ?
<didlix> Never mind
* didlix learns to read
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<mbj> !memo dkubb Yeah you got my point about new "Decider" object!
<Cinchy> mbj: Memo recorded for dkubb.
rdFLeece has joined #datamapper
<rdFLeece> does anyone know a good way to do bulk inserts into sql databases using data_mapper?
rsim has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
<onewheelskyward> rdFLeece I did so by making the sql myself, and shunting it in through the adapter.
<rdFLeece> ah, so no support in data_mapper?
<onewheelskyward> I can't say that for sure, but I couldn't find one when I looked. I'm using 1.2.
<onewheelskyward> If you find a way, do let me know. :)
jeremyevans_ has quit [*.net *.split]
Gibheer has quit [*.net *.split]
Gibheer has joined #datamapper
jeremyevans has joined #datamapper
mbj has quit [Quit: leaving]
didlix has quit [Ping timeout: 260 seconds]
snusnu has quit [Quit: Leaving.]
didlix has joined #datamapper
slainer68 has joined #datamapper
<rdFLeece> does anyone know how to use the transaction class?
mbj has joined #datamapper
snusnu has joined #datamapper
ptico has quit [Remote host closed the connection]
rfizzle has joined #datamapper
<namelessjon> rdFLeece: What do you want to do?
<rdFLeece> namelessjon: I have 80000 records that I'm trying to insert into a database. I can't find a way to do it quickly.
<mbj> rdFLeece: plain sql!
<mbj> rdFLeece: best use the COPY statement if possible.
<rdFLeece> mbj: it's from a file to the database
<rdFLeece> mbj: (sqlite3)
<mbj> rdFLeece: sqlite3 has bulk insert mode
<mbj> rdFLeece: browse the docs, or google
<rdFLeece> mbj: using data_mapper?
<mbj> rdFLeece: no, I'd not use datamapper for 80k records.
<mbj> rdFLeece: You could try within a transaction
<rdFLeece> mbj: well, we're stuck with ruby, is there another module you would suggest
<mbj> rdFLeece: module?
<rdFLeece> library
<namelessjon> rdFLeece: You could drop down to data_objects, which removes a lot of the overhead c.f. datamapper.
<mbj> namelessjon: +1
<mbj> rdFLeece: you tried within a big transaction?
<rdFLeece> mbj: I haven't tried a transaction yet. How would I go about that?
<mbj> rdFLeece: woot?
<mbj> rdFLeece: sqlite does not perform without using transactions when doing bulk inserts!
<rdFLeece> mbj: I see...
<mbj> rdFLeece: It does an fsync after EACH row!
<rdFLeece> mbj: I am not a clever man
<mbj> require 'dm-transactions'
<mbj> YourModel.transaction { do_your_import_stuff_within_this_block }
<rdFLeece> does that work with associations?
<mbj> rdFLeece: jo it is global.
<mbj> rdFLeece: you can start transctions on any model, it is just the entrypoid.
<mbj> *entrypoint
<rdFLeece> mbj: so User.transaction { user.friends.new(:name => "bob") }
<rdFLeece> mbj: like that?
<namelessjon> rdFLeece: Also save
<rdFLeece> mbj: right, right
<namelessjon> but yeah, basically.
<namelessjon> end the block to commit, raise to trigger rollback.
<mbj> rdFLeece: Yo as I said, a transaction affects all writes/reads within that block!
<rdFLeece> mbj: is there any overhead in using #create! ?
<mbj> rdFLeece: #create! does less word.
<mbj> *work
<rdFLeece> mbj: so it would be faster, right?
<rdFLeece> mbj: even though it doesn't validate
<namelessjon> Should be, yes
<mbj> rdFLeece: validation is more work than skipping validation, so yes.
<rdFLeece> mbj: it's still taking exceedingly long...
<mbj> rdFLeece: Better than w/o transaction?
<namelessjon> So try data_objects instead of DataMapper? Also, how many times do you expect to do this?
rsim has quit [Quit: Leaving.]
<rdFLeece> namelessjon: it's not just a one time thing
<rdFLeece> mbj: it still hasn't finished
ptico has joined #datamapper
<mbj> rdFLeece: Better than w/o transaction?
<mbj> rdFLeece: dont you log speed?
<rdFLeece> mbj: it seems like it's limited to 60 creations/sec
postmodern has joined #datamapper
<Cinchy> [URL] SQLite Frequently Asked Questions
<rdFLeece> rfizzle: it says sqlite can easily handle 50,000 inserts/sec. I'm putting 80,000 into one transaction and it's still taking forever...
<mbj> rdFLeece: Better than w/o transaction?
<rdFLeece> mbj: I think it's better than without
rsim has joined #datamapper
cored has quit [Ping timeout: 256 seconds]
rsim has quit [Ping timeout: 240 seconds]
cored has joined #datamapper
cored has joined #datamapper
travis-ci has joined #datamapper
<travis-ci> [travis-ci] datamapper/dm-core#31 (release-1.2 - 549f05e : Dan Kubb): The build has errored.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/datamapper/dm-core/builds/8209776
travis-ci has left #datamapper [#datamapper]
solnic has quit [Quit: Leaving...]
<Cinchy> mbj: Memo recorded for solnic.
<mbj> !memo solnic rom-session now depends on rom-relation and rom-mapper, this surprises me!
<mbj> !memo solnic It should be possible to use rom-session w/o other modules. I dont see the need for a hard dependency, you?
<Cinchy> mbj: Memo recorded for solnic.
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
cored has quit [Ping timeout: 256 seconds]
cored has joined #datamapper
cored has joined #datamapper
v0n has quit [Read error: Operation timed out]
zombor has quit [Remote host closed the connection]
rfizzle has quit [Quit: Leaving]
bobocopy has quit [Quit: Leaving.]
mbj has quit [Quit: leaving]
travis-ci has joined #datamapper
travis-ci has left #datamapper [#datamapper]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/datamapper/dm-core/builds/8209863
<travis-ci> [travis-ci] datamapper/dm-core#32 (release-1.2 - 44dd39a : Dan Kubb): The build has errored.
slainer68 has quit [Remote host closed the connection]
cored has quit [Ping timeout: 264 seconds]
rdFLeece has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] datamapper/dm-transactions#4 (release-1.2 - a400e7f : Dan Kubb): The build has errored.
travis-ci has left #datamapper [#datamapper]
Guest12345 has joined #datamapper
Guest12345 has left #datamapper [#datamapper]
slainer68 has joined #datamapper
zombor has joined #datamapper
slainer68 has quit [Ping timeout: 276 seconds]
zombor has quit [Remote host closed the connection]
rdFLeece has joined #datamapper