PC Review


Reply
Thread Tools Rate Thread

Caching database problem

 
 
SAM
Guest
Posts: n/a
 
      15th May 2008
Hi,
I tried to browse a table which have 2 million of records.

it's too slow to browse -it directly so i tried to use caching
methods.

(Implementing Virtual Mode with Just-In-Time Data Loading in the
Windows Forms DataGridView Control
http://msdn.microsoft.com/en-us/library/ms171624.aspx)

I implement this sample. i change only the connection to my table.

the problem is repeat the same 16 records because the pagenumber it
set to 16.

if i try to change the page number to 32 or 64... it be come too slow.
if i compare my datagridview with my table im not getting a same
value.

i need help if some one knows better ways to do this it will be
great.
thanks in advance.


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      15th May 2008
Sam,

Most people do this using parts of the database by using SQL and the where
clause, loading a datatable from 2 millions of records in memory will almost
by everyone active in this newgroup as idiotic.

Cor

"SAM" <(E-Mail Removed)> schreef in bericht
news:388ba408-68fa-494b-988e-(E-Mail Removed)...
> Hi,
> I tried to browse a table which have 2 million of records.
>
> it's too slow to browse -it directly so i tried to use caching
> methods.
>
> (Implementing Virtual Mode with Just-In-Time Data Loading in the
> Windows Forms DataGridView Control
> http://msdn.microsoft.com/en-us/library/ms171624.aspx)
>
> I implement this sample. i change only the connection to my table.
>
> the problem is repeat the same 16 records because the pagenumber it
> set to 16.
>
> if i try to change the page number to 32 or 64... it be come too slow.
> if i compare my datagridview with my table im not getting a same
> value.
>
> i need help if some one knows better ways to do this it will be
> great.
> thanks in advance.
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad Microsoft ASP .NET 3 21st Jan 2010 11:13 AM
Enabling local database caching John Microsoft ADO .NET 0 11th Jul 2009 04:20 AM
Page output caching for database driven pages? =?Utf-8?B?QmVuIEZpZGdl?= Microsoft ASP .NET 1 17th Jan 2006 12:45 PM
Showing some activity while caching a database =?Utf-8?B?S2VubmV0aCBQ?= Microsoft ASP .NET 3 7th Nov 2004 12:43 PM
Application Variables / Database Caching - Best Practice Duncan Welch Microsoft C# .NET 2 26th Jul 2004 03:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 AM.