Re: [castor-dev] performance patch for TransactionContext

2003-10-10 Thread Stephen Ince
I have found an issue with implementing the _object member as a SequenceHashtable. In one of my objects I override the hashCode method. For some reason that was wrecking havac with the object lookup. Castor kept throwing the following exception, IllegalArgumentException("ObjectEntry to be rehash i

Re: [castor-dev] performance patch for TransactionContext

2003-10-09 Thread Keith Visco
Stephen, When you implement a custom hashCode, you must make sure that it always returns the same value any time the method is called during an single instance of an application. The value can change each time the application is executed, but during a particular instance, the value returned need

Re: [castor-dev] performance patch for TransactionContext

2003-10-09 Thread Bruce Snyder
This one time, at band camp, Stephen Ince said: SI>I have found an issue with implementing the _object member as a SI>SequenceHashtable. In one of my objects I override the hashCode method. For SI>some reason that was wrecking havac with the object lookup. Castor kept SI>throwing the following ex

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Bruce Snyder
This one time, at band camp, Stephen Ince said: SI>I have attached a performance fix for castor using jdk1.3.1. The SI>org.exolab.castor.persist.TransactionContext was using a Vector to store SI>objects. The instance variable _objects is now of type SI>org.apache.turbine.util.SequencedHashtable.

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Keith Visco
Bruce Snyder wrote: > > This one time, at band camp, Stephen Ince said: > > SI>I just included one file org.apache.turbine.util.SequencedHashtable. It > SI>didn't have any dependencies. I didn't use a SequencedHashMap because it > SI>uses Iterator and not an Enumeration. I wanted to minimiz

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Stephen Ince
Not a bad idea. I was going to do the same. This way you won't have to worry about compatibility issues. - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 3:51 PM Subject: Re: [castor

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Bruce Snyder
This one time, at band camp, Stephen Ince said: SI>I just included one file org.apache.turbine.util.SequencedHashtable. It SI>didn't have any dependencies. I didn't use a SequencedHashMap because it SI>uses Iterator and not an Enumeration. I wanted to minimize the code impact. SI>I also didn't

Re: [castor-dev] performance patch for TransactionContext

2003-10-02 Thread Stephen Ince
or not. For complex dependencies I will normally use genjar to figure that out. Steve - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 1:09 PM Subject: Re: [castor-dev] performance patch for Tra

[castor-dev] performance patch for TransactionContext

2003-10-01 Thread Stephen Ince
I have attached a performance fix for castor using jdk1.3.1.  Theorg.exolab.castor.persist.TransactionContext was using a Vector to storeobjects. The instance variable _objects is now of typeorg.apache.turbine.util.SequencedHashtable. The objects can be retreived inorder and removed using h

[castor-dev] performance patch for TransactionContext

2003-10-01 Thread Stephen Ince
I have attached a performance fix for castor using jdk1.3.1. The org.exolab.castor.persist.TransactionContext was using a Vector to store objects. The instance variable _objects is now of type org.apache.turbine.util.SequencedHashtable. The objects can be retreived in order and removed using hasht

[castor-dev] Performance objectreference <--> simple integer

2003-08-27 Thread Mark Baier
Hi all, i have following problem: I have an entity name AspectDependentTest with following mapping file:

[castor-dev] Performance tips

2003-07-11 Thread Jeremy Nix
Title: Performance tips I'm looking for any tips that would increase the marshalling/unmarshalling time of castor..  My current process has castor mashalling to a Document which is then fed into FOP to generate a PDF file.  I'm profiling this process and finding that its taking ~500ms to mars

[castor-dev] Performance problem with using Castor XML in J2EE environment

2003-07-05 Thread Billy Lo
I wonder if someone has encountered this performance problem in using Castor in a J2EE container. Castor 0.9.4.3: unmarshalling a large message (> 200 tags) using mapping files. Everything runs pretty fine in a standalone test app (main()) and performance is reasonable (66 ms) per call. After it

Re: [castor-dev] Performance cache in a clustered environment

2003-04-01 Thread John Kristian
I'm considering building clustering on top of Castor. Any advice? Previous messages in this thread suggested some ideas. Have they been deployed? In a large high-volume production cluster? Successfully? It worries me that the released Castor code doesn't support cache invalidation. I'm selecting

Re: [castor-dev] performance patch submission

2003-02-15 Thread Keith Visco
This is now being tracked here: http://bugzilla.exolab.org/show_bug.cgi?id=1215 Thanks, --Keith Dean_D_Hiller wrote: > > This one is fully tested, no added failures from CTF... > > A quick fix to double your performance if you are using 1000 classes like I > am. Please let me know when thi

Re: [castor-dev] performance patch submission

2003-02-11 Thread Dean Hiller
thanks keith, Dean Keith Visco wrote: Hi Dean, I took a quick look at your patch, it looks reasonable..., we may need to change the key to include the namespace in the future, but since the current default resolver is not using the namespace it's not needed right away. I'll get this into

Re: [castor-dev] performance patch submission

2003-02-11 Thread Keith Visco
Hi Dean, I took a quick look at your patch, it looks reasonable..., we may need to change the key to include the namespace in the future, but since the current default resolver is not using the namespace it's not needed right away. I'll get this into the CVS. --Keith Dean_D_Hiller wrote: > >

Re: [castor-dev] performance

2003-02-01 Thread Dean Hiller
Dennis,     thanks for the tip, looking at my test case code, I only called Unmarshaller.setValidation(false);   This did not improve the performance of the unmarshaller.  Only my changes did by swapping in a new XMLParser and some other minor changes.  Low and behold as I look them up I can't

Re: [castor-dev] performance

2003-02-01 Thread Dennis Sosnoski
Dean Hiller wrote: here is one of the messages. I do now have VP approval to give code. I just need to dig it up sometime. I have not gotten around to narrowing what caused the hit down. I just have a fix. When I work on it again, I will send you the code. I don't have the time to dig i

[castor-dev] performance

2003-02-01 Thread Dean Hiller
here is one of the messages.  I do now have VP approval to give code.  I just need to dig it up sometime.  I have not gotten around to narrowing what caused the hit down.  I just have a fix.  When I work on it again, I will send you the code.  I don't have the time to dig it up right now and I

Re: [castor-dev] performance code change improvement

2002-11-11 Thread Dennis Sosnoski
Hi Dean, I've looked at Castor performance from a larger perspective (not trying to pinpoint where it's slow, just comparing it to other approaches). I haven't seen speed differences of the sort you're talking about between marshalling and unmarshalling - in my tests the marshalling is about 2-

[castor-dev] performance + castor + Jboss

2002-09-18 Thread Daniel.Stacewicz
so Gentelmen anyone knows solution how to improve performance with Castor + JBOSS ? maybe it's a parser problem (jboss using different parser than castor) ...?? i'll be grateful DANNY --- my earlier post about performance problem -

Re: [castor-dev] Performance cache in a clustered environment

2002-07-15 Thread Thomas Phan
ince To: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 10:35 PM Subject: Re: [castor-dev] Performance cache in a clustered environment Thomas,I have a modified version of castor that provides the ability to expire asingle object, or a class of objects, from the performance

Re: [castor-dev] Performance cache in a clustered environment

2002-07-15 Thread Adamo, Vince
12:57 AM To: [EMAIL PROTECTED] Subject: [castor-dev] Performance cache in a clustered environment Hi, > Got the below from a previous post on Thu, 16 Aug 2001 01:37:32 -0700 by Tim Fox: > > We're considering building clustering on top of castor using JMS - just in the ideas stage at the

[castor-dev] Performance Issue JDO (repost sorta) - concurrency problem !!!

2002-04-19 Thread Ludovic Bertin
ine-De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Envoyé : jeudi 18 avril 2002 09:26À : [EMAIL PROTECTED]Objet : Re: [castor-dev] Performance Issue JDO (repost sorta) I all ready raised the issue, even tried to fix the problem but ended up banging my head against the wall.

Re: [castor-dev] Performance Issue JDO (repost sorta)

2002-04-18 Thread Jan . Hansen
PROTECTED]From: [EMAIL PROTECTED]Date: 04/08/2002 03:14PMSubject: Re: [castor-dev] Performance Issue JDO (repost sorta)After using a couple of days at work trying to make required changes to org.exolab.castor.jdo.engine.SQLEngine to solve this issue I have run out of time for now. Boss insists i continue

[castor-dev] Performance : Why is it so long???

2002-04-16 Thread chamagne
I have a database that contains three tables : - arch : 2 records - epic : 1 records - arch_epic : 3 records that are links between my two tables ARCH and EPIC... When i make a simple request using JDO such as ¨Select e From EPIC e", it take 28s to jdo for reading the first record.

[castor-dev] Performance Measurements of xml binding with large number of records (> 100000)

2002-04-05 Thread Tilmann Ludwig
Has anybody done some performance measurements with the xml binding of castor for a large number of records (> 10)? We are thinking of using Castor to create JAVA-Objects from XML-Files. This XML-Files will contain a large number of records (> 100 000), each record will have about 25 attribut

Re: [castor-dev] Performance Issue JDO (repost sorta)

2002-04-03 Thread Jan . Hansen
I have been trying to solve this myself, but seem to have bit off more than i can chew. - In buildFinder the ClassDecriptor apears to contain FieldDescriptors that are not instances of JDOFieldDescriptor in some cases (Running test Harness), this makes a bit difficult to build queries since I need

Re: [castor-dev] Performance Issue JDO (repost sorta)

2002-03-28 Thread Benjamin Voiturier
ent: jeudi 28 mars 2002 7:00 To: Benjamin Voiturier Subject: Re: [castor-dev] Performance Issue JDO (repost sorta) This one time, at band camp, Benjamin Voiturier said: BV>If the database is populated as to have a parent with 100 childA, 100 BV>childB and 100 childC, a select clause like

Re: [castor-dev] Performance Issue JDO (repost sorta)

2002-03-15 Thread Benjamin Voiturier
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: vendredi 15 mars 2002 11:51 To: [EMAIL PROTECTED] Subject: [castor-dev] Performance Issue JDO (repost sorta) There seems to be a problem with the way querry builder constructs querries. Considder this example: Instance of Class Parent h

[castor-dev] Performance Issue JDO (repost sorta)

2002-03-15 Thread Jan . Hansen
There seems to be a problem with the way querry builder constructs querries. Considder this example: Instance of Class Parent has - 1000 Class ChildA instances and - 1000 Class ChildB instances. JDO retrieves objects in one querry, the querrys resultset will contain 1 x 1000 x 1000 rows (lazy l

[castor-dev] Performance issue with generated SQL to load object with several 1:many relations !

2002-03-14 Thread Benjamin Voiturier
Hi,   I’ve a critical performance problem while loading an object containing several 1:m relations to other objects. The generated SQL performs a recursive LEFT OUTER JOIN for each collections found in the object.   For instance, If object A references 2 collections, one of objects A1 a

[castor-dev] Performance test

2002-01-25 Thread Rainer Mueller
Hello! Are there any performance tests for Castor-JDO available? I would like to know the difference concerning the performance between a application which runs with JDO and the same application which uses only JDBC. Of course the object relational framework will steal some performance, but ho

Re: [castor-dev] Performance problem

2001-12-21 Thread Thomas Yip
>I haven't look at this (yet), but what is the failure that occurs when >its redefined? Object is store multiple times in the hashmap? > >General question; Castor needs to support jdk1.1 right? Is that one >reason vector is used? (Beyond if synchronization is needed there) Castor JDO doesn't s

Re: [castor-dev] Performance problem

2001-12-21 Thread Ned Wolpert
--- florian ramillien <[EMAIL PROTECTED]> wrote: > Actually, I don't know methods to get a constant unique identifier for > a Object. But we can use a unique identifier for Persistent object. This > is 'object's class' + 'primary key'. So perhaps we can use this as key > for the Hashtable ? Does

Re: [castor-dev] Performance problem

2001-12-21 Thread florian ramillien
Ned Wolpert a écrit : > > On Thu, 2001-12-20 at 11:24, florian ramillien wrote: > ... > > So I have tried to change the Vector in a Hastable with the 'object' > as > > key and 'entry' as value. > > But 'object' is modified when it's loaded from DB, when user update > one > > of it's attributs, e

Re: [castor-dev] Performance)

2001-10-02 Thread Tim Fox
c below > -Original Message- > From: Matthew Baird [mailto:[EMAIL PROTECTED]] > Sent: 01 October 2001 18:47 > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Performance) > > > Tim, > > Maybe I'm misunderstanding, by clustering do you mean the &g

Re: [castor-dev] Performance

2001-10-01 Thread Adam Esterline
I don't understand why having a generic cache interface would be bad. I think Castor should provide some common cache implementations (FIFO, LIFO, LRU, LFU,...), but give the application developer the freedom to develop their own cache. This way if an application requires special caching needs

Re: [castor-dev] Performance

2001-10-01 Thread James Higginbotham
nt: Monday, October 01, 2001 11:39 AM Subject: Re: [castor-dev] Performance > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The more I think of it, having a generic interface to the caching technique does > make sense. If there is some factory method that retrieves the c

Re: [castor-dev] Performance)

2001-10-01 Thread Matthew Baird
ober 01, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Performance) c below > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ned Wolpert > Sent: 01 October 2001 17:34 > To: [EMAIL PROTECTED] > Subject: Re: [castor-de

Re: [castor-dev] Performance)

2001-10-01 Thread Tim Fox
c below > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ned Wolpert > Sent: 01 October 2001 17:34 > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Performance) > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA

Re: [castor-dev] Performance)

2001-10-01 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01-Oct-2001 Tim Fox wrote: >> When the object is new or modified, call the db.load(). However, >> I guess my first question is why doesn't this load from the cache like a >> OQLQuery call would do? When the db.load() call is made, does the >> re

Re: [castor-dev] Performance

2001-09-29 Thread Matthew Baird
, September 28, 2001 6:31 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Performance Just a thought: If the potential of adding distributed caching is in the future of Castor or at least needs to be supported along with cache eviction, maybe a basic whitepaper describing the approach(es

Re: [castor-dev] Performance

2001-09-28 Thread James Higginbotham
all needs described in these threads are satisfied in a way that doesn't compromise Castor's safe and effective APIs. James - Original Message - From: "Thomas Yip" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 28, 2001 6:46 PM Subject: Re:

Re: [castor-dev] Performance

2001-09-28 Thread Thomas Yip
Message- >From: Adam Esterline [mailto:[EMAIL PROTECTED]] >Sent: Friday, September 28, 2001 4:34 PM >To: [EMAIL PROTECTED] >Subject: Re: [castor-dev] Performance > >RE: [castor-dev] PerformanceI have asked to improve the Cache >implementation. I think that there are sever

Re: [castor-dev] Performance

2001-09-28 Thread Adam Esterline
- Original Message - From: Thomas Yip To: [EMAIL PROTECTED] Sent: Friday, September 28, 2001 5:41 PM Subject: Re: [castor-dev] Performance I am not convinced that Castor JDO is ready for distributed cache yet. Having a distributed cache may not solve the problem you want to solve. Well, we&#x

Re: [castor-dev] Performance

2001-09-28 Thread Ned Wolpert
wall off. > > > Examples of furniture are other passive cache types: weakReference > cache, time-count limited cache or speedier implementation etc. > > > > Thomas > > > > > > > -Original Message- > From: Adam Esterline [mailto:

Re: [castor-dev] Performance

2001-09-28 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, this is quite interesting... Maybe there is something here... Yes, if we are doing a delete, when the JMS message comes in, we simply call a delete. That's easy enough. When the object is new or modified, call the db.load(). However, I guess m

Re: [castor-dev] Performance

2001-09-28 Thread Tim Fox
see below > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ned Wolpert > Sent: 28 September 2001 16:54 > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Performance > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SH

Re: [castor-dev] Performance

2001-09-28 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One of the places where I worked, we did this by using JMS to send messages when an object was updated to other servers using TopLink. When they got the message, they flushed the object out-of-the cache. It actually worked pretty well, and I've got

Re: [castor-dev] Performance

2001-09-27 Thread Liebster, Dan
Title: RE: [castor-dev] Performance When using this approach, I would be interested what techniques you use to deal with reading cached objects in Castor that have had the underlying data changed by a batch update.  Is there a clean way to "kick the cache" after running and extern

Re: [castor-dev] Performance

2001-09-27 Thread James Higginbotham
mber 27, 2001 10:42 AM Subject: [castor-dev] Performance > > > I have recently downloaded and started to use Castor for a project. We had > in place a set of code to simulate a piece of our system, and measure the > inserts per second into the database. Using straight JDBC we usual

Re: [castor-dev] Performance

2001-09-27 Thread Mark Matthews
- Original Message - From: "Chris Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 10:42 AM Subject: [castor-dev] Performance > > > I have recently downloaded and started to use Castor for a project. We had > in place a set of

[castor-dev] Performance

2001-09-27 Thread Chris Cook
I have recently downloaded and started to use Castor for a project. We had in place a set of code to simulate a piece of our system, and measure the inserts per second into the database. Using straight JDBC we usually measure about 175 ins/s into the database. With Castor doing the persistenc