Dot Net Fluke: Getting by on C# for iSeries RPG Developers

Useful tutorials on C# and .NET for RPG iSeries AS/400 developers. Brought to you from the folks at AranRock Consulting

5/22/10

Fast Paging a .NET grid from an iSeries table

I recently wrote a simple grid view ASP.NET web application for a client displaying late paying customers. The SQL behind it though had to summarize and group across several different tables on the iSeries. The program worked well but the client complained that the app took too long to start up.
To speed things up, I put all the SQL into a stored procedure used a scrollable cursor and fetched 22 records at a time.  FETCH NEXT FROM C1 FOR 22 ROWS
I shouldn't have done a select All - it took too long and left the customer hanging even though there wasn't much data behind it. 

2 Comments:

At October 26, 2010 at 3:49 PM , Blogger cjkoontz said...

So, what's the decision point on whether to link data directly to a .NET grid versus doing the coding to display the data?

 
At August 17, 2012 at 10:12 PM , Anonymous net performance said...

I am designing a database and I would like to normalize the database. In one query I will joining about 30-40 tables. Will this hurt the website performance if it ever becomes extremely popular?

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home