I am using the singleton design pattern in a PHP application to create a database connection and select the database. I am using this instance many times in the application for CRUD operations.
Is there any problem if my application is accessing the database on multiple threads, such as getting unreliable results?
Is the created instance per session or for all threads?
There are no threads in PHP. Each request start from scratch; objects and resources are not shared.