How to integrate aerospike with Django to avoid multiple connections

I see in the docs you use this pattern

  1. Connect to aerospike
  2. Read write data
  3. Disconnect

Now if my front end application is making thousands of requests it will mean thousands of connections to aerospike

Can i connect once like in the settings and use the same connection for all requests. If i do it on settings load my only question is how do i disconnect gracefully on application exit

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.