Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #11  
Old 05-09-2007, 07:47 PM
ZarrinPour ZarrinPour is offline
Senior Member
 
Join Date: Jul 2003
Posts: 227
Default RE: DBGrid with a lot of Records....Performance issue

Hi
As i said earlier i'm using ADODataset with SqlServer 2000
As you know REQUERY() function will refresh all records in adataset BUT i need somehow to refresh only one record of dataset .... is there any trick??? using REQUERY or (Close/Open) takes a lot of time to populate recors in the DBGrid.

AnyWay...Thanks all of you for following my problem. :-)
Regards.
Reply With Quote
  #12  
Old 05-11-2007, 12:04 PM
i4get2 i4get2 is offline
Member
 
Join Date: Jul 2003
Posts: 69
Default RE: DBGrid with a lot of Records....Performance issue

If this hasnt been answered Ill throw in my 2 cents. First are you setting Indexes on the SQL server? Are you also setting the cursor to use the server? These things help speedup all the searches and refreshes.
Reply With Quote
  #13  
Old 05-11-2007, 08:23 PM
ZarrinPour ZarrinPour is offline
Senior Member
 
Join Date: Jul 2003
Posts: 227
Default RE: DBGrid with a lot of Records....Performance issue

Hi i4Get2
Thanks for ur help
You said
First are you setting Indexes on the SQL server?
Are you also setting the cursor to use the server?

If you don't mind could you please point me on a right direction on how could i do or check these settings(Index/Cursor) in sqlserver2000?

I Appreciate your help.
Kind Regards.
Reply With Quote
  #14  
Old 05-12-2007, 02:43 AM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 4,764
Default RE: DBGrid with a lot of Records....Performance issue

Why don't edit the record in the query and post it back to the query so you don't have to refresh the query? Check my first post to you in this thread.

Regards,
Abdulaziz Jasser
Reply With Quote
  #15  
Old 05-14-2007, 03:28 AM
i4get2 i4get2 is offline
Member
 
Join Date: Jul 2003
Posts: 69
Default RE: DBGrid with a lot of Records....Performance issue

Sorry just now getting back to you. I asked these questions when I was at work. Yes on SQL server if you open the enterprise manager and go to the database then to the table that you are running the query on right click on the table then choose design table. generally you will want to make a index on the primary key and then the field you are running your query on. you can do this by choosing the manage indexes from the toolbar at the top.Now for the cursor location. In delphi if you click on the Adoquery1 then in your object inspector choose the cursorlocation to use clUseServer. Now make sure your table is using the same datasource that you are running the query on. Also instead of doing a refresh if you do the edit with the query you will not need to refreash the whole table. I would also recomend that you only select like top 200 records on the first initial query for the table so you are not loading the whole table records in the grid.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.