On Wed, Nov 30, 2011 at 6:23 PM, Alex <[email protected]> wrote: > Hi everybody, > > I noticed recently that insert and create literalize same time stamp > differently.
#create is a method of the model so it tries to coerce your data to meet the datatypes - while #insert is a raw insert into the table that merely sends what you provide in a raw fashion. The reason for the two options probably lies in the fact that if I had 10,000 rows to enter and the data was already in proper datatypes - I would probably want the raw #insert because it has less overhead then #create because it does the bare minimum to move the data into the database. John -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
