rlingineni / Lambda-Serverless-Search

Use AWS Lambda to perform free-text search on documents - With SAM Template
MIT License
143 stars 16 forks source link

Update Indexer to Get all Documents via Athena #3

Open rlingineni opened 6 years ago

rlingineni commented 6 years ago

AWS Athena can quickly return S3 details.

The main problem is that in order to query, it requires creating a db-table for a schema. It's still cheap nonetheless.

To implement, we would need to dynamically update the Athena Table upon each new index config added or update and set up a config in the Cloudformation template accordingly.

It would be interesting to see how much of an improvement this might make. A good starting point before implementation is to do a study on a manual bucket with a bunch of documents, and replace the listObjects call with Athena.