On 11/25/06, Johan Compagner <[EMAIL PROTECTED]> wrote:



> the only assumption made is that it is cheaper to retrieve a (total
> count+window) rather then (the entire dataset), which holds true almost
> always. some exceptions being an in-memory database.
>

Or if the window size is sort of the total count, which i guess is also
quite common..
Not all list in a webapplication are big. There are many small onces
And then doing an extra count


dataview is made for big datasets that require paging - that is the biggest
reason for the IDataProvider. if you want to load the entire dataset then
use a listview or refreshingview.

But i thought we test now on IDetachable? So we can implement detach()?
i see a todo in IDataprovider: extend directy IDetachable something for
1.3 also?


right now we do an instanceof check for IDetachable. in 1.2 i didnt want to
change IDataProvider directly, in 1.3 we can break the api.


Because if you have te detach() then you can do one load method that does
the job for size() and iterator()
If you know the list is pretty small.. Then you don't have to do 2
queries.


yes and i showed the code for this in a previous post in this thread.

-igor

johan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to