Question
Best way to store info for Yellow Pages-type site?
I'm working on a site that is similar in concept to a "Yellow
Pages"-type setup, where you have a bunch of business listings with
each of them able to customize their own profile.
Each business will be able to save standard things like its tel, fax, address, description, etc. There would also be a list of specific checkboxes for each business, such as "Delivery Available", "Open 24 Hours", "Now Hiring", etc. Also, businesses with multiple locations will be able to save these locations with their own specific tel, address, and other info. Lastly, they will be able to customize their listing to match their corporate look.
Whereas the searches will of course be database driven, I'm having trouble deciding which of the following ways to display a specific business information on their actual specific profile pages.
Which of these would be most efficient and have the least server impact?
Each business will be able to save standard things like its tel, fax, address, description, etc. There would also be a list of specific checkboxes for each business, such as "Delivery Available", "Open 24 Hours", "Now Hiring", etc. Also, businesses with multiple locations will be able to save these locations with their own specific tel, address, and other info. Lastly, they will be able to customize their listing to match their corporate look.
Whereas the searches will of course be database driven, I'm having trouble deciding which of the following ways to display a specific business information on their actual specific profile pages.
Database-only: Everytime any info
about a business is needed, it's pulled via a database call.
XML: Create a single XML file for
each business (named after its ID) with all of the business info
and styles, load it, and pull from there.
Hybrid: Use database calls for the
business' text information, but create a CSS stylesheet named after
the business' ID for use in the business profile's layout.
Which of these would be most efficient and have the least server impact?