Closed Thread
Results 1 to 5 of 5

Thread: a clean database

  1. #1
    denarced is offline Programmer
    Join Date
    Jul 2008
    Location
    Joensuu, Finland
    Posts
    182
    Rep Power
    0

    Question a clean database

    So I have this database,
    done by someone else
    ( who I don't know)
    and it's a complete mess.

    My goal: clean it up
    => check if there are unused tables
    => remove those tables

    What's the best way to approach this ?
    Is there a freeware software to do just this ?
    (I'm thinking I'm not the first one to think of this)

    Since all the database changes are done using one specific php-script,
    I thought that a sufficient time spent monitoring which sections of db
    are called, would solve this problem, I'm just thinking maybe there's
    a more concrete way of doing this.

    All help/tips are welcome

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: a clean database

    Even if its not called often it could still be in use just not as likely to be called I suppose.

    Making a program to do this would probably not be possible since its an oponion if its "not in use" because in a sense they are all in use. And ones not used enough could still be part of the program and when you delete part of the program you could really mess some stuff up!

    Post up some source and the table structure and we can try and help you out. If your trying to avoid showing your source I can sign a non disclosure agreement and do this for you $$

  4. #3
    Jordan Guest

    Re: a clean database

    What type of database is it? You can review the transaction log and determine what is being used and what is not over a period of time.

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: a clean database

    I work with an application where many of our users will never use many of the tables in the database. If they start using a feature, however, they will need those tables. Deleting tables can break things quickly.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: a clean database

    I agree with WingedPanther. Tables are usually there of a reason, especially in a production environment. Sure, upgrades could have done tables deprecated, but then it's not a good update system if it does not remove it as well.
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best way to clean up opened txt file?
    By Excess3 in forum C and C++
    Replies: 2
    Last Post: 12-30-2008, 03:06 PM
  2. Keeping your computer clean and fast
    By Brandon W in forum Tutorials
    Replies: 118
    Last Post: 10-10-2008, 02:46 PM
  3. Help me clean my room! 100% LEGIT!!
    By Chewie in forum MarketPlace
    Replies: 11
    Last Post: 10-06-2008, 06:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts