PREFACE
One can find a description of the SQLite's "Prepared Statement" functionality here.
SQLite command (SQLite provider for .NET) has a method "Prepare" with the following description:
Summary: Does nothing. Commands are prepared as they are executed the first time, and kept in prepared state afterwards.
QUESTIONS
- In general, does SQLite's Prepared Statement functionality improve overall performance of the query, which is executed over and over again?
- Where the prepared statements are kept? How can I be sure that these prepared statements are in fact being used?
- How can I be sure that Dapper is utilizing these statements? (In my case, I use Dapper to run the same query several hundred times. The query fetches 10k results in each call, based on passed parameters).
EDIT:
Just've found this, which partially answers my question. Non the less, if I need to build the DbCommand my self and then keep it somewhere, how can I use the command with Dapper?