Names to ids

Andy Armstrong andy at hexten.net
Wed Jan 25 15:28:46 GMT 2006


On 25 Jan 2006, at 15:10, Simon Wistow wrote:
> But this means that we need to have a consistent filename to integer
> mapping so that it remains consistent between runs. This means that
> collisions should be kept to an absolute minimum because if a totally
> black image's filename gets mapped to id 88888 and then a totally  
> white
> image's filename gets mapped to the same then we're going to get
> very bogus results.

Well MD5 won't collide too often. But shouldn't you be storing the  
images (or at least whatever metadata is associated with them) in a  
database and using the primary key as the ID?

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list