in reply to Re: Code Efficiency
in thread Code Efficiency

Hi
It's a photo archive, so hopefully previous keywords won't be incorrect (carrots shouldn't dissapear from the image!).
Basically what i have done now is made a file 'UBER1' containing
PicRefID: Keyword1, Keyword2 ...
The keyword list is basically another file 'UBER2', identical but without the PicRefID, and sorted, and uniq'd. if a keyword is added to a picture, it adds it to the relevant PicRefId line in 'UBER1', and also if the new keyword does not already appear in 'UBER2', places it in the relevant place.

It's all much much nicer now. All the data in the 100,000ish files is in one file, and the keyword list only needs occasional updating.

Basically my initial plan was based on a tiny subset running well, and not expecting such massive over heads. now it only takes a minute or two, and that's more the upload of 15M of keywords, rather than script load (and then the upload!)
Cheers to all that helps, much appreciated!!
ant