the title gives it away roughly with what I'm going to be asking.
Basically, I have an MySQL table in the nested set model and it holds categories and subcategories, etc for a large business directory that's being developed.
I was thinking, instead of a query to the table on every page load (which I'm guessing may cause 'lag' if there's lots of visitors) having the database table dumped into a structured xml file. So instead of querying the db all the time, it just pulls the info from the xml file.
Now I'm wondering if opening an xml file all the time would use less resources than querying the db.
Is there anyway to test this sort of thing as I want to get it right now while it's being made, rather than 'hotfix' it when the site's up and running
Basically, I have an MySQL table in the nested set model and it holds categories and subcategories, etc for a large business directory that's being developed.
I was thinking, instead of a query to the table on every page load (which I'm guessing may cause 'lag' if there's lots of visitors) having the database table dumped into a structured xml file. So instead of querying the db all the time, it just pulls the info from the xml file.
Now I'm wondering if opening an xml file all the time would use less resources than querying the db.
Is there anyway to test this sort of thing as I want to get it right now while it's being made, rather than 'hotfix' it when the site's up and running
Comment