stackoverflow.com/questions/ 5501961 / queries by unsubscribed or -query-by-ID
If you are absolutely sure that the mucus will not change, you can use it. But the numbers are probably faster and safer (that's for sure).
I just ran queries in the database with 1,000,000 rows, you can see that the ID is 230 times faster (the subject is not indexed, though). Also, as Kol Shrapnel said, what if you change the subject? Your URL will be corrupted and you will not be able to remember all changes to the topic. Numbers are numbers, computers work with numbers :) JK
SELECT tid FROM `forum_threads` WHERE subject = "New BMW X5"; Showing rows 0 - 0 (1 total, Query took 0.0230 sec) SELECT tid FROM `forum_threads` WHERE tid = 19906; Showing rows 0 - 0 (1 total, Query took 0.0001 sec)
source share