Tag: vogels

Vogels是Amazon的dynamoodb mapper和nodejs的不错select吗?

我看到从长时间vogels页面没有积极的发展,即约5个月https://github.com/ryanfitz/vogels 有没有更好的select? 有没有人面临与可打印性或I / O时间的问题?

Dynogels:使用OR比较的查询

我正尝试将以下scans优化为单个scan (或query )。 我看到的唯一方法是使用DynamoDB使用OR比较器 。 我在我的应用程序中使用dynogels (fork of vogels ),但遗憾的是我没有意识到任何OR查询function。 let arrivals = yield Reservation.scan() .where('room').equals(room) .where('arrival').between(from, to) .execAsync().then((reply) => reply.Items.map((item) => item.get())); let departures = yield Reservation.scan() .where('room').equals(room) .where('departure').between(from, to) .execAsync().then((reply) => reply.Items.map((item) => item.get())); let combined = arrivals.concat(departures); return Promise.resolve(combined); build议的优化: return Reservation.scan() .where('room').equals(room) .where('arrival').between(from, to) .or.where('departure').between(from, to) .execAsync().then((reply) => reply.Items.map((item) => item.get())); […]

在vogels或节点SDK中检测AWS dynamodb连接错误

我正在使用npm vogels软件包,该软件包build立在主要的aws-sdk软件包上,用于访问所有的AWS服务,包括DynamoDB。 我试图得到很好的error handling,当无法连接(错误的凭据等),但目前的vogels查询只是无限期挂起,当我故意打破我的连接参数。 我没有看到任何连接error handlingAPI可用,但理想情况下,我想绑定一个error事件处理程序或类似的,所以当我不能连接,程序不会简单地挂起。