Domanda

I have a Listview with LiveBindings to a DB. I have FetchOptions RowSetSize set to 20.
Query:

Select * from "MyDB" where "Name" LIKE "%&FieldList%' AND "Tag'=1

If I set FetchOptions to onDemand LiveBindings works but I get 3000 items and it is very slow.

If I set FetchOptions to Manual LiveBindings does not work but I can, through FetchNext, get my 20 items. But I have to populate the ListView myself.

So, is there any way to have onDemand but only get 20 items at a time?

Nessuna soluzione corretta

Altri suggerimenti

Alternatively you can use rows to limit the query:

select * from employee rows 10 to 20
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top