Search found 281 matches: scopes

Return to advanced search

Re: Count xbrowse records

... Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and index expressions. So, 1) SET FILTER TO !DELETED()? OrdKeyCount() 2) INDEX ON RECNO() TAG RECS FOR !DELETED() ...
by wartiaga
Fri Feb 23, 2024 4:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: Count xbrowse records

... Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and index expressions. So, 1) SET FILTER TO !DELETED()? OrdKeyCount() 2) INDEX ON RECNO() TAG RECS FOR !DELETED() ...
by Silvio.Falconi
Fri Feb 23, 2024 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: Count xbrowse records

... Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and index expressions. So, 1) SET FILTER TO !DELETED()? OrdKeyCount() 2) INDEX ON RECNO() TAG RECS FOR !DELETED() ...
by nageswaragunupudi
Fri Feb 23, 2024 4:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: Is Xbrowse Barget still intended to filter data

... filtering. This helps us to GET some value and it is for us to do whatever with that Value, whether we use for filter or for seek or for setting scopes or for whatever purpose. Do not underestimate filters. Scope has limited scope. What I mean is scopes are not useful for every occassion. Most ...
by Marc Venken
Sat Nov 05, 2022 4:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is Xbrowse Barget still intended to filter data
Replies: 2
Views: 205

Re: Is Xbrowse Barget still intended to filter data

... filtering. This helps us to GET some value and it is for us to do whatever with that Value, whether we use for filter or for seek or for setting scopes or for whatever purpose. Do not underestimate filters. Scope has limited scope. What I mean is scopes are not useful for every occassion. Most ...
by nageswaragunupudi
Sat Nov 05, 2022 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is Xbrowse Barget still intended to filter data
Replies: 2
Views: 205

Re: show only some records on Xbrowse ( nRecords, year)

Antonio Linares wrote:Dear Silvio,

SET FILTER is very slow

Using an index with scopes should be better


with tdatabase I not Know How make it


IF nCount > 0
nInit:=oDbf:lastrec()-nCount
nEnd:= oDbf:lastrec()
ENDIF

oDbf:setscope(0,nInit)
oDbf:setscope(1,nEnd)


then for the year ?
by Silvio.Falconi
Tue Sep 27, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 623

Re: show only some records on Xbrowse ( nRecords, year)

Dear Silvio,

SET FILTER is very slow

Using an index with scopes should be better
by Antonio Linares
Tue Sep 27, 2022 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 623

Re: Xbrowse bBargetAction and the filtering function for it

Due to several post, I indeed started to use Scopes a lot more, and they are pretty fast.. In this case, it is the bBargetAction that i'm looking into. Since Mr. Rao made it possible to use a function of ourselves, maybe there I have to changes ...
by Marc Venken
Tue Jul 05, 2022 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse bBargetAction and the filtering function for it
Replies: 4
Views: 834

Re: Xbrowse bBargetAction and the filtering function for it

James

You are correct that scopes are faster for DBFCDX .. filters are even faster in Sql ...

Rick Lipkin
by Rick Lipkin
Fri Jul 01, 2022 9:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse bBargetAction and the filtering function for it
Replies: 4
Views: 834

Re: Xbrowse bBargetAction and the filtering function for it

Marc, There have been a number of recent forum discussions about filters vs scopes. The basics are that with a filter you have to read every record in the database, but with a scope you only read the records within the scope. For example, you are using a browse ...
by James Bott
Fri Jul 01, 2022 8:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse bBargetAction and the filtering function for it
Replies: 4
Views: 834

Re: Copy structure or create new file dbf

... of the field ? Yes, but I would do this: Save the current recno() If they exist, save the database's state (current index and the top and bottom scopes and the current recordNo()). set the index and scopes you need to use. Do a gotop(). Do whatever... Then at the end of the routine, restore the ...
by James Bott
Thu Jun 09, 2022 7:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy structure or create new file dbf
Replies: 8
Views: 600

Re: dbfntx very slow with 2+ users

... - Time for filter 23.13 seconds - Time for scope 0.32 seconds Thus filtering took 23.13 / 0.32 = 72 times longer than a scope. And the winner is, scopes!
by James Bott
Fri Apr 08, 2022 10:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbfntx very slow with 2+ users
Replies: 41
Views: 6815

Re: dbfntx very slow with 2+ users

If any of you are using filters this will be incredibly slow over a network. You need to use scopes instead.

Also, as someone else mentioned, you need to open only the databases needed for the routine, then close them when done.
by James Bott
Fri Apr 08, 2022 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbfntx very slow with 2+ users
Replies: 41
Views: 6815

Re: ERRORES EN EL VOLCADO DE DATOS EN UNA RED LOCAL

... con muy buenos resultados con tablas chicas, con tablas mas grandes se pone muy lento y con los indices CDX he tenido resultados erraticos usando Scopes y Filters (por ahi soy yo que comento algun error), vi el LetoDbf y veo que tiene mas funciones agregadas voy a probarlo a ver que pasa pero ...
by rterraz
Wed Jan 26, 2022 12:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ERRORES EN EL VOLCADO DE DATOS EN UNA RED LOCAL
Replies: 13
Views: 882

DBCMD/2001 Workarea not in use: ORDKEYNO

... la red, o con la aplicacion en si misma. Quizas el problema surge porque estoy ejecutando el codeblock del bchange de xbrowse y alli utiliza scopes... si se les ha presentado este error y me pueden ayudar se los agredecere. Applicación =========== Path and name: Y:\winfar64.exe (32 bits) ...
by mterraz
Thu Jan 20, 2022 2:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: DBCMD/2001 Workarea not in use: ORDKEYNO
Replies: 3
Views: 363
Next

Return to advanced search