Performance Question - Browing a File with Filter causing Poor Performance - Clarion

This is a discussion on Performance Question - Browing a File with Filter causing Poor Performance - Clarion ; Hi everyone, I have a TPS file with a descending key. It has about 100,000 records. 20,000 records have key range of 'X000001' thru 'X999999'. 80,000 records have key range of 'A000001' thru 'T999999'. I want to display all records ...

+ Reply to Thread
Results 1 to 5 of 5

Performance Question - Browing a File with Filter causing Poor Performance

  1. Default Performance Question - Browing a File with Filter causing Poor Performance

    Hi everyone,

    I have a TPS file with a descending key.
    It has about 100,000 records.
    20,000 records have key range of 'X000001' thru 'X999999'.
    80,000 records have key range of 'A000001' thru 'T999999'.

    I want to display all records in browse list in descending order
    except the records having key range of 'X000001' thru 'X999999'.
    So that I have set FILTER < 'X000001'.

    The problem is that it displays a empty browse screen and
    populates records 5 seconds later. This is because of skipping
    20,000 records (key range of 'X000001' thru 'X999999').

    Anyone has a better idea ?
    I am using C6.1PE. Windows 2003 Server with 2GHZ.
    Workstatios is XP Pro with P4 2.4GHZ.

  2. Default Re: Performance Question - Browing a File with Filter causing Poor Performance

    On 8 Sep 2004 07:25:30 -0700, korcom@yahoo.com (Richard Kim) wrote:
    >I have a TPS file with a descending key.
    >It has about 100,000 records.
    >20,000 records have key range of 'X000001' thru 'X999999'.
    >80,000 records have key range of 'A000001' thru 'T999999'.
    >
    >I want to display all records in browse list in descending order
    >except the records having key range of 'X000001' thru 'X999999'.
    >So that I have set FILTER < 'X000001'.
    >
    >The problem is that it displays a empty browse screen and
    >populates records 5 seconds later. This is because of skipping
    >20,000 records (key range of 'X000001' thru 'X999999').
    >
    >Anyone has a better idea ?


    Create three fields in your file:
    1. STRING(1) - 'X'
    2. LONG - 456456
    3. STRING(7) - 'X456456'

    Store what you display to the user in the third field. Split that up
    into a string and a number and store it in the first two fields.
    Create your key on the first two fields. You can then use a range
    limit rather than a filter.

    Jason

  3. Default Re: Performance Question - Browing a File with Filter causing Poor Performance

    Jason Berkan <jason_berkan@canada.com> wrote in message news:<6h7uj0h92e8mobtres57qfmecro4nbo3s3@4ax.com>...
    > On 8 Sep 2004 07:25:30 -0700, korcom@yahoo.com (Richard Kim) wrote:
    > >I have a TPS file with a descending key.
    > >It has about 100,000 records.
    > >20,000 records have key range of 'X000001' thru 'X999999'.
    > >80,000 records have key range of 'A000001' thru 'T999999'.
    > >
    > >I want to display all records in browse list in descending order
    > >except the records having key range of 'X000001' thru 'X999999'.
    > >So that I have set FILTER < 'X000001'.
    > >
    > >The problem is that it displays a empty browse screen and
    > >populates records 5 seconds later. This is because of skipping
    > >20,000 records (key range of 'X000001' thru 'X999999').
    > >
    > >Anyone has a better idea ?

    >
    > Create three fields in your file:
    > 1. STRING(1) - 'X'
    > 2. LONG - 456456
    > 3. STRING(7) - 'X456456'
    >
    > Store what you display to the user in the third field. Split that up
    > into a string and a number and store it in the first two fields.
    > Create your key on the first two fields. You can then use a range
    > limit rather than a filter.
    >
    > Jason


    I tried Range Limit without spliting the key (Range of Values ==>
    'A000001' thru 'T999999'). It works.
    Thanks.

  4. Default Re: Performance Question - Browing a File with Filter causing Poor Performance

    Jason Berkan <jason_berkan@canada.com> wrote in message news:<6h7uj0h92e8mobtres57qfmecro4nbo3s3@4ax.com>...
    > On 8 Sep 2004 07:25:30 -0700, korcom@yahoo.com (Richard Kim) wrote:
    > >I have a TPS file with a descending key.
    > >It has about 100,000 records.
    > >20,000 records have key range of 'X000001' thru 'X999999'.
    > >80,000 records have key range of 'A000001' thru 'T999999'.
    > >
    > >I want to display all records in browse list in descending order
    > >except the records having key range of 'X000001' thru 'X999999'.
    > >So that I have set FILTER < 'X000001'.
    > >

    You can then use a range
    > limit rather than a filter.
    >
    > Jason



    Hi!

    I'm pretty new, so please forgive my ignorance, but why can't the
    existing key be used as a range similar to: 'A0000001' <= key <=
    'T9999999'? Does it make a difference that the key is a descending
    one?

    Thanks Jude

  5. Default Re: Performance Question - Browing a File with Filter causing Poor Performance

    On 9 Sep 2004 09:48:55 -0700, jcb@kindheartenterprises.com (Jude)
    wrote:
    >I'm pretty new, so please forgive my ignorance, but why can't the
    >existing key be used as a range similar to: 'A0000001' <= key <=
    >'T9999999'? Does it make a difference that the key is a descending
    >one?


    The existing key can be made a range, as Richard pointed out. My
    fault for making the problem/solution more difficult than it needed to
    be.

    Jason

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 09-05-2007, 04:46 AM
  2. Re: Poor SGV performance in FM 7.2
    By Application Development in forum Adobe Framemaker
    Replies: 0
    Last Post: 07-31-2006, 08:41 AM
  3. Re: Poor SGV performance in FM 7.2
    By Application Development in forum Adobe Framemaker
    Replies: 0
    Last Post: 07-29-2006, 05:06 PM
  4. Poor Attachment Performance
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 05-25-2004, 08:41 AM
  5. poor performance when downloading small file using jrun
    By Application Development in forum Java
    Replies: 0
    Last Post: 04-05-2004, 05:30 PM