gadelkareem / sails-dynamodb

Amazon DynamoDB adapter for Waterline / Sails.js
http://sailsjs.org
46 stars 22 forks source link

Add option to error on scan instead of defaulting to scan when an index is not found #6

Closed tlperkins closed 8 years ago

tlperkins commented 9 years ago

Queries should not default to scanning which would break the bank and not perform well in production.

devinivy commented 9 years ago

The queries do not default to scan in the current version on master. They actually use indices when indices are available. See this section of the readme: https://github.com/gadelkareem/sails-dynamodb#using-dynamodb-indexes