Author Topic

Piotrek Karaś

Sunday 06 July 2008 11:00:00 pm

Comment49808

Hello Hans,

From what you described, what I had known about transactions and constraints was quite right. You're right though - constraints would provide additional level of bogus data elimination, even though I guess in order to have a complete integrity, everything would have to be constrained and isolation level would have to be raised to serializable, right? Wouldn't this all make db heavy and "picky"?

Just to compare the practices, in my own code I used to run my own PHP-level integrity checks, and manually rolled-back, even if DB would allow commit on the physical level. Of course, I realize that would only be a slight enhancement, not a replacement of constraints.

Last thing. Isn't there another reason for which constrains aren't used? I've heard of this approach for application architecture where db, which uses the smallest possible amount of functionality of particular db engine, serves merely as a data storage, and all other functions and integrity are controlled by the application layer. We now hear more Exponential supporting more database engines, isn't that a mean of being able to deliver that?

Thanks,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu