Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Speed comparison: Additional webservice parameters Vs database query by Webservice

Options
  • 18-06-2013 1:11pm
    #1
    Closed Accounts Posts: 2,743 ✭✭✭


    Using WCF and SQL Server 2008 with a Silverlight project. I'm moving code from the Silverlight application to a Web service. Response speed is a consideration.
    I can pass data as parameters, or retrieve the data from the database.
    It might boil down to:
    • 3n simple database queries, and parameters size of Web service increased by n GUIDs.
    or
    • Parameter size increased by collection of n * (1-5 objects consisting of 5 doubles). No database access.
    Where n is 1 or more (unlikely to be above 10 I think).
    I would expect that the former (adding database queries and reducing parameter size) would be the better option? Correct?


Comments

  • Registered Users Posts: 2,018 ✭✭✭Colonel Panic


    Not enough info for anyone to give a reasonable answer. Why not actually profile this?


Advertisement