In order to incrementally update tag-tag and image-image relations, we implement an efficient function to modify related tables.
Usage Guide:call the function: Add_NewTag($imageID, $flickrID, $tag)
(Please include the file "common/AddNewTag.php" first.)
You have to provide $imageID or $flickrID.
Besides, the name of added $tag is also needed.
Seven tables will be updated when one tag is added into an image.
Tag related tables:
* TBL_ImageTag
* TBL_InvertedFile
* TBL_TagTagMatrix
* TBL_TagRelationSVD
Image related tables:
* TBL_InvertedFileTrans
* TBL_ImageImageMatrix
* TBL_ImageRelation
All tables can be updated within 1~2 seconds.
- Chi-Yao
沒有留言:
張貼留言