473,388 Members | 1,340 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,388 software developers and data experts.

Best way of using a dataset across pages

Hi,
What's the best way of storing a dataset (+/-1000 rows, 9 columns)?
I'm using a session-variable but this seems to have serious impact on
performance.
It's a shop and I'm using the same dataset (added an 'amount' cell) to
generate a dataview for basket
Most users will use the shop to order at 5pm (about 800 users), so I want to
keep server-stress within acceptable parameters.

Any help or suggestion is appreciated.
Thanks!
Nov 18 '05 #1
2 1462
Hi, Sjaakie Helderhorst,

First, if you will be keeping this information in the memory it will be the
same load if you keep it in the Session or in some other in-memory
object/collection because the information in terms of bytes is the same.

You can consider storing fewer details if the business logic allows it. i.e.
you can leave only the quantity and the id of each product. If it is
possible you will need 16 bytes for each record which makes
16*800(users)*1000(products) which is approximately 12 MB.

Greetings
Martin
"Sjaakie Helderhorst" <di*********@hotNOTmail.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
Hi,
What's the best way of storing a dataset (+/-1000 rows, 9 columns)?
I'm using a session-variable but this seems to have serious impact on
performance.
It's a shop and I'm using the same dataset (added an 'amount' cell) to
generate a dataview for basket
Most users will use the shop to order at 5pm (about 800 users), so I want to keep server-stress within acceptable parameters.

Any help or suggestion is appreciated.
Thanks!

Nov 18 '05 #2
Hello Martin,

Thanks for responding.
12MB seems acceptable to me. I'll give it a try.
Caching dataset on server and just storing UIDs on client-side.

I'm new to ASP.NET (familiar with ASP) so I'm having difficulties achieving
things that weren't any problem with 'old' ASP.
Guess it's just a matter of practice :)

Thanks again.

"Martin Dechev" <de*******@hotmail.com> schreef in bericht
news:eL****************@TK2MSFTNGP12.phx.gbl...
Hi, Sjaakie Helderhorst,

First, if you will be keeping this information in the memory it will be the same load if you keep it in the Session or in some other in-memory
object/collection because the information in terms of bytes is the same.

You can consider storing fewer details if the business logic allows it. i.e. you can leave only the quantity and the id of each product. If it is
possible you will need 16 bytes for each record which makes
16*800(users)*1000(products) which is approximately 12 MB.

Greetings
Martin
"Sjaakie Helderhorst" <di*********@hotNOTmail.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
Hi,
What's the best way of storing a dataset (+/-1000 rows, 9 columns)?
I'm using a session-variable but this seems to have serious impact on
performance.
It's a shop and I'm using the same dataset (added an 'amount' cell) to
generate a dataview for basket
Most users will use the shop to order at 5pm (about 800 users), so I
want to
keep server-stress within acceptable parameters.

Any help or suggestion is appreciated.
Thanks!


Nov 18 '05 #3

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

Similar topics

131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
2
by: Ken Tucker | last post by:
I've read about this issue in many articles across the net... But haven't found a solution. I see all kinds of custom code to perform sorting with datagrids, but my example is so simple, I must...
4
by: David Hearn | last post by:
I am trying to build a few pages basically emulating a wizard that you might find in a Windows product. A few fields to fill out on one page, move to the next, then the next. Finally, at the end,...
1
by: Prince | last post by:
I'm doing the following but I'm not sure if there is a more efficient way to accomplish the same thing. In my Page_Load() method, I accessed a database and stored the information inside a...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
4
by: Dave | last post by:
(My apologies for posting this on two forums. I have just found out the other one was the incorrect location) I am writing a VB.NET 2003 web application to operate on my company's intranet. It...
0
by: masmith | last post by:
What is the best method to get data from the database once and use it on several pages of a web site? In ASP.NET 1.1 I would populate a Dataset in the Global.asax and save it to a Session or...
4
by: Ned Balzer | last post by:
Hi all, I am pretty new to asp.net; I've done lots of classic asp, but am just beginning to get my mind wrapped around .net. What I'd like to do is include some code that tests if a user is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.