CollectionDataSource implementation performance


A question about CollectionDataSource implementation. In the sample provided here, the validateAll() method iterates on all items.

Does it mean it iterates on all entities of the database ? Or all entities currently displayed in the table (e.g a page) including new entities that were created ?


Hi Mike,

In fact, validateAll iterates only items already loaded / added to the datasource and shown in the table. So, there is no performance impact during this operation, since we use paging approach and the datasource contains only one page of data, say 100 ± rows.

Was thinking that way, thanks Yuriy.