Query strings - use string identifiers or human-readable values?

I am creating a form and I am wondering if there is a significant advantage in displaying values ​​in a more readable format; eg:

?

user index.php = Ted & location = NewYork

Instead

?

user index.php = 23423 & location = 34645

On the one hand, if the query string is a little readable, the user and search engines better understand where they are, but it also creates a bit more work on the server side, since I will have to track the related strings through something other than their unique identifier.

For example, first find that idfor 'newyork' before it can work with other lines for which it is required location_id. I always prefer to give db as little work as possible.

Edit: decided to go with readability. I believe that I can always use the mysql query cache to speed up the process if necessary.

+3
source share
6 answers

Use readable data. Just remember to clear the entrance.

: , SEO ( ), . , , ( ), . , , 50. , , .

+2

, , ..

0

.

- , , ( ), / .

, . , .

- , .

0

. , . QO . .

0

. , URL- , , URL- , URL- . : https://www.coolreportingapp.com/accountReport.jsp?account=ABC&month=200911. "" , , . , , , URL , . , URL, - , , .

0

, , , , . , "&" "" "user=ted&location=newyork&"? , ? , ?

URL-, URL- SEO Friendly ( ). , " vs " .

0

Source: https://habr.com/ru/post/1723916/


All Articles