Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: (Ovid) Re: Looking for a simpler DBI solution.

by Fastolfe (Vicar)
on Nov 02, 2001 at 03:04 UTC ( #122707=note: print w/replies, xml ) Need Help??


in reply to (Ovid) Re: Looking for a simpler DBI solution.
in thread Looking for a simpler DBI solution.

Especially if you're in a real homogenous environment, with potentially other applications writing to the same database, it can pay to move your validation step into the database. Create constraints and checks that verify the integrity and correctness of the data at insert-time, and be sure that when you do your inserts and updates you're checking for errors and propogating them out.

When designing major database-driven applications, it pays to move certain aspects of your functionality into the database itself.

Plus, like I alluded to above, if you have more than one application writing to the same database, these constraints ensure a common set of validation across all applications.

Just some thoughts; they may not be applicable to this particular case, though.

  • Comment on Re: (Ovid) Re: Looking for a simpler DBI solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://122707]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2021-05-18 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (176 votes). Check out past polls.

    Notices?