I am writing a software that requires me to prepare statements and set the values, execute the query and get results within a loop. This loop might have over 7,000 cycles. If I use simple statements rather than prepared statements, will the execution speed change greatly?
Here is the pseudo code
- Prepare Statements
- Get a list from somewhere
- Iterate through the list
- get the prepared statements and do some db querying and close the new resources like result sets.
- populate a map using the result and values from the initial list
Thanks.