My current plan is to remove all external use of numeric IDs (read: database primary key), except for a specific path, as per Martin's suggestion. This path will only accept the key. The rest will work like del.icio.us : urlencoded utf8 tags, which makes it possible to use numbers or any character. This does dramatically decrease the number of queries, as the ID is read only once and we won't have to figure out if we're dealing with a tag or with an id.
As about every function in /tag/lib.php accepts either, there is significant work (and tests...) to be done before I can commit this. Don't know if it will make it into 1.9... but as there won't be any database change, I guess it should..
And the problems with
MDL-12316as floats..I dont think its desirable to guess the id/tag like this. Also we have a problem of performance as dbq has to be done for each of these tags like that.
MDL-12316as floats.. I dont think its desirable to guess the id/tag like this. Also we have a problem of performance as dbq has to be done for each of these tags like that.