Save indexes directly to Lambda Function
See original GitHub issueYou will have to update the indexing
function to store the indexes directly in S3 Bucket where the Lambda function is stored.
It can almost ~2 seconds to get all the virtual indexes from S3, but considering, each file is only about ~1MB, if we save the index onto the lambda function directly, we can shave that time off.
Of course, this could make the architecture a bit dirty, but performance gains will be great.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Indexing Metadata in Amazon Elasticsearch Service Using ...
Indexing Metadata in Amazon Elasticsearch Service Using AWS Lambda and Python · Reads the metadata from S3 event · Connects to the Amazon...
Read more >Apply Function on DataFrame Index - python - Stack Overflow
the df.index.map(str.lower) call returns a numpy array. This is because dataframe indices are based on numpy arrays, not Series.
Read more >Write A Serverless Function with AWS Lambda and MongoDB
Learn how to write serverless functions with AWS Lambda and MongoDB. ... Once you've made the above updates to your index.js file, save...
Read more >Applying Lambda functions to Pandas Dataframe
We can apply a lambda function to both the columns and rows of the Pandas data frame. ... index name 'a', 'e' and...
Read more >Lambda Functions in Python Examples | Towards Data Science
Even though it is a quick read, you can directly navigate to your favorite section using the index below. · What is Lambda...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
btw: if updates are infrequent (e.g. only during nightly batches) and the index does not need to be super current then you might include the index with the lambda bundle so that with every time the index is updated a new version of the lambda is deployed.
Right, yeah that’s what I was thinking. Upload it with the lambda bundle. Even if it was frequent, I don’t think it would matter. It doesn’t cost us anything to update Lambda functions, and usually, from experience, a new bundle doesn’t mean downtime.
As far as lunrjs goes, I agree, changes should be made to the core. There should be a way in lunrjs to load multiple indexes for a server-side user case.