Should we create a transaction each time we want to query a database? In my scenario, I have large number of entries to add to the database in one go, and then I have to support some random queries. Should I create a transaction object for each add to the database and query?
Should we create a transaction each time we want to query a database? In my scenario, I have large number of entries to add to the database in one go, and then I have to support some random queries. Should I create a transaction object for each add to the database and query?