AW: How to dynamically add new database to Torque

2003-11-27 Thread Gerhard Otte
You have to start a new configuration with Configuration c = (Configuration)new PropertiesConfiguration(Torque.properties); Then change youtr properties and finally call Torque.init(c); At least that worked for me. Gerhard Otte __ mailto:[EMAIL PROTECTED] emediapark GmbH

Re: Performance problems

2003-11-27 Thread Andras Balogh
Hello Josh, What happens is the torque loads each object (if its doesn't have it already ) from the DB. You should try to use the methods doSelectJoin to tell torque that make a join in the tables and load all objects form one shoot, or i think better is to make your own method

Re: Performance problems

2003-11-27 Thread Josh Holtzman
Thanks Andras. I thought about doing joins, but I run into this problem: Not all accounts have an assignment. I still want to show the accounts with no assignments, and the join keeps any account without an assignment out of the results. I will look into creating a view, but I'm not sure

Re: Performance problems

2003-11-27 Thread Dave Newton
On Thu, 2003-11-27 at 03:21, Josh Holtzman wrote: Thanks Andras. I thought about doing joins, but I run into this problem: Not all accounts have an assignment. I still want to show the accounts with no assignments, and the join keeps any account without an assignment out of the results.

MySQL: Unexpected end of input stream

2003-11-27 Thread Michael Kucera
Hi, I'm hoping that someone might have some insight into a problem I am having. I am using Torque with MySQL and everything has been working great until now. I have a demo version of my app running on a server. After the app has been idle for a long time (several hours) it will generate an error

Re: Performance problems

2003-11-27 Thread Josh Holtzman
Thanks Dave. Looks like I need to freshen up on my options for doing joins... nulling the eliminated data sounds to me like just the ticket. Cheers, Josh Dave Newton wrote: On Thu, 2003-11-27 at 03:21, Josh Holtzman wrote: Thanks Andras. I thought about doing joins, but I run into this

RE: How to dynamically add new database to Torque

2003-11-27 Thread Jeremy Kincaid
Thankyou for the response Gerhard, but unfortunately it didn't work for me. I still get the error java.lang.NullPointerException: There was no DataSourceFactory configured for the connection newDatabase. I am using Torque version 3.1. I read that they have changed the re-entry to the