Sign in
Log inSign up

Is it faster to fetch rows by ID (primary key) or by other fields like title?

Jean Gérard Bousiquot's photo
Jean Gérard Bousiquot
·Jul 24, 2016

Hello fellow hashnoders! I'm a Laravel developer and was wondering If i have a table of posts in a MySQL DB: Is it faster to fetch rows by ID (primary key) or by other fields like title?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct