Results 1 to 8 of 8

Thread: how to index records deleted?

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    22

    how to index records deleted?

    Hello everyone!
    How I can create a normal or production index for deleted records of lianja table?
    I tried this:
    index on deleted() to adu_del
    index on deleted() tag adu_del
    but in both cases I get error:
    "Datatype not supported in index expressions"
    Thank you for your help.
    JAOS

  2. #2
    Indexing on a logical is not allowed for performance reasons. What are you trying to accomplish?

  3. #3
    By the way, if you really need to build the index you can convert the logical to a string, but we don't recommend it unless there's really no other way around it.

  4. #4
    Junior Member
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    22
    In VFP I have no problem to create this index, but well, take your advice and will look for another way.
    Thank you so much, Dave.

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    Try this.

    index on etos(deleted()) to adu_del
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #6
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    I think Jaos may be trying to solve an issue that exists in VFP indexing (where failure to have an index on deleted() can in certain circumstances lead to non-optimized queries: http://msdn.microsoft.com/en-US/libr...(v=vs.80).aspx

    Hank

  7. #7
    Junior Member
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    22
    indeed, Hank, that's what I'm looking for. Thanks for refer to the MSDN help

  8. #8
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    Hi Jaos,

    And I don't know whether that's an issue for Lianja queries. This issue had to do with Rushmore, and from what I remember, Lianja does it differently.

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us