I have a php application that connects to a database that has only two tables: users
and folders
. When you enter the application and press the button, folders
a huge number of records are inserted in the table . The process takes about 15 minutes. During this time, the entire application gets stuck. In my application header, I have something like
select * from users where id = {$_SESSION['user_id']}
but until these tens of thousands of records are inserted into the table folders
, the second query simply will not be executed. After I wait 15 minutes and the import is complete, I can access any page I want. How can I fix this problem?
A very important thing that I initially forgot to mention (my apologies for this) is the oracle database. I tested it before for MySql (just for curiosity) and it works without problems, but for the oracle, it seems to be the problem. The connection is made using OCI8.
source
share