Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Handling huge BLOB fields with DBI and MySQL

by gmax (Abbot)
on Jan 23, 2003 at 11:02 UTC ( [id://229278]=note: print w/replies, xml ) Need Help??


in reply to Re: Handling huge BLOB fields with DBI and MySQL
in thread Handling huge BLOB fields with DBI and MySQL

Actually, there is nothing in the database design preventing a double entry in the repository. Only the application is enforcing data integrity.

You notice that the script is deleting the current version of the application stored, in order to avoid such duplicate.

The real repository has a further control, a UNIQUE key on "name" + "vers" (which is defined NOT NULL) + the file CRC calculated before the update, so that duplicates are harder to pass. This rule relies on the assumption that all application versions are incremented automatically at each build.

Add to this that the ones allowed to update this table are all seasoned developers, who are using the same application to update. They are all disciplined and each one is in charge of a different application, so I didn't have a single case of double entries in this paradigm.

Thanks for your comments.

 _  _ _  _  
(_|| | |(_|><
 _|   

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-03-19 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found