title: Query priority in SQLite
body: <p>When performing a lot of queries in a short time span, I have noticed that it takes quite a bit of time (delay) before some queries are executed. Based on my testing, it seems that some queries are put in a queue and are therefore delayed.</p>
  
  <p>Basically, I am working with two types of queries: (1) queries that need to be executed as quick as possible (they are linked to a timeout timer that cancels the operation when it takes to long) and (2) queries that are executed in the background in an automated way (and over which I have less control).</p>
  
  <p>Is there a way to gain more control over the process of which query gains priority? Can I make sure (using SQLite) that the type 1 queries are executed when they come in and the type 2 queries are put on hold (until the type 1 queries are finished)?</p>
  
  <p>For your information, I am using Gus Mueller's FMDB wrapper to interface with SQLite.</p>