hi.

thanks for answering.

I am working with JDO and I am getting mediocre results on reads, updates(the worst), 
and creates.

I have tried to multithread my calls but I get some weird Jconnect/sybase errors(see 
post on [castor-dev] threading requests posted yesterday]

I am not looking to match raw JDBC speed obviously, but would like to go above the low 
results I am getting: 15-25 transactions/second compared to 100-250 for the same SQL 
actions  from same server to same db through jdbc. These tests are done with a single 
object that maps to a  single table in the database

I would generally say that the only bottle neck at his point is castor since my dev 
box, db, and network all have very high specs.

here are some castor issues/questions:
-I am using a DateStampable object
-I am creating a new Database object for every transaction(according to Castor docs is 
ok)
-I am preloading all objects with db.load before starting my tests
-I am doing no configuration of jdo other than configuring the JDO object to connect 
to the proper db. Here's the code:
  private  Database getDatabase() {
    // Define the JDO object
    JDO jdo = new JDO();
    jdo.setDatabaseName( "mydb" );
    jdo.setConfiguration( "file:./database.xml" );
    jdo.setClassLoader( getClass().getClassLoader() );
    jdo.setDatabasePooling(false);

    Database db = null;
    try {
      db = jdo.getDatabase();
    } catch (PersistenceException e) {
      e.printStackTrace();
    }
    return db;
  }

-after that i simply do db.begin() .... operations....db.commit();

hope this is enough info.

Florian Hehlen
 

-----Original Message-----
From: Arnaud Blandin [mailto:blandin@;intalio.com]
Sent: Thursday, October 24, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] getting started


Hi Florian,

You should give more information on the performance problem you are
experiencing: is it the XML side or the JDO side? What kind of issue do
you face? etc...

Arnaud
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:Florian.Hehlen@;ubsw.com]
> Sent: Thursday, October 24, 2002 1:58 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] getting started
> 
> you are missing the xerces jar in your classepath.
> 
> it should be in the lib folder of your castor release.
> 
> Florian Hehlen
> 
> ps: I am having performance problems with castor.... so if you have
> some insight please, I would like to exchange on the subject.
> 
> -----Original Message-----
> From: * * [mailto:mrcdbs@;hotmail.com]
> Sent: Thursday, October 24, 2002 1:47 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] getting started
> 
> 
> hi,
> 
> I've just finished reding the documentation regarding castor jdo,
> and am
> anxious to try it out?
> 
> I have made a simple table in my mysql database and a correspongin
> class
> called user with get and set methods to get a users name.
> I've also made a simple main class where I've specified the mappling
> and the
> database.xml file all set to point to my database.
> 
> when I'm trying to run this I get the following error
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/XMLSerializer
>       at org.exolab.castor.xml.Unmarshaller.initConfig(Unknown
> Source)
>       at org.exolab.castor.xml.Unmarshaller.<init>(Unknown Source)
>       at org.exolab.castor.xml.Unmarshaller.<init>(Unknown Source)
>       at
> org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(Unknown
> Source)
>       at org.exolab.castor.jdo.JDO.getDatabase(Unknown Source)
>       at simpletest.<init>(simpletest.java:15)
>       at simpletest.main(simpletest.java:28)
> 
> It seems that I've forgotten some thing, can you please tell me what
> it is?
> Many thanks in advance
> Marcus
> 
> 
> 
> 
> _________________________________________________________________
> MSN Motor: K�p & s�lj din bil h�r http://carview.msn.se/bilsok/
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
> 
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the
> contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities
> or
> related financial instruments.
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to