• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating a table from the application. is it Inefficient ?

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
assuming i have upgraded my database with a create table statment.
this statment is called from the program everytime the user is requested to do somthing.

question: is it inefficient to "create table" more than once just to make sure the table exist?

of course, if the table exist...I continue with insert/update/etc (thanks to try & catch) but the checking of the creation itself is it a significant time consuming (mind that the program is on a network).

Thanks
peter
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
It could be better not to check Database if it is kinda busy database.
I think you should create Table once . if you have to update your database often then it would be better to make the version of database persistent in some other file format .
Best item is to check the Database status (weather updated or not)from a Properties file.

Even you can make a version table in your database and check the verion from it.

hope it helps
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic