BROWSE Vs GRID

HMG en Español

Moderator: Rathinagiri

User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: BROWSE Vs GRID

Post by andyglezl »

AUGE_OHR wrote: Tue Apr 20, 2021 10:48 pm hi,

i wonder why we talk about BROWSE / GRID "Speed" when Problem is "that" Index !

so it make no Sence to me to talk about BROWSE / GRID when Index is "corrupt"
Yo solo trate de ayudar con la prueba que esta haciendo Salinetas, no me puse a ver el porque...
*--------------------------------------------------------------------------------------------------------------------------
I just tried to help with the test that Salinetas is doing, I did not see why ...
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: BROWSE Vs GRID

Post by andyglezl »

AUGE_OHR wrote: Tue Apr 20, 2021 10:48 pm hi,

i wonder why we talk about BROWSE / GRID "Speed" when Problem is "that" Index !

i have check DBF for DELETED and found only 2 Records so it is not "the" Problem
than i have create "new" Index with your Code PROC _CreaDBF()

you do REPLACE FIELD with active (!) Index so it will change Position in Order
than you use DBSKIP but that is NOT next Record.

after EOF() you do not "close Index" but did a new Index ON (active Index ?)
have you test your Index with "other" like Cl*pper DBU ?

so it make no Sence to me to talk about BROWSE / GRID when Index is "corrupt"


Queda la duda de porque el BROWSE+INDEX (siendo el mismo índice) y el GRID+INDEX no funcionan igual... :(
*----------------------------------------------------------------------------------------------------------------------------------------
The doubt remains as to why the BROWSE + INDEX (being the same index) and the GRID + INDEX do not work the same ... :(
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: BROWSE Vs GRID

Post by mol »

this measurement should be done with windows cache turner off.
Or - testing application should be closed after every test
User avatar
SALINETAS24
Posts: 667
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Contact:

Re: BROWSE Vs GRID

Post by SALINETAS24 »

AUGE_OHR wrote: Tue Apr 20, 2021 10:48 pm hi,

i wonder why we talk about BROWSE / GRID "Speed" when Problem is "that" Index !

i have check DBF for DELETED and found only 2 Records so it is not "the" Problem
than i have create "new" Index with your Code PROC _CreaDBF()

you do REPLACE FIELD with active (!) Index so it will change Position in Order
than you use DBSKIP but that is NOT next Record.

after EOF() you do not "close Index" but did a new Index ON (active Index ?)
have you test your Index with "other" like Cl*pper DBU ?

so it make no Sence to me to talk about BROWSE / GRID when Index is "corrupt"
Hola Auge,

Igual no he entendido tu mensaje, disculpa pero mi Inglés es malo (GOOGLERIANO). No entiendo bien el INGLES, espero no equivocarme en la respuesta. :oops:

El INDEX no es el problema. La aplicación permite hacer un "BROWSE" o "GRID" solo a la DBF, y los tiempos de respuesta son practicamente los mismos, solo cambia cuando se activa/desactiva la clausula SET DELETE ON/OFF

El codigo PROC _CreaDBF() se utilizo en su momento para agrandar el tamaño de la DBF, solo para eso. No tiene nada que ver con la aplicación, tanto la DBF con su INDEX son OK y es posible la coexistencias de claves duplicadas, PARA ESTE EJEMPLO el PROC _CreaDBF() NO TIENE IMPORTANCIA.

En cuanto al "CLOSE INDEX", como puedes observar en cada procedimiento, antes del USE hay un "DBCLOSEALL()" y cuando finalizo también hay otro "DBCLOSEALL()"para evitar posibles corrupciones. No puedo CERRAR después de un EOF(), ya que se supone que el usuario en un programa real, debería de poder editar el registro, modificarlos, eliminarlo, etc.

andyglezl wrote: Wed Apr 21, 2021 1:25 am
.../...

Queda la duda de porque el BROWSE+INDEX (siendo el mismo índice) y el GRID+INDEX no funcionan igual... :(
*----------------------------------------------------------------------------------------------------------------------------------------
The doubt remains as to why the BROWSE + INDEX (being the same index) and the GRID + INDEX do not work the same ... :(
Efectivamente Andy, el GRID da la sensación que se atraganta cuando trabaja con DBF.

Por eso me gustaría que alguien me sacara de dudas y probase la aplicación en RED. Yo no dispongo de esa posibilidad
Creo que sería interesante para todos saber los tiempos del 1MM de registros en el BROWSE y como es su navegación, vs GRID VIRTUAL con 10000 registros, (las otras opciones del GRID se descartan). :ugeek:

Porque ante la pregunta ... ¿Es necesario cargar 1MM en el BROWSE o 10M Registros GRID VIRTUAL?
la respuesta por ahora es : DEPENDE DEL TIEMPO DE CARGA y NAVEGACIÓN
Pero nadie aporta ese dato :cry:

Gracias a todos de nuevo
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no. :shock:
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: BROWSE Vs GRID

Post by AUGE_OHR »

hi,

i do understand that you ask why is BROWSE + INDEX different to GRID + INDEX !
for this we must understand how BROWSE or GRID "get Data from DBF" to display it.

---

when look into \SOURCE H_BROWSE.PRG you will seek Function "for Navigation"
BROWSE seems to work like TBrowse with "Skipper" while GRID use in \SOURCE\H_GRID.PRG

Code: Select all

FUNCTION GridSetPhysicalRecord()
   ...
   // if Set Delete is On, dbeval() not process deleted records
   DBEVAL( { || nLogicalRecord ++, nPhysicalRecord := RECNO() }, NIL, { || nLogicalRecord <> nLogicalRecno } )
---

Question : can i "switch" On/Off "Rushmore" or "Smartfilter" / "Optimize" for Index under harbour :?:

as i can say it make a Difference to use "Skipper" or "logical/physical" Record Number.
have fun
Jimmy
User avatar
edufloriv
Posts: 237
Joined: Thu Nov 08, 2012 3:42 am
DBs Used: DBF, MariaDB, MySQL, MSSQL, MariaDB
Location: PERU

Re: BROWSE Vs GRID

Post by edufloriv »

Hola Salinetas,

Te envio el test de los tiempos. Lo realicé en una pequeña red que tengo en mi casa de 3 pcs.

El test-1 lo hice en modo local, haciendo de servidor. El test-2 y test-3 se realizaron en red ejecutando desde la pc-1 (no se copió el ejecutable a las pc-1 y pc-2).

Para cada test se cerró y ejecutó nuevamente el programa.

Espero te sirva, saludos y un fuerte abrazo.
Attachments
test-grid.zip
(425.42 KiB) Downloaded 97 times

Eduardo Flores Rivas


LIMA - PERU
Post Reply