all groups > dotnet xml > december 2005 >
You're in the

dotnet xml

group:

Optimizing searches in readonly XML


Optimizing searches in readonly XML Melgin
12/21/2005 3:29:51 PM
dotnet xml:
Hi,

I try to optimize a high loaded site ... the site needs to store in memory,
a 400 tags XML that will be queried many times by many users (it have some
biz rules)...
I wonder if exists something like "compiled XML" or "binary XML" and clases
in dotnet that optimize this queries by time and resources...
Thx in advance.

Sebastian Melgin

Re: Optimizing searches in readonly XML Melgin
12/22/2005 2:02:57 PM
But does it work in 1.1 version of .NET ?
If not, what can I do ?
Thx in advance.
Sebastian.

"Oleg Tkachenko [MVP]" <some@body.com> escribió en el mensaje
news:eQSJA7vBGHA.3604@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Re: Optimizing searches in readonly XML Oleg Tkachenko [MVP]
12/22/2005 3:50:42 PM
[quoted text, click to view]

The simplest solution is to load XML into XPathDocument (wghich is
read-only, but takes in average 30% less memory), index it using
IndexingXPathNavigator and query using key() function. Take a look at
"XML Indexing Part 1: XML IDs, XSLT Keys and IndexingXPathNavigator"
article at
http://msdn.microsoft.com/library/en-us/dnxmlnet/html/XMLindexing.asp

--
Oleg Tkachenko [XML MVP, MCAD]
Re: Optimizing searches in readonly XML Anders Borum
12/22/2005 7:11:06 PM
Hello!

The XPathDocument is still faster than the XmlDocument in this respect, as
it has been optimized for read-only operations (that can be cached).

--
With regards
Anders Borum / SphereWorks
Microsoft Certified Professional (.NET MCP)

Re: Optimizing searches in readonly XML Oleg Tkachenko [MVP]
12/25/2005 3:34:30 PM
Yes, sure it works with .NET 1.1.
IndexingXPathNavigator is part of Mvp.Xml library now, just download
appropriate Mvp.Xml lib version at
http://sourceforge.net/project/showfiles.php?group_id=102352

--
Oleg Tkachenko [XML MVP, MCAD]
http://www.XmlLab.Net | http://www.XLinq.Net | http://blog.tkachenko.com

[quoted text, click to view]
AddThis Social Bookmark Button