Thanks Pete.
I thought as much about live calls, but wanted to see if anyone was
using this method and if it was working. It seemed to me that
effectively duplicating the MLSs database to my local server was maybe
not that efficient, unless the reason to do so is the slow speed at
which the data is returned. It does seem very slow but I wasn't sure
if that was just my experience.
The way I'm planning on doing it:
1. Foreach Property Classes as Class
a. Retrieve all properties for each class.
b. Foreach Properties as Property
i. Retrieve the photos for each property.
ii. Foreach Photos as Photo
a. Store the photo in the database as a BLOB field, since some
of our MLSs appear not to offer image URLs.
[This seems very resource-heavy. Should I store the binary
image data on the server as a JPG
and record the path to the image instead?]
iii. Before exiting the secondary loop, store the property in an
array for transfer to the database after the primary loop completes.
[Is there a more efficient way to do this? Should I just
check for the property's existence and modification
date and add/update the database during the loop instead of
waiting until after?]
I apologize for asking what may be elementary questions about
efficiency, but I've never had to deal with this much data before and
want to do it right.