Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Threading in ASP.NET - inputs needed

Threading in ASP.NET - inputs needed

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harleydk
    wrote on last edited by
    #1

    Hello, I'm pondering the use of threading in my asp.net application, and would sure like some input from you guys. Upon a succesful login, details about this login must be written to a database. In itself an operation which has no influence on the application per se. So as to not slow the app down, I'm considering sending this to a thread of its own, as I anticipate a hefty run on the application throughout the two weeks it will be up. Would this make sense to ship off to a seperate thread - or would there be too many complications (such as a maxed out threadpool) deriving from this? I'm not big on threads in asp.net, but hopefully some of you are, and have a piece of advice for me. Thanks in advance, Morten

    A 1 Reply Last reply
    0
    • H harleydk

      Hello, I'm pondering the use of threading in my asp.net application, and would sure like some input from you guys. Upon a succesful login, details about this login must be written to a database. In itself an operation which has no influence on the application per se. So as to not slow the app down, I'm considering sending this to a thread of its own, as I anticipate a hefty run on the application throughout the two weeks it will be up. Would this make sense to ship off to a seperate thread - or would there be too many complications (such as a maxed out threadpool) deriving from this? I'm not big on threads in asp.net, but hopefully some of you are, and have a piece of advice for me. Thanks in advance, Morten

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      I would like to know why do you want to save the details of login. If it is for reporting purpose ( who has logged in since date so so) then i would like to say that rather then making another query to the database for saving the details and making a thread, you should do the following. Query the database for username and password (through a stored procedure) if they are valid (successful login) insert these details in the table you want to save (in the same procedure0 and then return to redirect the user to the successfull login page. Hope it solves your problem.

      Ahsan Ullah Senior Software Engineer

      H 1 Reply Last reply
      0
      • A AhsanS

        I would like to know why do you want to save the details of login. If it is for reporting purpose ( who has logged in since date so so) then i would like to say that rather then making another query to the database for saving the details and making a thread, you should do the following. Query the database for username and password (through a stored procedure) if they are valid (successful login) insert these details in the table you want to save (in the same procedure0 and then return to redirect the user to the successfull login page. Hope it solves your problem.

        Ahsan Ullah Senior Software Engineer

        H Offline
        H Offline
        harleydk
        wrote on last edited by
        #3

        Hello Ahsan, it is indeed for purposes of reporting. I think you indicated the better way to go; thanks for your input. Morten

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups