A question from a SQL and database newbie:
I have read some articles about db concurrency, but simultaneous update is the most frequently thing described there.
However, I'm interested in only fetching the information from the database.
So, here are the questions:
Is it possible to simultaneously do many SELECTs from a database? Will these SELECTs interfere? Is case 2 possible?
Usual case (1):
- [Time elapsed: 0 seconds]
- SELECT something1 FROM table1
- Get result for the first SELECT
- [Time elapsed: 1.5 seconds]
- SELECT something2 FROM table1
- Get result for the second SELECT
- [Time elapsed: 3 seconds]
A case with simultaneous queries (2):
- [Time elapsed: 0 seconds]
- SELECT something1 FROM table1
- [Time elapsed: 0.001 seconds]
- SELECT something2 FROM table1
- Get result for the first SELECT
- [Time elapsed: 1.5 seconds]
- Get result for the second SELECT
- [Time elapsed: 1.5001 seconds]