title: Why is PostgreSQL so slow on Windows?
body: <p>We had an applicationg running using MySql. We found MySql was not suitable for our app after we found that it didnt support some of the GIS capability that PostGIS has (note: mysql only supports minimum-bounding rectangle GIS search).</p>
  
  <p>So we changed our DB to PostgreSQL. We then found out that Postgresql 8.2 running on Windows is so much slower compared to Mysql 5.1. By slower, I mean at roughly 4-5 times slower.</p>
  
  <p>Why is this? Is there something in the configuration that we need to change?</p>
  
  <p>I found some comments from other websites such as <a href="http://archives.postgresql.org/pgsql-performance/2005-02/msg00316.php" rel="noreferrer">this</a>:</p>
  
  <p><strong>UPDATE:</strong> We found that the cause of the slowness is due to the BLOB that we are inserting into the DB. We need to be able to insert BLOB at a sustained rate of 10-15 MB/s. We are using libpq's lo_read and lo_write for each BLOB we are inserting/reading. Is that the best way? Has anyone used Pgsql for inserting large BLOB at a high rate before?</p>
  
  <p>EDIT: I heard that PgSql just recently got ported to Windows. Could this be one of the reasons?</p>