Which is more expensive in ASP.NET?...

Sharky Forums


Results 1 to 3 of 3

Thread: Which is more expensive in ASP.NET?...

  1. #1
    Reef Shark Pestilence's Avatar
    Join Date
    Dec 2000
    Location
    Hickville, USA. :(
    Posts
    353

    Which is more expensive in ASP.NET?...

    To query the database twice and use two DataReaders or to query the database once and use a DataSet? And how would you find this out? TIA!
    God damnit, better graphics != revolutionary gaming! Get it through your skull!

  2. #2
    Reef Shark Pestilence's Avatar
    Join Date
    Dec 2000
    Location
    Hickville, USA. :(
    Posts
    353
    bump
    God damnit, better graphics != revolutionary gaming! Get it through your skull!

  3. #3
    Catfish
    Join Date
    Feb 2002
    Location
    chicago,il,usa
    Posts
    121
    don't know about .net but here is how to do it with asp

    this works better with a large data set


    start = timer '<- returns number of seconds since midnight

    your code here
    your code here
    your code here
    your code here

    response.write timer - start


    prints number of seconds your code took to execute


    hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •