I'm confusing to choose my clean URL format for better SEO. Here are my two options:
The first format is very clean. It would be much more familiar and easier to read for search engine users. But I need to query the content from db using slug - "apple" in this case.
The second format uses a numeric ID of the content from db - "123" for the title "apple". It would be less familiar to users. But I can query the content from db using ID. This will make more efficient from the speed perspective.
The StackExchange questions use the second format like
But it has the very good SEO. I notice Google crawls questions fastly and they are listed in the first SERP in a very few hours.
Both SEO and speed is important for my site. Please suggest me what is the best option.