Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Reuse one session for multiple queries

Reuse one session for multiple queries

When performing multiple queries, establish a connection to the instance before performing any queries and reuse this connection for all of the queries.

For example, if you use a for loop to iterate through multiple queries, establish the connection outside of the for loop, then perform each query within the for loop using the established connection.