New property FetchRow in ZDataSet
Moderators: gto, cipto_kh, EgonHugeist
New property FetchRow in ZDataSet
Hi all
I'm made some changes in ZAbstractRODataset.pas and ZDataset.pas.
The new peoperty FetchRow is added. When value of FethRow is 0 (zero)
then component is working exactly like before (this is the default value). When value of FetchRow is for example 50, max 50 rows is fetched or more, depend on initial visible rows number of DBGrid. On large tables this helps to avoid call of RecordCount and fetching all of rows.
The modifications is in attachment ...
What do you think abaut it ? Is it riscy to use or not ?
I'm made some changes in ZAbstractRODataset.pas and ZDataset.pas.
The new peoperty FetchRow is added. When value of FethRow is 0 (zero)
then component is working exactly like before (this is the default value). When value of FetchRow is for example 50, max 50 rows is fetched or more, depend on initial visible rows number of DBGrid. On large tables this helps to avoid call of RecordCount and fetching all of rows.
The modifications is in attachment ...
What do you think abaut it ? Is it riscy to use or not ?
You do not have the required permissions to view the files attached to this post.
Hi all !
I made patch to ZAbstractRODataset.pas and ZDataset.pas on new
Zeos 6.6.3-stabel. (it is in attachment)
Hou have simply replace this 2 files in src\Component folder,
recompile, and install the library.
Added new property : FetchRow (description is in my erlier posts)
and new method : FetchAll
Pleeeaaazzz test it and include it to final release if posible !!!!
(I use it widthout problems near 6 months !!)
I made patch to ZAbstractRODataset.pas and ZDataset.pas on new
Zeos 6.6.3-stabel. (it is in attachment)
Hou have simply replace this 2 files in src\Component folder,
recompile, and install the library.
Added new property : FetchRow (description is in my erlier posts)
and new method : FetchAll
Pleeeaaazzz test it and include it to final release if posible !!!!
(I use it widthout problems near 6 months !!)
You do not have the required permissions to view the files attached to this post.
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Just to prove we're taking you serious : I just committed this to SVN testing branch. (look here)
This branch will be completely merged to trunk in a few weeks (after the friday event has worked out). If testing doesn't reveal bugs it will be in next stable release. FYI : the test suite didn't fail. First small barrier is taken...
This branch will be completely merged to trunk in a few weeks (after the friday event has worked out). If testing doesn't reveal bugs it will be in next stable release. FYI : the test suite didn't fail. First small barrier is taken...
-
- Fresh Boarder
- Posts: 3
- Joined: 01.12.2009, 11:03
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Arthur,
(Also saw your other post concerning this)
I did commit this to the 6.6-patches branch right now. (rev 738) One way or another it didn't get in yet. Suppose it just overlooked it when merging in other patches.
If you want to use it right away you can use the SVN version of that branch. Otherwise you'll have to wait till the next bugfix release (6.6.6)
Mark
(Also saw your other post concerning this)
I did commit this to the 6.6-patches branch right now. (rev 738) One way or another it didn't get in yet. Suppose it just overlooked it when merging in other patches.
If you want to use it right away you can use the SVN version of that branch. Otherwise you'll have to wait till the next bugfix release (6.6.6)
Mark
-
- Fresh Boarder
- Posts: 3
- Joined: 01.12.2009, 11:03
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
arthurhabraken,
When you used the patch, what component were you using to visualize the data? I'm not sure but the reason might be the grid fetching until eof anyway (instead of doing a recordcount which should take into account fetchrows).
But once more, I didn't try all zeoslib features myself yet. So it may very well being a failure of the fetchrows feature. Please, feel free to check what's wrong and propose a correction.
Mark
When you used the patch, what component were you using to visualize the data? I'm not sure but the reason might be the grid fetching until eof anyway (instead of doing a recordcount which should take into account fetchrows).
But once more, I didn't try all zeoslib features myself yet. So it may very well being a failure of the fetchrows feature. Please, feel free to check what's wrong and propose a correction.
Mark
Need this urgent
I got 6.6.6 and this is not there ... when it is working ????
Give me a date pls.... to i check if i have to try do it by my self....
IVE done with zquery this : select * from table ROWS 1 to 5
So it gives rows 1 to 5 but this doesnt solve the problem .
How can i know how much pages of 5 rows exist or at least how many record have the table without asking all records.
Give me a date pls.... to i check if i have to try do it by my self....
IVE done with zquery this : select * from table ROWS 1 to 5
So it gives rows 1 to 5 but this doesnt solve the problem .
How can i know how much pages of 5 rows exist or at least how many record have the table without asking all records.
where's the code ..