473,414 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Improving perfromance

Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance
Mar 26 '06 #1
11 1270
On Mon, 27 Mar 2006 19:39:32 +0430, "perspolis" <re*****@hotmail.com> wrote:
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance

This sounds like a design issue to me.

Who is your user that needs to visually process 100k or 1m rows of data
visually? If the user could visually process each row in one second it would
take her 27.8 hours to view the content of 100,000 rows. For one million rows
it would take 277.8 hours to view the rows in the grid. Of course I didn't add
in lunch time, breaks or sleep time.

My suggestion is that you consider letting the user tell you some sort of
criteria for the data they wish to view and limit the return to between 25 and
50 rows.

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Mar 26 '06 #2
Do you bind a dataset to your grid?
Instead of DataAdapter, you may use datareader, if you do not use update
etc. features in the grid.

Burak SARICA
perspolis yazmış:
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance

Mar 26 '06 #3
yes I'm using databinding..

"Burak SARICA" <bs*****@hotmail.com.tr> wrote in message
news:eD**************@TK2MSFTNGP14.phx.gbl...
Do you bind a dataset to your grid?
Instead of DataAdapter, you may use datareader, if you do not use update
etc. features in the grid.

Burak SARICA
perspolis yazmış:
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance

Mar 26 '06 #4
Go back and read otis' comments. You have a design issue that needs fixing
before anything else.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"perspolis" <re*****@hotmail.com> wrote in message
news:en**************@TK2MSFTNGP14.phx.gbl...
yes I'm using databinding..

"Burak SARICA" <bs*****@hotmail.com.tr> wrote in message
news:eD**************@TK2MSFTNGP14.phx.gbl...
Do you bind a dataset to your grid?
Instead of DataAdapter, you may use datareader, if you do not use update
etc. features in the grid.

Burak SARICA
perspolis yazmış:
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance


Mar 26 '06 #5
If you must handle so many records, can you not use some form of data
paging, either by using ADO's built-in paging mechansim or if you're
using stored procs get them to do the paging for you?

Are you only bringing back the most necessary number of columns?

Is your SQL query optimised to use all possible indexes rather than
doing table scans?

Mar 27 '06 #6
HI,

IMO it's a very bad idea to show that huge amount of info in a single page,
do you really need all that data?

What if you use paging, ni this way you get from the DB the 25 or 30 rows
you will show in a single page only.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"perspolis" <re*****@hotmail.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance

Mar 27 '06 #7
I have a report part than user can select a range of dates.
then if he/she selects a large range I'll have many rows to show to user..
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eV**************@TK2MSFTNGP09.phx.gbl...
HI,

IMO it's a very bad idea to show that huge amount of info in a single
page, do you really need all that data?

What if you use paging, ni this way you get from the DB the 25 or 30 rows
you will show in a single page only.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"perspolis" <re*****@hotmail.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance


Mar 27 '06 #8
Hi,

Even so, dumping 100K rows in a single page is not helpful at all. Just page
it and shows a reasonable amount ( 100 or less) per page.

IF this is historic data (which does not change during queries) it's even
easier to have them returned in chunks.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"perspolis" <re*****@hotmail.com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I have a report part than user can select a range of dates.
then if he/she selects a large range I'll have many rows to show to user..
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:eV**************@TK2MSFTNGP09.phx.gbl...
HI,

IMO it's a very bad idea to show that huge amount of info in a single
page, do you really need all that data?

What if you use paging, ni this way you get from the DB the 25 or 30
rows you will show in a single page only.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"perspolis" <re*****@hotmail.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance



Mar 27 '06 #9

"perspolis" <re*****@hotmail.com> wrote in message
news:eL**************@TK2MSFTNGP14.phx.gbl...
I have a report part than user can select a range of dates.
then if he/she selects a large range I'll have many rows to show to user..


Just select "TOP 100 ...." and tell the user that you've trimmed the results
if you get them all (I know it is not strictly correct if there are exactly
100 but it's close enough).
Mar 27 '06 #10
On Tue, 28 Mar 2006 19:10:12 +0430, "perspolis" <re*****@hotmail.com> wrote:
I have a report part than user can select a range of dates.
then if he/she selects a large range I'll have many rows to show to user..
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eV**************@TK2MSFTNGP09.phx.gbl...
HI,

IMO it's a very bad idea to show that huge amount of info in a single
page, do you really need all that data?

What if you use paging, ni this way you get from the DB the 25 or 30 rows
you will show in a single page only.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"perspolis" <re*****@hotmail.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
Hi all
I have a application that connects to a sql server database.
I have many rows about above 100,000 records and when I want to fill my
sqlDataAdaptor and show results in a grid it takes above 15s,how Can I
improve this ??
Is this a good way to fill million of records in fewer time??

thanks in advance


Surely there is some additional criteria you can use to pare the results down. I
think a user interview in depth is in order here.

Even paging is a bad idea. I am currently supporting a product with only 200k
records, but the people who designed it set the paging at 25 rows per page and
some of the queries will return hundreds of rows. It's a very slow web
application and the users complain all the time about it's slowness, but
management will not change it because they paid an outside vender so much for
it.

Reconsider your design. No user will be happy to scroll or page through even a
few hundred rows if you don't give them a better way of choosing the criteria
for the rows returned. Think about how much labor your customer or employer
will have to pay their employees to visually process such a list. make the
computer do the work. That's what it's for.

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Mar 28 '06 #11
Hi,

Even paging is a bad idea. I am currently supporting a product with only
200k
records, but the people who designed it set the paging at 25 rows per page
and
some of the queries will return hundreds of rows. It's a very slow web
application and the users complain all the time about it's slowness, but
management will not change it because they paid an outside vender so much
for
it.


Paging is not a bad idea, it's the way to go . IMO your app is getting all
the records from the DB and doing the paging in the datagrid. So you are
transfering huge amounts of daa frmo your DB anyway. But if you set the
paging logic in the DB you only transfer 25 records to the web app and
everything is MUCH faster.

I have such a solution in place and it does work nicely.


Mar 28 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wensheng | last post by:
Hi, I wrote a small template engine called spytee. Like any template enigne, it take a text(html) template file as input, process the variable tags in the file, and display the resulted text. The...
1
by: Brian Basquille | last post by:
Hello all. Have been working on the Air Hockey game on and off for a couple of weeks now.. but have had plenty of other assignments to keep me busy along with it. But i would like some...
1
by: Robin | last post by:
For an asp.net project that is deployed to a load balanced web servers, are there any performance changes that can be made in .Net runtime or IIS 6? Also are there any additional tips for...
2
by: Irfan Akram | last post by:
Hi Guys, I am in search of some innovative ideas in improving the interface of Online Marking System. At the moment it has some good functionality, but lacks a professional interface. Is...
1
by: Larry Neylon | last post by:
Hi, I'm working on a VBScript application on IIS6 and I'm looking for some advice about the best way of replacing or improving session variable usage. The application is in a secure extranet...
1
by: mjheitland | last post by:
Hello, does anyone know if an update is available (or at least planned) for the much cited standard reference IMPROVING .NET APPLICATION PERFORMANCE AND SCALABILITY? link:...
3
by: psbasha | last post by:
Hi, Is there any tools available to check the Perfromance /Quality of the applications developed using Python?.Any quality tools helps in testing the application. Thanks in advance Shakil
10
by: Jo | last post by:
Hi there: I m wondering what can I do to improve my code, everytime I am coding I feel like it could be done better. I started on c# a good months ago and feel conformtable but sometimes I Need...
3
by: Jeff | last post by:
..NET 2.0 I've created a window consisting of a treeview control and a tabcontrol. When a leave in the treeview is clicked then the code should check if the specific tabpage already exists in...
32
by: Pedro Borges | last post by:
Hi guys, Is there a way to improve the interpreter startup speed? In my machine (cold startup) python takes 0.330 ms and ruby takes 0.047 ms, after cold boot python takes 0.019 ms and ruby...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.