Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.xharbour / Re: 'faster' alternative to set filter to

SubjectAuthor
* 'faster' alternative to set filter totimepro timesheet
`* 'faster' alternative to set filter toClaude Roettgers
 +* 'faster' alternative to set filter toEnrico Maria Giordano
 |`- 'faster' alternative to set filter totimepro timesheet
 `* 'faster' alternative to set filter totimepro timesheet
  `* 'faster' alternative to set filter todlzc
   +- 'faster' alternative to set filter toRafa Pabd
   `* 'faster' alternative to set filter totimepro timesheet
    +- 'faster' alternative to set filter toDan
    `* 'faster' alternative to set filter todlzc
     `- 'faster' alternative to set filter totimepro timesheet

1
'faster' alternative to set filter to

<73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10708&group=comp.lang.xharbour#10708

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a0c:e04c:0:b0:537:4989:3417 with SMTP id y12-20020a0ce04c000000b0053749893417mr972284qvk.112.1674638863601;
Wed, 25 Jan 2023 01:27:43 -0800 (PST)
X-Received: by 2002:a05:6902:148:b0:7fe:8fc:420f with SMTP id
p8-20020a056902014800b007fe08fc420fmr2647696ybh.292.1674638863417; Wed, 25
Jan 2023 01:27:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 25 Jan 2023 01:27:43 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:152b:c11:15cb:fb34;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:152b:c11:15cb:fb34
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
Subject: 'faster' alternative to set filter to
From: timecost...@gmail.com (timepro timesheet)
Injection-Date: Wed, 25 Jan 2023 09:27:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1403
 by: timepro timesheet - Wed, 25 Jan 2023 09:27 UTC

in a server/client environment, is there a 'faster' alternative to 'set filter to'
e.g.
on a 18900 rec size .dbf (39 fields), when i code for generating a report:
set filt to field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
go top
do whil !eof()
....
....
....
skip
end
-it slows down the process when 'skipping' records (or even at dbedit)

Re: 'faster' alternative to set filter to

<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10709&group=comp.lang.xharbour#10709

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:cca:b0:706:9430:8634 with SMTP id b10-20020a05620a0cca00b0070694308634mr1033321qkj.773.1674639507361;
Wed, 25 Jan 2023 01:38:27 -0800 (PST)
X-Received: by 2002:a05:690c:b8b:b0:506:523c:bcb2 with SMTP id
ck11-20020a05690c0b8b00b00506523cbcb2mr592617ywb.473.1674639507136; Wed, 25
Jan 2023 01:38:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 25 Jan 2023 01:38:26 -0800 (PST)
In-Reply-To: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.106.27.206; posting-account=GBWlOgoAAADtwL3-KxC7xPiJ8faPs4X6
NNTP-Posting-Host: 185.106.27.206
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: luxembou...@gmail.com (Claude Roettgers)
Injection-Date: Wed, 25 Jan 2023 09:38:27 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1750
 by: Claude Roettgers - Wed, 25 Jan 2023 09:38 UTC

timec...@gmail.com schrieb am Mittwoch, 25. Januar 2023 um 10:27:44 UTC+1:
> in a server/client environment, is there a 'faster' alternative to 'set filter to'
> e.g.
> on a 18900 rec size .dbf (39 fields), when i code for generating a report:
> set filt to field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> go top
> do whil !eof()
> ...
> ...
> ...
> skip
> end
> -it slows down the process when 'skipping' records (or even at dbedit)

copy to xxx.dbf for field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
And then no need for filter anymore.

Re: 'faster' alternative to set filter to

<tqquas$k5fq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10710&group=comp.lang.xharbour#10710

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: 'faster' alternative to set filter to
Date: Wed, 25 Jan 2023 10:55:40 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <tqquas$k5fq$1@dont-email.me>
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 25 Jan 2023 09:55:40 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="7fcbc58cf44d1caf52e252d12b792afd";
logging-data="660986"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ljQffJWeik5/m8vFIizh4"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.7.0
Cancel-Lock: sha1:y9lhWImtDw6OLbtKQwRFd/8zoaQ=
In-Reply-To: <9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
 by: Enrico Maria Giordan - Wed, 25 Jan 2023 09:55 UTC

Il 25/01/2023 10:38, Claude Roettgers ha scritto:

>> in a server/client environment, is there a 'faster' alternative to 'set filter to'
>> e.g.
>> on a 18900 rec size .dbf (39 fields), when i code for generating a report:
>> set filt to field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
>> go top
>> do whil !eof()
>> ...
>> ...
>> ...
>> skip
>> end
>> -it slows down the process when 'skipping' records (or even at dbedit)
>
> copy to xxx.dbf for field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> And then no need for filter anymore.

Or build a temporary index with FOR clause on the fly.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: 'faster' alternative to set filter to

<d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10711&group=comp.lang.xharbour#10711

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:260b:b0:706:86d0:c745 with SMTP id z11-20020a05620a260b00b0070686d0c745mr992576qko.114.1674642928704;
Wed, 25 Jan 2023 02:35:28 -0800 (PST)
X-Received: by 2002:a25:c642:0:b0:80b:a1c7:e81a with SMTP id
k63-20020a25c642000000b0080ba1c7e81amr173414ybf.253.1674642928517; Wed, 25
Jan 2023 02:35:28 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 25 Jan 2023 02:35:28 -0800 (PST)
In-Reply-To: <9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:152b:c11:15cb:fb34;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:152b:c11:15cb:fb34
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com> <9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: timecost...@gmail.com (timepro timesheet)
Injection-Date: Wed, 25 Jan 2023 10:35:28 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2108
 by: timepro timesheet - Wed, 25 Jan 2023 10:35 UTC

On Wednesday, January 25, 2023 at 3:08:28 PM UTC+5:30, Claude Roettgers wrote:
> timec...@gmail.com schrieb am Mittwoch, 25. Januar 2023 um 10:27:44 UTC+1:
> > in a server/client environment, is there a 'faster' alternative to 'set filter to'
> > e.g.
> > on a 18900 rec size .dbf (39 fields), when i code for generating a report:
> > set filt to field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> > go top
> > do whil !eof()
> > ...
> > ...
> > ...
> > skip
> > end
> > -it slows down the process when 'skipping' records (or even at dbedit)
> copy to xxx.dbf for field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> And then no need for filter anymore.
but, i have multiple index files on that .dbf, and i also change indexord in the loop...
wouldn't i then have to create multiple index files also on 'xxx.dbf'

Re: 'faster' alternative to set filter to

<f3b244ba-0d2e-49b4-bf94-9ff6fdc3d113n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10712&group=comp.lang.xharbour#10712

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:4457:0:b0:3b5:5e27:1f0f with SMTP id m23-20020ac84457000000b003b55e271f0fmr1353069qtn.462.1674643060501;
Wed, 25 Jan 2023 02:37:40 -0800 (PST)
X-Received: by 2002:a0d:c301:0:b0:4db:df79:a7c7 with SMTP id
f1-20020a0dc301000000b004dbdf79a7c7mr4044773ywd.515.1674643060298; Wed, 25
Jan 2023 02:37:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Wed, 25 Jan 2023 02:37:39 -0800 (PST)
In-Reply-To: <tqquas$k5fq$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:152b:c11:15cb:fb34;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:152b:c11:15cb:fb34
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <tqquas$k5fq$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3b244ba-0d2e-49b4-bf94-9ff6fdc3d113n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: timecost...@gmail.com (timepro timesheet)
Injection-Date: Wed, 25 Jan 2023 10:37:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2335
 by: timepro timesheet - Wed, 25 Jan 2023 10:37 UTC

On Wednesday, January 25, 2023 at 3:25:42 PM UTC+5:30, Enrico Maria Giordano wrote:
> Il 25/01/2023 10:38, Claude Roettgers ha scritto:
>
> >> in a server/client environment, is there a 'faster' alternative to 'set filter to'
> >> e.g.
> >> on a 18900 rec size .dbf (39 fields), when i code for generating a report:
> >> set filt to field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> >> go top
> >> do whil !eof()
> >> ...
> >> ...
> >> ...
> >> skip
> >> end
> >> -it slows down the process when 'skipping' records (or even at dbedit)
> >
> > copy to xxx.dbf for field1=&abc .and. field7='C'.and.!dele().and.field8<invdate
> > And then no need for filter anymore.
> Or build a temporary index with FOR clause on the fly.
>
> --
> Enrico Maria Giordano
>
> http://www.emagsoftware.it
> http://www.emagsoftware.it/emgmusic
> http://www.emagsoftware.it/spectrum
> http://www.emagsoftware.it/tbosg
emg:
i have multiple index files on that dbf
-also, in dbedit, 'all' the 'non-filtered' records will also be listed/displayed...

Re: 'faster' alternative to set filter to

<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10717&group=comp.lang.xharbour#10717

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:5fcf:0:b0:3b8:2a2:5d2a with SMTP id k15-20020ac85fcf000000b003b802a25d2amr302816qta.465.1674746601601;
Thu, 26 Jan 2023 07:23:21 -0800 (PST)
X-Received: by 2002:a81:5a08:0:b0:4e9:8c52:520e with SMTP id
o8-20020a815a08000000b004e98c52520emr6004166ywb.372.1674746601458; Thu, 26
Jan 2023 07:23:21 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 26 Jan 2023 07:23:21 -0800 (PST)
In-Reply-To: <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: dlz...@cox.net (dlzc)
Injection-Date: Thu, 26 Jan 2023 15:23:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2617
 by: dlzc - Thu, 26 Jan 2023 15:23 UTC

Dear timec...

On Wednesday, January 25, 2023 at 3:35:29 AM UTC-7, timec...@gmail.com wrote:
....
> > > -it slows down the process when 'skipping' records
> > > (or even at dbedit)
> > copy to xxx.dbf for field1=&abc .and. field7='C'.and.
> > !dele().and.field8<invdate
> > And then no need for filter anymore.
....
> but, i have multiple index files on that .dbf, and i also
> change indexord in the loop... wouldn't i then have to
> create multiple index files also on 'xxx.dbf'

Use DBFCDX, and you have only a single index file, but multiple orderbags in that file. Yes, you'd still need to create each index, just refer to them by their alias.

If you have the "correct" index in place when you make the copy, then it will be in that order when you make it.

Another option is to create a separate "pointer file" that has records for matches into your main file, with fields associated with index position in each of your orderbags. Then build indexes on each of those. Smaller on disk, and that is about it.

You've complained (rightly) about the speed. We're trying to give you 'easy' fixes here. Only you can present them to the user in a fashion that allows them to feel this is faster. If you need to change indexes on main, create a new xxx.dbf to go with it.

Re: 'faster' alternative to set filter to

<193a0a9d-d89d-4c0c-a547-b91778517f42n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10718&group=comp.lang.xharbour#10718

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:2b21:b0:709:8e:730b with SMTP id do33-20020a05620a2b2100b00709008e730bmr758275qkb.192.1674747479778;
Thu, 26 Jan 2023 07:37:59 -0800 (PST)
X-Received: by 2002:a25:a2cb:0:b0:80b:5988:2046 with SMTP id
c11-20020a25a2cb000000b0080b59882046mr1258743ybn.435.1674747479597; Thu, 26
Jan 2023 07:37:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 26 Jan 2023 07:37:59 -0800 (PST)
In-Reply-To: <c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.252.59.227; posting-account=5i33kwkAAADXaAmRzm2EATBbjE36Qdbt
NNTP-Posting-Host: 185.252.59.227
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <193a0a9d-d89d-4c0c-a547-b91778517f42n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: trepao27...@gmail.com (Rafa Pabd)
Injection-Date: Thu, 26 Jan 2023 15:37:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2890
 by: Rafa Pabd - Thu, 26 Jan 2023 15:37 UTC

El jueves, 26 de enero de 2023 a las 16:23:22 UTC+1, dlzc escribió:
> Dear timec...
>
> On Wednesday, January 25, 2023 at 3:35:29 AM UTC-7, timec...@gmail.com wrote:
> ...
> > > > -it slows down the process when 'skipping' records
> > > > (or even at dbedit)
> > > copy to xxx.dbf for field1=&abc .and. field7='C'.and.
> > > !dele().and.field8<invdate
> > > And then no need for filter anymore.
> ...
> > but, i have multiple index files on that .dbf, and i also
> > change indexord in the loop... wouldn't i then have to
> > create multiple index files also on 'xxx.dbf'
> Use DBFCDX, and you have only a single index file, but multiple orderbags in that file. Yes, you'd still need to create each index, just refer to them by their alias.
>
> If you have the "correct" index in place when you make the copy, then it will be in that order when you make it.
>
> Another option is to create a separate "pointer file" that has records for matches into your main file, with fields associated with index position in each of your orderbags. Then build indexes on each of those. Smaller on disk, and that is about it.
>
> You've complained (rightly) about the speed. We're trying to give you 'easy' fixes here. Only you can present them to the user in a fashion that allows them to feel this is faster. If you need to change indexes on main, create a new xxx.dbf to go with it.

Array recnos with filter in running on Array RDD

Re: 'faster' alternative to set filter to

<c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10719&group=comp.lang.xharbour#10719

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:2e82:b0:534:d44e:69e1 with SMTP id oc2-20020a0562142e8200b00534d44e69e1mr1629943qvb.55.1674796136366;
Thu, 26 Jan 2023 21:08:56 -0800 (PST)
X-Received: by 2002:a81:7902:0:b0:506:3b34:5127 with SMTP id
u2-20020a817902000000b005063b345127mr1896763ywc.402.1674796136137; Thu, 26
Jan 2023 21:08:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 26 Jan 2023 21:08:55 -0800 (PST)
In-Reply-To: <c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:e543:1a14:3ea9:d877;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:e543:1a14:3ea9:d877
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: timecost...@gmail.com (timepro timesheet)
Injection-Date: Fri, 27 Jan 2023 05:08:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2986
 by: timepro timesheet - Fri, 27 Jan 2023 05:08 UTC

On Thursday, January 26, 2023 at 8:53:22 PM UTC+5:30, dlzc wrote:
thanks dlzc.
back to old dog...new tricks...
-it never ends.

btw: does chanting 'abracadabra' work.

> Dear timec...
>
> On Wednesday, January 25, 2023 at 3:35:29 AM UTC-7, timec...@gmail.com wrote:
> ...
> > > > -it slows down the process when 'skipping' records
> > > > (or even at dbedit)
> > > copy to xxx.dbf for field1=&abc .and. field7='C'.and.
> > > !dele().and.field8<invdate
> > > And then no need for filter anymore.
> ...
> > but, i have multiple index files on that .dbf, and i also
> > change indexord in the loop... wouldn't i then have to
> > create multiple index files also on 'xxx.dbf'
> Use DBFCDX, and you have only a single index file, but multiple orderbags in that file. Yes, you'd still need to create each index, just refer to them by their alias.
>
> If you have the "correct" index in place when you make the copy, then it will be in that order when you make it.
>
> Another option is to create a separate "pointer file" that has records for matches into your main file, with fields associated with index position in each of your orderbags. Then build indexes on each of those. Smaller on disk, and that is about it.
>
> You've complained (rightly) about the speed. We're trying to give you 'easy' fixes here. Only you can present them to the user in a fashion that allows them to feel this is faster. If you need to change indexes on main, create a new xxx.dbf to go with it.

Re: 'faster' alternative to set filter to

<tr069v$1kpj6$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10720&group=comp.lang.xharbour#10720

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: webmas...@appliserver.com (Dan)
Newsgroups: comp.lang.xharbour
Subject: Re: 'faster' alternative to set filter to
Date: Fri, 27 Jan 2023 10:42:19 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <tr069v$1kpj6$1@dont-email.me>
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com>
<d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com>
<c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Jan 2023 09:42:23 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="cca0827ce650dcaa63ec0cfacb48cca7";
logging-data="1730150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jaGY7cH6Ngql8gdfZuNfr"
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:FGvpJLOoAFKWXVqJZ1MDbkpyOfI=
In-Reply-To: <c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
 by: Dan - Fri, 27 Jan 2023 09:42 UTC

Il 27/01/2023 06:08, timepro timesheet ha scritto:
> On Thursday, January 26, 2023 at 8:53:22 PM UTC+5:30, dlzc wrote:
> thanks dlzc.
> back to old dog...new tricks...
> -it never ends.
>
> btw: does chanting 'abracadabra' work.
>
BTW: keep in mind: traversating a dbf *with an index active* can be 10
times slower than with no indexes.

use dbf1
set index to ix1
go top
do while .not. eof()
skip
enddo

set index to
go top
do while .not. eof()
skip
enddo
=> the latter is MUCH faster (obviously).

Dan

Re: 'faster' alternative to set filter to

<0dcafedf-6c4f-43d9-9cd9-98555fef02f4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10726&group=comp.lang.xharbour#10726

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:5c14:0:b0:3a8:2e9f:6ae9 with SMTP id i20-20020ac85c14000000b003a82e9f6ae9mr1216522qti.293.1674832309929;
Fri, 27 Jan 2023 07:11:49 -0800 (PST)
X-Received: by 2002:a25:a2cb:0:b0:80b:5988:2046 with SMTP id
c11-20020a25a2cb000000b0080b59882046mr1696175ybn.435.1674832309786; Fri, 27
Jan 2023 07:11:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 27 Jan 2023 07:11:49 -0800 (PST)
In-Reply-To: <c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com> <c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0dcafedf-6c4f-43d9-9cd9-98555fef02f4n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: dlz...@cox.net (dlzc)
Injection-Date: Fri, 27 Jan 2023 15:11:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1828
 by: dlzc - Fri, 27 Jan 2023 15:11 UTC

On Thursday, January 26, 2023 at 10:08:57 PM UTC-7, timec...@gmail.com wrote:
> On Thursday, January 26, 2023 at 8:53:22 PM UTC+5:30, dlzc wrote:
> thanks dlzc.
> back to old dog...new tricks...
> -it never ends.
>
> btw: does chanting 'abracadabra' work.

If you speak the language, yes it does. That advice was English, but I expected you wanted to UNDERSTAND, not have someone write the code for you.

I'll stop responding to your posts.

David A. Smith

Re: 'faster' alternative to set filter to

<89d903f2-a94d-4fe9-b5c7-9fa041442716n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10727&group=comp.lang.xharbour#10727

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:605a:0:b0:3a8:15e1:757 with SMTP id k26-20020ac8605a000000b003a815e10757mr1293932qtm.194.1674836153703;
Fri, 27 Jan 2023 08:15:53 -0800 (PST)
X-Received: by 2002:a81:d502:0:b0:4be:167b:8ae1 with SMTP id
i2-20020a81d502000000b004be167b8ae1mr4660956ywj.78.1674836153474; Fri, 27 Jan
2023 08:15:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 27 Jan 2023 08:15:53 -0800 (PST)
In-Reply-To: <0dcafedf-6c4f-43d9-9cd9-98555fef02f4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:dce1:3444:991c:c45d;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:dce1:3444:991c:c45d
References: <73f157eb-166d-480a-b4fc-248ae3a68d49n@googlegroups.com>
<9384b33b-e35e-40ab-b4e7-54fd6277ea82n@googlegroups.com> <d48ea875-615e-4833-88a8-d73c83d20951n@googlegroups.com>
<c4d0becf-8677-4aed-b72b-bd3df343e59fn@googlegroups.com> <c8b88279-6713-4cfa-a385-1de56b3d91c1n@googlegroups.com>
<0dcafedf-6c4f-43d9-9cd9-98555fef02f4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <89d903f2-a94d-4fe9-b5c7-9fa041442716n@googlegroups.com>
Subject: Re: 'faster' alternative to set filter to
From: timecost...@gmail.com (timepro timesheet)
Injection-Date: Fri, 27 Jan 2023 16:15:53 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2449
 by: timepro timesheet - Fri, 27 Jan 2023 16:15 UTC

On Friday, January 27, 2023 at 8:41:50 PM UTC+5:30, dlzc wrote:
> On Thursday, January 26, 2023 at 10:08:57 PM UTC-7, timec...@gmail.com wrote:
> > On Thursday, January 26, 2023 at 8:53:22 PM UTC+5:30, dlzc wrote:
> > thanks dlzc.
> > back to old dog...new tricks...
> > -it never ends.
> >
> > btw: does chanting 'abracadabra' work.
> If you speak the language, yes it does. That advice was English, but I expected you wanted to UNDERSTAND, not have someone write the code for you.
>
> I'll stop responding to your posts.
>
> David A. Smith
whoa...whoa...
david, you overthink...
i bet, sans you all others believed (rightly) it was in jest...(abracadabra).
'i'll stop responding...' whatever man, but thanks for all your earlier inputs/responses. some really enlightened me.

furthermore, 'have someone write the code for me'. yeah, so what?. nothing remiss if i can get it done 'professionally' from an expert in this forum.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor