From my understanding, we can compare SQL vs NoSQL to array vs hashmap/dict.
(Let's consider PostgreSQL vs MongoDB just for a context)
SQL is arranged in tables and searches through the rows for what you're looking for.
NoSQL is arranged in a key-value way, so if you know the key, you'll get the value "directly" without needing to search through anything.
With the above considered, when I make a query in SQL using only the primary-key as my WHERE to get one item, does it still do a row search or does it do a "direct" hit on the row?
I hope my doubt has been understood