dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Home » Tip Bank » XML
Language: Databases
Expertise: Beginner
Oct 6, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Sending Many Database Rows with XML

Question:

Is there a way to select a structure of a database row and send it once from a server to a client and after that send thousands of rows? Doesn't repeating the same metadata for each row create huge overhead?

Answer:

Typically, depending upon the server that you're working with, the metadata is sent independently of the data itself. For example, if you look at the metadata that's produced from SQL Server's XML export, the metadata block for the XML appears first, then the row information is presented as a series of attributes for each row, with one attribute corresponding to a field representation in the initial metadata block. This cuts down considerably on the overhead.

Once the XML Schema architecture is finalized, that will provide another level of abstraction. When you make a request from a database that supports that architecture, you will get a schema representation and a data representation, possibly within the same document, possibly not (depending upon the server). Either way, the actual information that is contained within the records themselves is minimal, but you can reconstruct type and parametric information easily from the schema.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date