Chovy’s Blog

PHP Database Programming Mistakes

Sat, August 5, 2006 — Category: Development

There’s a good article from IBM about the five common PHP database problems users encounter when working with databases and php.
Some of the tips include refraining from directly access mysql php functions (this should be abstracted to a database layer, so you can swap out your database easily without having to modify the code).
Also it […]

There’s a good article from IBM about the five common PHP database problems users encounter when working with databases and php.

Some of the tips include refraining from directly access mysql php functions (this should be abstracted to a database layer, so you can swap out your database easily without having to modify the code).

Also it talks about the n+1 pattern, in which the app retrieves a list of items, then cycles through each item and grabs the relevant info for each item. In a small database, this is not a problem, but with over 1,000 records, that’s 1,000 more database queries to retrieve the info.

A lot of this recurring can be solved with database relations and normalization.

It also recommends not using more than 1 database for an entire application.

  • Post PHP Database Programming Mistakes to del.icio.us
  • Post PHP Database Programming Mistakes to digg
  • Post PHP Database Programming Mistakes to Furl
  • Add PHP Database Programming Mistakes to YahooMyWeb
  • Simpify!
  • Post PHP Database Programming Mistakes to shadows
  • Post PHP Database Programming Mistakes to Spurl
  • Post PHP Database Programming Mistakes to BuddyMarks
  • Submit PHP Database Programming Mistakes to Slashdot

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.