Jump to content

Recommended Posts

Posted

How can I handle big dataset in TUniDBGrid with 100k+ records. For now I have FetchAll prop ON, but it it slow. how can  I handle this type of situacion?

Posted

First I don't see the use of browsing 100k+ records in a DBGrid. I don't think the result is relevant for anything.

Why don't you try some quey that returns a relevant result set, like 100+ records that mean something.

Some other solution would be a query like "select first 100 skip <n*100>  from ........ order by id" , save the position

in some varible and with some buttons go forward or backward as needed recalculating the "n".

  • Upvote 1
  • 3 weeks later...
Posted

If I would then fetch 100 - 1000 records, then I should I implement logics for next page and last page. But how would I then filter and sort records. Now I use FDQuery.Filter and FDQuery.Indexes for sort.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...