I've had this before, actually reported it few time too. Been around
for a while now (at least since 0.9.3). It has to do with
associations, but I never had enough time to track it down. There was
a pastie I did about 2 or so months ago with stats doing
model.assoc.create vs. Model.create(:assoc => ...). If i can find that
pastie, I'll post it back here.

My current workaround is @donkey = Donkey.create(:user =>
current_user, ..., :barn_id => @barn.id), which will execute as fast
as anything else.

regards,
m

On Dec 9, 8:01 am, "Dan Kubb (dkubb)" <[EMAIL PROTECTED]> wrote:
> > I relocated from a VPS to another, running Ubuntu 8.04. Merb and
> > Datamapper versioins are the same on my new server as they were
> > previously: 1.0.3 and 0.9.7. My database of choice is MySQL.
>
> > On the new server and nowhere else, THIS seems to be taking 20-30
> > seconds to execute:
>
> > @donkey = @barn.donkeys.create(:user => current_user, :name => params
> > [:name], :created_at => Time.now)
>
> Have you seen this same problem with DM 0.9.8 and Extlib 0.9.9?
>
> Dan
> (dkubb)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to