How can I better optimize many-to-many association queries with DataMapper?

How about removing Join class definition, and defining Left as: class Left include DataMapper::Resource property :id, Serial has n, :rights, :through => Resource end Believe DM, it creates good mapping for you.

DataMapper appears to be generating grossly sub-optimal queries for associations that use a join table. What can I do to improve the performance of these queries? SELECT rights.id, rights.

Two FROM rights INNER JOIN joins ON rights.id = joins.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions