Hi all
I am currently writing quite a hectic ASP page - with quite a few database queries and queries of other sites. All the database queries are returned as XML, as are the queries of the sites.
Would it be faster to load all the information that I will need into individual variables, and pass them to my queries? Or would it be better to create one XML document, append the info returned into the document and then reference the elements I need?
e.g. say I have 4 fields: FirstName, Surname, Date, Email. FirstName & Surname are passed in an XML document to my query. I pass these two fields to a site and it returns me Date. I then pass all three fields to a SQL stored procedure and it returns Email. I now need to display all the fields on the page and save them to a databse.
This is obviously very simplified - just for example purposes so everyone can see what I am getting at.
Is it better for me to have 4 variables and load the info in them as needed? Or should I create an XML document and append these 4 variables as elements as and when I get them?
Thanks as always
Craftor
I am currently writing quite a hectic ASP page - with quite a few database queries and queries of other sites. All the database queries are returned as XML, as are the queries of the sites.
Would it be faster to load all the information that I will need into individual variables, and pass them to my queries? Or would it be better to create one XML document, append the info returned into the document and then reference the elements I need?
e.g. say I have 4 fields: FirstName, Surname, Date, Email. FirstName & Surname are passed in an XML document to my query. I pass these two fields to a site and it returns me Date. I then pass all three fields to a SQL stored procedure and it returns Email. I now need to display all the fields on the page and save them to a databse.
This is obviously very simplified - just for example purposes so everyone can see what I am getting at.
Is it better for me to have 4 variables and load the info in them as needed? Or should I create an XML document and append these 4 variables as elements as and when I get them?
Thanks as always
Craftor