<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>4 Nov 2019 16:06:52 Z</lastBuildDate><pubDate>4 Nov 2019 16:06:52 Z</pubDate><description>I have recently noticed that whenever I make the first call to any table in a HFSQL C/S which is on the same laptop as the program, then there is a delay of around 4.5 seconds.  During this time the application is frozen, which includes animations so even if I were to put an animated icon on or a progress bar, these are frozen until the read is completed.&#13;
&#13;
I have tried running the first read on a new thread which works but then the next read has the same delay.&#13;
&#13;
I have tried using HReadSeekFirst as well as native SQL and setting up a maual connection but it makes no difference.  The actual server is number on the same drive so it is not an internet connection that is slowing it down.&#13;
&#13;
Once the first file has been read, there is no problem as all future reads and modifications are instant, it's just this first read which is making the connection.&#13;
&#13;
It only seems to be since upgrading to the lastest version unless I have just not noticed it before.&#13;
&#13;
As an indication, I added this code to see what the time delay was:-&#13;
&#13;
tBefore is Time&#13;
tAfter is Time&#13;
&#13;
tBefore = Now()&#13;
&#13;
sSqlStr is SQL Query =&#13;
[&#13;
  SELECT CurrentVersion FROM Central&#13;
  WHERE Ref = 1&#13;
]&#13;
&#13;
HExecuteQuery(sSqlStr)&#13;
&#13;
tAfter = Now()&#13;
&#13;
Trace(tAfter - tBefore)&#13;
&#13;
The trace shows 4607, being 4.6 seconds.&#13;
&#13;
Any ideas or is this normal for a first read.  If it is normal, is there a way to do it do that it does not freeze the application?&#13;
&#13;
Thanks&#13;
Simon</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67375-slow-initial-connect-hfsql-developement-machine/read.awp</link><title>Slow initial connect to HFSQL C/S on developement machine</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
