Creating your own TinyURL

前端 未结 13 2150

I have just found this great tutorial as it is something that I need.

However, after having a look, it seems that this might be inefficient. The way it works is, fir

13条回答
  •  甜味超标
    2020-12-13 12:19

    You could of course add ordering by simply numbering the urls:

    http://mytinyfier.com/1
    http://mytinyfier.com/2
    

    and so on. But if the hash key is indexed in the database (which it obviously should be), the performance boost would be minimal at best.

提交回复
热议问题