水线orientdb数据库连接超时

随着SailsJS /水线我使用水线orientdb适配器来连接并提交我的域对象OrientDB。 所有这一切都相当简单,除了我从数据库中获取的频繁连接超时。

orientdb: { adapter: 'waterline-orientdb', host: 'somehost', port: 2424, user: 'someuser', password: 'somepassword', database: 'somedatabasename' } 

看来东方支持数据库连接,有没有办法configuration适配器,使它将使用池数据库连接,以便在发出查询之前testing连接? 试图避免不止一次地发出查询,看来适配器应该能够处理封面本身的所有内容。

目前sails-orientdb不支持池式连接,但考虑到PR codemix / oriento#7的实现应该不会太困难。

更新:支持池连接将在sails-orientdb:v0.10.51的下一个版本,并通过configuration启用,例如:

 connections: { myLocalOrient: { //... pool: { max: 10 } } } 

PR#96的更多细节。