RSS
Subscribe
http://bit.ly/7xCPma

5 Tips For Maintaining Data Integrity In PostgreSQL

For any blog, forum, social media site, social network or any other data driven site—data integrity is must NEVER be overlooked!

Data integrity must be maintained both by the server side script your using and the database it’s self.

Why care about your database’s ability to maintain the integrity of data that it stores? Good question. Theres a few reasons why you should look deep into it. First of all if your maintaining data in PostgreSQL you want to make sure that the correct data is being inserted and updated in the correct rows and columns. Second of all, private information as well as user information is at a greater risk of being crapped on by hackers and stupid people.

Here are some methods of insuring the data integrity of your database.

  1. ALWAYS use data types! (INT, TEXT, TIMESTAMP etc.)
  2. Use SERIAL for your primary keys, the equiv of AUTO_INCREMENT—MySQL
  3. Learn to use REFERENCES and Foreign Keys

  4. Use constraints

    If…. buy

    Bad Moon film

    Slaughter ipod

    Kill Bill: Vol. 1 divx

    (eg. CHECK user_id != friend_id)

  5. Use PostgreSQL’s useful built in functions

A Busy Day dvdrip Tank Girl

With out a few basic steps taken to improve data integrity your database is vulnerable.

Hope this helps:)

Share/Bookmark


Tags: , , , , , ,


I want to sincerely thank you for being a part of and reading this blog. It is only through your support that I am able to continue to provide valuable content to my readers.
If you would like to show your appreciation please support my efforts by making a small donation

Leave a Reply

We share life experiences and discuss developing leadership skills, discovering better methods of growth in business, goal setting, personal growth and self-education. We also talk about lifestyle and making money.