Thursday, July 01, 2004

MySQL, not there yet

There are a few features that TPAS relies on that MySQL does not support. Theses are: User Defined Functions and Sub-queries. Without theses features, and others (that I haven't used in TPAS) such as Stored Procedures and Triggers, MySQL cannot compete with it's major rival, MS SQL Server or it's open source rival, Postgresql. Postgresql, is one of the Open Source worlds most overlooked, yet very good, programs. It supports, as far as I know, all of the features that are missing in MySQL. One another note, the default table type in MySQL is not ACID compliant and does not support foreign keys. If there is anything I learned in COS 350, Database Concepts, it's the importance of having ACID compliant tables and having key constraints. Thanks, Dr. Aguilar :). Fortunately, MySQL has the InnoDB table type, which provides Foreign Key Constrains and is fully ACID compliant.

For small applications, not needing much database support, MySQL seems to be a good option, but for highly database driven applications, MySQL, may not be the best choice. Postgresql, which is also Open Source, has all of the much needed features missing in MySQL.

What does this mean for TPAS? I'm not sure yet. There are two paths that I see, drop MySQL support, or rewrite the parts that depend on the missing features.

2 Comments:

At July 1, 2004 at 2:44 PM, Blogger Steve Oberg said...

What would it take in terms of effort to redo those parts of the db code that rely on those features? Is this a very significant (weeks? months?) effort? If so, I would say to focus on PostGreSQL for now and try to figure out MySQL later. In other words, even if it requires a lot of extra effort, the widespread use of MySQL makes me think that we should try to accomodate it eventually and somehow. What do you think?

 
At July 1, 2004 at 2:55 PM, Blogger Unknown said...

The major parts of TPAS that are effected are Reports (which for the most part is still in development, but also includes things like the number of periodicals in a specific thing ex. subject), and Periodical Searching. I don't think the reworking will take long, maybe a week, but it will make for messier code. One option would be to delay MySQL support until version 4.1 comes out (this will include subqueries, but not user defined functions) but it maybe awhile until 4.1 is production worthy. I guess it depends on what other libraries would use the most, MySQL or Postgres. If they are willing to use Postgres instead of MySQL, I'd rather wait to add MySQL support.

 

Post a Comment

<< Home