Jump to content

E-commerce Shopping Cart


ded

Recommended Posts

I am about to being coding my first e-commerce shopping cart.  Should I be using MySQL or PostgreSQL?  Which is actually better?  I do all my sites using MySQL database.  Should I be changing that idea as well?

 

 

Regards,

DED

Link to comment
Share on other sites

A database is just a data storage. Ideally you should design your application to work irrespective of the database in the back-end. You can achieve that by using PDO or if you wish app frameworks such as Zend or CodeIgniter or Yii.

Link to comment
Share on other sites

A database is just a data storage. Ideally you should design your application to work irrespective of the database in the back-end.

 

This isn't always the best approach. Using any kind of abstraction layer forces you to give up any DBMS specific features which might be beneficial. Also you can move some of the application logic to the database using triggers, stored procedures, events etc.

 

In other words, when starting your work on an application decide it to be whether a DBMS independent, or to work with selected DBMS only but be optimised to its features.

Link to comment
Share on other sites

Plus PDO is not an abstraction layer rather a data-access layer which means it doesn't alter you SQL

 

The assumption here is, that when coding with PDO, you use SQL that's compatible with all (or as many as possible) drivers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.