[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
|
"Mr. Burns" <Mr._Burns@xxxxxx> wrote in message
news:dj24t9$rso$1@xxxxxxxxxxxxxxxxxxx
> Hello Joe,
>
> thanks for reply, I have tables that are in the beginning very small, but
> then every day it will grow for arround 1000-2000 records.
> You wrote: 'You may need to have some local cacheing'
> Exactly that I wanted to know, I asked this in my prevous mail. HOW do I
> do the caching, should I use a vector, should I use a 2nd table where I
> store the records within the table items, and if needed I copy them to the
> virtual table?
Caching per se is quite straight forward. For example, you can cache
50 rows starting from, say, 200.
1. If a row requested is in the cache, then return from the cache.
2. If a row requested is before the starting row, then refill the cache
with 50 preceding rows ending with the row requested. and then
return the row from cache.
3. If a row requested is after the last row in the cache, then refill
the cache with the next 50 rows from the row requested.
But you should know the exact number of rows and able to retrive
rows using indices.
>
> Thanks for further discussion.
>
>
- References:
- [news.eclipse.platform.swt] Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.
- [news.eclipse.platform.swt] Re: Huge table, records, scrolling, etc.