Does this included the buffered cursors where you need to be able to reverse transactions?
Main Topics
Browse All TopicsWhere are the Foxpro temp cursor files stored? I have a client with slowness on his network based database.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you don't specify, foxpro uses the temp file of the users account. you can specify where it should be in a config.fpw. And you should put temp files where foxpro runtime dlls are executed (!) not necessarily where runtime files are located. Eg it's bad for terminal server if temp files will be stored on client computers, that would mean network storage of cursors from the viewpoint of the process running on the terminal server.
Bye, Olaf.
Even in saving FoxPro uses an index. To be sure always REINDEX or better yet recreate the index from time to time. I have that programmed at 4AM to index old FPW26 tables.
This is how:
USE table EXCLUSIVE
DELETE TAG ALL
INDEX ON field1 TAG field1
INDEX ON field2 TAG field2
USE
and so on ...
Not only this will make sure all the keys are in, but will fix any corrupted index headers. This is one of the two weaknesses of using DBF files.
If you DELETE TAG ALL and execute a sequence of appropirate INDEX, you will always be able to build a new CDX.
Also deep in the night there should not be the same amount of traffic that could get in your way while reindexing that way. Take a look at SYS(3050) to make less frequent network access during the reindex and do reindex in big chunks of the file or even the whole file at once.
DELETE TAGS ALL and doing several INDEX ON commands also is safer, as even if it crashes you can repeat that, while REINDEX does noeed an intact CDX to read the index key expressions from there. So that is safer regarding that aspect.
But missing row in indexes don't lead to slowness. It's rather indexes missing for where clause expressions used or vice versa using where clause expressions not having a mtching index expression. Tidying up where clauses for example, often enough the seemingly complex expressions used there were optimisable, while the tidy version is not, especially if you have compound index expressions.
Eg an index on DTOS(datefield)+charfield can be use in a where clause where DTOS(datefield)+charfield = DTOS(Date)+charvalue. And if you tidy that to WHERE datefield = DATE() and charfield = charvalue it's not rushmore optimised anymore. I've seen people doing that, being proud of clearing out "that crappy SQL", but all they did was not knowing and understanding rushmore, slowing down that SQL.
See chapters on rushmore and SYS(3054).
Bye, Olaf.
I would say there is another problem than indexes if the slowness is observed just on one client network whereas on other networks everything works perfectly.
This seems to be hardware problem and it should be investigated in a stress test on some temporary tables which can even be wiped out during the reindex crash. The stress test should simulate heavy network traffic stronger than obvious network loading and errors which will appear should point to possible hardware problems.
Business Accounts
Answer for Membership
by: pcelbaPosted on 2009-04-16 at 13:37:52ID: 24162327
Issue
? SYS(2023)
in Command window.
It is in user's temp folder obviously but it can be changed by setting in CONFIG.FPW.