Is this concurrency-safe?
yang opened this issue · comments
You have a single createConnection()
happening once at the top of this example. I understand that creates a connection pool. But how does TypeORM when it should add vs reuse connections in the pool? (If you have two requests coming in at the same time, and each request handler makes some queries, how does TypeORM know which queries go to which connection?)
Moving this discussion to typeorm/typeorm#2581
Answered in there.