question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Save indexes directly to Lambda Function

See original GitHub issue

You 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:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
seriousmecommented, Oct 20, 2018

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.

0reactions
rlinginenicommented, Oct 23, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found