Return-Path: Delivered-To: apmail-xml-xerces-j-user-archive@xml.apache.org Received: (qmail 69529 invoked by uid 500); 15 Nov 2002 15:38:31 -0000 Mailing-List: contact xerces-j-user-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-j-user@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-j-user@xml.apache.org Received: (qmail 69515 invoked from network); 15 Nov 2002 15:38:30 -0000 Subject: Re: Schema key and unique contraints VERY slow To: xerces-j-user@xml.apache.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: Eric_Schwarzenbach@Classwell.com Date: Fri, 15 Nov 2002 10:38:30 -0500 X-MIMETrack: Serialize by Router on corbos200/hmco(Release 5.0.10 |March 22, 2002) at 11/15/2002 10:37:13 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm sorry...I had a brain cramp and mis-wrote the version... I meant 2.2.1. So I am having this problem with the very latest. Eddie Robertsson cc: Subject: Re: Schema key and unique contraints VERY slow 11/14/2002 10:05 PM Please respond to xerces-j-user Hi Eric, Eric_Schwarzenbach@Classwell.com wrote: >Xerces2 (I'm using the freshly downloaded 2.0.2) seems to be hideously slow > I'm not sure if the code has changed in the speeding up the performance but you'd probably want to update to the latest version of Xerces which is 2.2.1 [1] Cheers, /Eddie [1] http://xml.apache.org/dist/xerces-j/ >valdiating xs:unique and xs:key constraints. Painfully slow on a human >scale not simply a processor scale...a large document of mine that >specifies a unique id attribute on each element of a certain kind (where we >are talking 10,000 of these elements in a document of about 4 Meg ) goes >from taking a few seconds to validate without these constraints to several >minutes with them. This happens with both SAX and DOM parsing. > >I expect there to be some processing cost to using this feature but this is >fairly ridiculous...doing similar checking in my own java code which is >using the parser takes nowhere nearly as long (in fact building indexes on >the entire document along with it takes nowhere nearly as long). Something >would seem to be seriously amiss, unless I'm out to lunch with regard to my >usage... > >An example of my usage is something like: > > > > > > >This is defined within the scope of the root element which can (will) >contain many of these elems at many different levels. > >Should I file this as a bug? > >Eric > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org >For additional commands, e-mail: xerces-j-user-help@xml.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-j-user-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-j-user-help@xml.apache.org