Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by gmax (Abbot)
on Jan 23, 2003 at 11:02 UTC ( #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.

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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-08-28 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (264 votes), past polls