python-arango icon indicating copy to clipboard operation
python-arango copied to clipboard

Need a ConnectedClient object to access any database the user can, faster.

Open aqc-eligny opened this issue 3 years ago • 1 comments

Hello,

Why do you ask for username and password everytime we try to connect to a different database (db = client.db('test', username='jane', password='foo')). Would it be possible to get a ConnectedClient object that allows access to all databases the user has access to without reauthenticating ?

I am developing an App that uses different databases for every account. Therefore, the API needs to generate connections upon each request using python-arango implementation, which takes <> 800 ms everytime.

Thank you for your advice.

aqc-eligny avatar Sep 15 '22 16:09 aqc-eligny

Hey @aqc-eligny,

Could you try again with db = client.db(..., verify=False) and let me know if that makes a difference (I believe it should)?

joowani avatar Sep 15 '22 17:09 joowani

Closing due to inactivity. @aqc-eligny Please feel free to reopen if you still have issues.

joowani avatar Feb 01 '23 08:02 joowani