Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on Deleted()
Message
From
08/06/2009 04:09:29
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
06/06/2009 04:46:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01404089
Message ID:
01404391
Views:
70
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>What were the recommendations about creating an index on DELETED() records? Given a file of, say, 1 million records of which 10% might be deleted is it a good or bad idea to index on DELETED()?
>
>TIA

Hi Jos,

All of tables of mine has an index on deleted()

I never use pack command. This is my record append function:
Local ord,onerr
ord=Order()
onerr=On("erro")
Nodele=.F.
On Error Nodele=.T.
Set Order To Delete
If Empty(m.onerr)
	On Error
Else
	On Error &onerr
Endif
If Nodele
	Append Blank
Else
	Set Deleted Off
	If Seek(.T.)
		Recall
		Blank
	Else
		Append Blank
	Endif
Endif
Set Order To &ord
Set Deleted On
You have to use flock() before use that function because of record get violations.
Previous
Reply
Map
View

Click here to load this message in the networking platform