it might be a bit off topic but i am looking for some rules how to optimize the speed of a web service. At the moment i am getting a response time of 12 to 18 seconds. The web service connected to 1 database but gets data from 3 different tables. I noticed that if i connect to 1 table my speed is about 2 seconds to get all the data.
Is there some documentation available that can help me on my way to optimize perhaps the web service (or even the database) to gain most of it's speed?
Some questions in this case:
- connecting to multiple tables makes a web service slow?
- if so, would it be better to cut up the web service and connect to each table separately (testing showed me that it took 5 seconds in total)?
- is there another way (instead of point 2) to speed all up this would mean for me also redesigning the code that handles the response of the WS and will set me back a few days in development.
thanks