On 7/19/2013 1:07 PM, Ted Roche wrote:
Do you have a tag on DELETED()
No, I didn't. This data is only inserted into the database and then
queried; there's no updates or deletes. I'm going to test the SET
DELETED and/or index on DELETED strategy next week. Since no records
will ever be deleted, is it silly to have an index on deleted? Methinks
going with SET DELETED OFF would be a better move here.
Rather than have a function within the SQL, replace DATE() with
{^2012-01-01} so it is an explicit value, or use:
m.MyTargetDate = DATE(2012,1,1)
ad
... WHERE LastDOS = m.MyTargetDate
I had wondered about that. However, this test seems to indicate that
just using a SET DELETED OFF is enough to fix it:
SET DELETED ON
CREATE CURSOR MyTable (lastDOS d)
INDEX on lastDOS TAG lastDOS
? SYS(3054,1)
SELECT * FROM MyTable WHERE LastDOS = DATE()
SET DELETED OFF
SELECT * FROM MyTable WHERE LastDOS = DATE()
Thanks for the ideas, Ted!
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.