Looking at the example given on the PetaPoco help section - section "One-To-Many Relationships"
It describes how to use InnerJoin and a mapper to handle data mapping of a one-to-many relationship...
var authors = db.Fetch<author, post, author>(
new AuthorPostRelator().MapIt,
"SELECT * FROM authors LEFT JOIN posts ON posts.author = authors.id ORDER BY posts.id"
);
This is fine for small tables, but for large quantities of data, the loading of this data is very slow.
It's not an 'author', but to keep the language the same...
My author has 30 columns. I have 90,000 authors and each author has 50 posts.
That query above will bring down 4,500,000 rows of data...in that data the author rows are duplicated 50 times...does this matter?
Is there a way to load in this data any quicker? Have I missed a trick anywhere along the line?