title: Performance problems using Sqlite function InitSpatialMetaData() to create a Spatialite database through Python
body: <p>I'm creating a dynamic database through <a href="/questions/tagged/python" class="post-tag" title="show questions tagged &#39;python&#39;" rel="tag">python</a>. The code above work's fine but when I use the function <b>InitSpatialMetadata()</b> in query, the database is created very slowly. <br>
  The file starts with 0kb and it's increases something like 2-5kb per second until it is completely create. All the process takes about 2-3 minutes to complete and the final file has 3mb.
  Someone already had this problem?</p>
  
  <pre><code>import sqlite3
  db = sqlite3.connect('C:/test.sqlite')
  cursor = db.cursor()
  cursor.execute("SELECT InitSpatialMetadata()")
  </code></pre>