Reuse a cursor instead of a conn.execute for better performance
Reuse a cursor instead of a conn.execute for better performance

In some limited testing it was ~10% faster. Every little bit helps right?

Change-Id: Ide55b7600d625ad151daca73fbdd8684f0f9e7f8

matthewoliver/swift,IPVL/swift-kilo,sarvesh-ranjan/swift,daasbank/swift,mjzmjz/swift,bouncestorage/swift,notmyname/swift,shibaniahegde/OpenStak_swift,gold3bear/swift,dpgoetz/swift,maginatics/swift,smerritt/swift,Em-Pan/swift,openstack/swift,smerritt/swift,tipabu/swift,bradleypj823/swift,prashanthpai/swift,eatbyte/Swift,swiftstack/swift,takeshineshiro/swift,takeshineshiro/swift,zackmdavis/swift,swiftstack/swift,openstack/swift,smerritt/swift,Akanoa/swift,zackmdavis/swift,psachin/swift,psachin/swift,hurricanerix/swift,redhat-openstack/swift,tipabu/swift,Seagate/swift,clayg/swift,hbhdytf/mac,hurricanerix/swift,bkolli/swift,openstack/swift,bradleypj823/swift,nadeemsyed/swift,anishnarang/gswift,swiftstack/swift,wenhuizhang/swift,larsbutler/swift,dpgoetz/swift,matthewoliver/swift,notmyname/swift,revoer/keystone-8.0.0,nadeemsyed/swift,sarvesh-ranjan/swift,hbhdytf/mac2,anishnarang/gswift,IPVL/swift-kilo,smerritt/swift,tipabu/swift,mjwtom/swift,AfonsoFGarcia/swift,maginatics/swift,williamthegrey/swift,rackerlabs/swift,clayg/swift,levythu/swift,thiagodasilva/swift,nadeemsyed/swift,levythu/swift,larsbutler/swift,hbhdytf/mac,nadeemsyed/swift,clayg/swift,dencaval/swift,Akanoa/swift,redbo/swift,openstack/swift,gold3bear/swift,iostackproject/IO-Bandwidth-Differentiation,hbhdytf/mac2,tipabu/swift,matthewoliver/swift,eatbyte/Swift,matthewoliver/swift,thiagodasilva/swift,redbo/swift,revoer/keystone-8.0.0,aerwin3/swift,scality/ScalitySproxydSwift,daasbank/swift,hbhdytf/mac2,psachin/swift,hbhdytf/mac2,clayg/swift,bkolli/swift,AfonsoFGarcia/swift,williamthegrey/swift,hurricanerix/swift,dencaval/swift,wenhuizhang/swift,redhat-openstack/swift,notmyname/swift,Seagate/swift,hurricanerix/swift,notmyname/swift,prashanthpai/swift,mjwtom/swift,rackerlabs/swift,psachin/swift,bouncestorage/swift,mjzmjz/swift,iostackproject/IO-Bandwidth-Differentiation,scality/ScalitySproxydSwift,aerwin3/swift,Em-Pan/swift,shibaniahegde/OpenStak_swift