This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > December 2005 > Big XML file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Bogdan 2005-12-29, 3:22 am |
| Hello,
I am constructing an XML database with a lot of records-the file has
about 3.7 Mb. When I try to search for records through JavaScript, I
have to load the file. It takes a long time over slow connections to do
it, and I need in fact only the smaller portion of it (the results of
the query). is there any way to do the search, avoiding the loading of
total file?
Thank you.
Bogdan
| |
| Neil Smith [MVP Digital Media] 2005-12-29, 6:47 pm |
| On 28 Dec 2005 23:31:25 -0800, "Bogdan" <bogpop68@XXXXXXXXXX> wrote:
>Hello,
>
>I am constructing an XML database with a lot of records-the file has
>about 3.7 Mb. When I try to search for records through JavaScript, I
>have to load the file. It takes a long time over slow connections to do
>it, and I need in fact only the smaller portion of it (the results of
>the query). is there any way to do the search, avoiding the loading of
>total file?
(1) Do the search on the server, sending only the results (seems
obvious). Send the query and receive the XML response using AJAX to
make the app look more responsive
(2) Set GZip encoding on the XML document returned - I've seen 4 meg
documents compressed to 250k using this technique, because the
repeating element tags are easily compressed (tokensed) by GZip.
All modern browsers support GZip encoded documents.
Cheers - Neil
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|