About 75000 records.Antonio Linares wrote:Enrico,
How many records you have on the DBF ?
EMG
About 75000 records.Antonio Linares wrote:Enrico,
How many records you have on the DBF ?
It may be good to have your program to check in the background via a thread for an updated version of your exe on some servers, that too without delaying/pausing/interfering the work of your user on the application. If an updated version is available then it would show a popup message that a new version of the app is available, else nothing happens, the user continues with his work.StefanHaupt wrote:Enrico,
just to understand, what could be the advantages using MT instead of ST ? What functions could be put in threads ?
Im my understanding a database application is a single thread application with single tasks, e.g. browsing a dbf or searching in a dbf. What can be done, to get simultaneous tasks ?
Stefan
Thank you, Master!Antonio Linares wrote:Enrico,
I created a 80.000 records DBF (using dbcre8.exe) and tested it with Harbour:
ST: 0,299 secs
MT: 0,345 secs
You are right, MT apps are slower
I am reporting it to the Harbour dev group:
https://groups.google.com/forum/?fromgr ... Ap9qFn9gSs
Thank you.Antonio Linares wrote:Enrico,
Mindaugas just answered. his explanation sounds logical, but nobody would want to slow down his app...
Yes. Of course, it depends on what the background task is doing. If it is activated but is doing nothing (ie. is executing an empty codeblock) then the app speed doesn't decrease.Antonio Linares wrote:Enrico,
Have you checked, when you use a background task, if the app speed decrease ?
The sense is that my application will slow down if I only link the MT libs in. Unacceptable for me.Patrizio wrote:Enrico, Antonio: a test of that kind don't make sense in MT.
That's why I prefer background tasks.Patrizio wrote:Enrico, the error is considered an application MT as an application ST with an extra function.
MT applications are designed especially for parallel processes (we use .NET MT app for processing many ascii files at same time).
It depends on what you need to do, I use bgtasks to check if there is connectivity and check for sw updates.Enrico Maria Giordano wrote:Patrizio,
That's why I prefer background tasks.
EMG