On Fri, 30 Jan 2009, Mindaugas Kavaliauskas wrote:

Hi,

> I'm sure I do not reopen tags with empty key expression. We can add key 
> expression check for expression loaded from index file. I've not tested, 
> but I guess this check already exists. See dbfcdx1.c line 3581:
>       pTag->RootBlock = 0; /* To force RT error - index corrupted */

Yes, it forces RT error.

> Currently we do not use temporary flag, but we use our own functions to 
> generate temporary file name and we delete all temporary files on 
> application exit.
> The implementation of temp file name is very similar to Harbour's 
> (GetTempPathA(), GetTempFileNameA(), with a different prefix "~db", instead 
> of "hb"). I do not remember the reason way we use our functions. Perhaps 
> this is legacy from Clipper times. I'll try to add TEMPORARY flag and will 
> look what will happen :)

It will increase the performance for shared tables because TEMPORARY
indexes are always used in exclusive mode without checking for concurrent
modifications.
Even if you do not want to use it then you should at least use
EXCLUSIVE flag for your own temporary indexes to reach the same
performance.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to