1

Is there a performance gain when using bind variables when working with SQLite on Android? Can SQLite reuse parsed queries (like Oracle does) and thus save the SQL parsing time?

Thanks.

Alex

1
  • I do not think that it can save the parsed query because AFAIK it does the parsing each time when ever you make any query, as it does the SELECT operation and access each column. Commented May 15, 2011 at 10:32

1 Answer 1

1

Yes, binding variables in SQLite will give you a performance boost, as you can prepare/compile the statement a single time, then re-use it with bound variables in each iteration of your select/insert/update.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.