FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posts: 88
Joined: Wed Apr 28, 2010 06:34 PM
Re: FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posted: Mon Mar 27, 2017 01:13 PM

0.998 seconds here!

Great work, Rao!

PostGree +1

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posted: Mon Mar 27, 2017 05:17 PM

Nageswaragunupudi,

Fantastic !

Simple code, very fast and easy, congratulations.

A couple of questions.

1.- "oCn:RecSet( "custbig", 1000 )" is the pagination size ?
2.- Do you need a id or key unique, no ? then you need define this special field. This is true ? Or how it works?

Great !

edited: (field married don't update)

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posted: Mon Mar 27, 2017 05:33 PM

1.- "oCn:RecSet( "custbig", 1000 )" is the pagination size ?
2.- Do you need a id or key unique, no ? then you need define this special field. This is true ? Or how it works?

1000 is the pagination size.
We use this syntax SELCT.... FROM table ORDER BY <uniquekey> LIMIT ? OFFSET ? internally. LIMIT ? OFFSET ? is more reliable than LIMIT ?,?

The recommended usage is going to be oCn:RecSet( <table/sql>, -1 ).

RecSet (also Rowset) method automatically ascertains the primary or unique field to construct the ORDERY BY expression.

Existing oCn:RowSet() also operates on a similar principe. But in this case, RowSet keeps expanding automatically on demand, whereas in case of RecSet() navigation is by paging. It is the way the paging is managed that gives experience of continuous navigation of the entire table.

Note:
RowSet() is already a fully developed class
RecSet() is under develoment. In 17.03 it can be used with limitations and by 17.04 it will mature fully.
Regards



G. N. Rao.

Hyderabad, India
Posts: 23
Joined: Mon Jun 06, 2016 08:38 PM
Re: FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posted: Mon Apr 03, 2017 06:16 PM
nageswaragunupudi wrote:
Is there any chance for 'FWPOSTGRESDB' ? :-)

As of now, we do not have any plans.
We would consider if we see many users interested in it.




I have interest in the class for FWPOSTGRESDB, currently use third-party class.
Augusto Gomes /Suprisystem Informática - Fivewin 16.08 - xharbour 123 - BCC70 - DBFNTX e PostGreSql
Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
Re: FWMARIADB 17.03 Fast Loading/Browsing Very Large Tables
Posted: Tue Apr 04, 2017 09:37 AM

Very Good,

I load and browse the 1.000.000 records database in 0.94 seconds in a slow internet connection.
Congratulations!!!!

An excelent work!!

Saludos/Regards,

José Murugosa

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"

Continue the discussion