<div dir="ltr"><div><div><div><div><div><div>I'm working on a QGIS plugin where I need to commit changes every time a new feature is added in an SQLite database. I was using <br><br></div>layer.startEditing()<br>layer.addFeature(feature, False) OR layer.addFeature(feature, True)<br>
</div>layer.commitChanges()<br><br></div>After about 10 to 15 features the system began to slow significantly with periods of 100% CPU usage increasing until the system became unusable.<br><br>To assess if this was my code or something in QGIS 2.4 on Debian Wheezy, I created a simple point shapefile and added points and saved each time (both trying just saving and stopping editing and saving) and again at about 10 to 15 points the system failed.<br>
<br></div>My request is simple.<br></div>1. Can someone else confirm that this happens on other systems<br></div>2. If so, is there some way around this until this fixed?<br><br>Thanks<br clear="all"><div><div><div><div><div>
<div><div><div><br></div><div>TSW<br></div><div>-- <br><div dir="ltr"><div><div>Trevor Wiens<br>Apropos Information Systems<br><a href="http://aproposinfosystems.com" target="_blank">aproposinfosystems.com</a><br>Calgary, Alberta<br>
</div>Ph. 403-973-5901<br></div>Fax 780-666-4580</div>
</div></div></div></div></div></div></div></div></div>