db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From satz <satyam.bhatna...@gmail.com>
Subject Reading DB...
Date Fri, 19 Oct 2007 12:06:44 GMT

Hi Thomas,
I'd been reading through the code for the platformImplBase class. I found it
very strange that all the methods (almost...) make internal calls to read
the database!!!. Why do we really need to hit the DB every time, when we
already have the API exposed to the users "readModelFromDatabase()"? To tell
you I dont feel that's alright, since reading the whole schema again and
again would be a vrey heavy operation. What I think we should have is
provide additional API for accepting "Database" object acquired initially by
the programmer from the readModel API. I kno that there would be some
purpose of releasing the API and I'm not questioning the Code, but just that
m application runs very slow:(...
Please advice!
Sample Code>>
currDB = platform.readModelFromDatabase(....);
platform.alterTables(currDB,.....);//instead of alterTables(Connection
connection, Database desiredDb,...); 

View this message in context: http://www.nabble.com/Reading-DB...-tf4652713.html#a13293149
Sent from the Apache DdlUtils - Dev mailing list archive at Nabble.com.

View raw message