About Store Forum Documentation Contact



Post Reply 
SQL::getRowsCols multithreading
Author Message
Lancer Offline
Member

Post: #1
SQL::getRowsCols multithreading
Hello,

I wanted to do my database work multi-threading. Im looking for a simple way doing the function SQL::getRowsCols work async.

Doing so with newRow, modifyRows & delRows was very easy.

Currently I connect to the database when booting the server.
When someone sends a login request, I want the second thread to call getRowsCols
and then with the main-thread, I want to process the returned rows.

I think the best way would be, if there is a function to copy/move the rows and cols into a temporary mem container.

Is it possible to make _rows and _cols public or create an function to copy/move them ?
02-02-2021 02:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: SQL::getRowsCols multithreading
I suggest you read all the data after the SQL call and put the data into some temporary container. Then pass that data onto the other thread
02-03-2021 02:20 AM
Find all posts by this user Quote this message in a reply
Post Reply