Skip to content

Comment on In search of the perfect URL

Comments

I thought this was fairly common knowledge.

Using a DB PKID is a faster lookup than a text slug and uses much less storage space in the DB.

For SEO / URL permanence reasons, the PKID is always the authoritative key while the slug can be updated to represent the current content of the URL.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.