I was intreged, this is better? I had assumed that I would want to get as much data as possible in the fewest calls as possible. But I never actaully tested this theory (or have any idea where it came from.)
So I'm going to test this. I'll perform three tests.
- I'll try the way I've been developing the objects. Where I try to get as much informaiton in each SQL statement as possible.
- I'll use the method I read about in the tutoral, where I'll get the ids from everything in the list and return a completed object as I call it.
- I'll try a varation of the new method. I'll get all the ids, but I'll only return the property requested as it's requested instead of filling out the whole object.
The database is MySql 5.1 with InnoDB tables
No comments:
Post a Comment