Hi,
I was wondering if this was an intended behaviour:
Benchmarking "Data.all(fields: [:id]).each" vs "Data.all(fields:
[:not_id]).each"
Gives me:
user system total real
fetching PK field 1.404000 0.109000 1.513000 ( 1.532087)
without PK field 0.562000 0.016000 0.578000 ( 0.593034)
Minimal model, no lazy loading, nothing fancy.
Looks like DataMapper returns an array of arrays of resources when the
primary key is part of the field list, slowing down the
resources_added method in collection.rb
Is this normal or am I missing something?
--
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.