Welcome Guest, Not a member yet? Register   Sign In
Database Cascades, Triggers and Stored Procedures
#1

[eluser]gte451f[/eluser]
I'm designing a number of applications and have run into a delima that I'd like to get your opinion on.

When developing business applications do you think it's a good idea to use built in features like cascade, triggers and stored procedures?

Let's keep the discussion focused,so comment on Cascading deletes or updates.

Is this better done in PHP or in the database?

I can think of a few pros...which I'll update if others add their points.

PHP Cascades:
Database independent, that is you can more easily switch RDMS if deletes are in PHP code.
One codebase, no need to check the database for additional programming logic.
No need to learn RDMS specific logic since it's all done in PHP.

Database Cascades:
Faster
The RDMS might include built in Roll Back for failed transactions.
It's probably easier to implement in the DB than app code.
#2

[eluser]vinayjoshi03[/eluser]
I have same issue.
I designed a database in mysql, at the time of analysis phase we had not implemented Referential integrity on database also not applied cascading on the tables.
Now we have to apply that, So instead of doing changes into the database, Codeigniter have to provide Cascade functionality using functions. Its present in CakePHP.

In Codeigniter is it possible or not?

Vinay




Theme © iAndrew 2016 - Forum software by © MyBB