<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>25 Jun 2020 12:50:45 Z</lastBuildDate><pubDate>4 Nov 2019 16:11:11 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 run on the same drive as the application 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/67376-slow-initial-connection-hfsql-same-machine/read.awp</link><title>Slow initial connection to HFSQl on same machine</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>test</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67891/read.awp</comments><pubDate>25 Jun 2020 12:50:45 Z</pubDate><description>if you have a connection to a DB defined in the analysis (your test DB, by example) and that DB is NOT accessible while starting…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67891/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67891/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine/read.awp">Slow initial connection to HFSQl on same machine</source><title>Re: Slow initial connection to HFSQl on same machine</title></item><item><author>peter_mcgillvery</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67887/read.awp</comments><pubDate>25 Jun 2020 03:32:10 Z</pubDate><description>Hi Simon,&#13;
&#13;
Did you ever get a resolution to this problem. &#13;
&#13;
I have the same issue. &#13;
&#13;
Thanks&#13;
Peter</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67887/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67887/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine/read.awp">Slow initial connection to HFSQl on same machine</source><title>Re: Slow initial connection to HFSQl on same machine</title></item><item><author>peter_mcgillvery</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67886/read.awp</comments><pubDate>25 Jun 2020 03:32:09 Z</pubDate><description>Hi Simon,&#13;
&#13;
Did you ever get a resolution to this problem. &#13;
&#13;
I have the same issue. &#13;
&#13;
Thanks&#13;
Peter</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67886/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine-67886/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67376-slow-initial-connection-hfsql-same-machine/read.awp">Slow initial connection to HFSQl on same machine</source><title>Re: Slow initial connection to HFSQl on same machine</title></item></channel></rss>
