On 17/05/11 8:54 AM, Emmanuel Gomez wrote:
On May 16, 2011, at 3:39 PM, Xavier (DBIYF) wrote:
As a real world data point, our home page takes upwards of two seconds to
render with datamapper, and ~300ms using SQL wrapped with structs.
Xavier --
Are you hand-building SQL queries and using DataObjects adapters directly, or
using DataMapper to produce SQL and then skipping DM::Resource instantiation?
Can you perhaps point out an example of 'using SQL wrapped with structs'?
We pretty much use the following two functions which allow some degree
of maintainability.
https://gist.github.com/976112
I need to write up a proper blog post for it.
Especially if there's a method for fast(er) usage of DM::Resources (presumably
read-only), I'm interested to see how that works.
Thanks,
Emmanuel
--
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.