Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[Corion]: Hi all! After 13 years or so in the same room, I've now moved to a new room (one door further) - weird :-D
[moritz]: I had an office move too, two floors up
[moritz]: so far I've managed not to get into my old office by accident, but once it was close (already stopped at the wrong floor)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-10-17 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (224 votes). Check out past polls.

    Notices?