-
Hi, Once the lambda zip file is ready, the documentation only mentions that we can put our .sql files in the zip folder (which so far works well). My question(s) are:
Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
So if anyone else is wondering, this is perfectly possible. The AWS lambda zip file contains exactly the same kind of files as when running in local. |
Beta Was this translation helpful? Give feedback.
-
Hi! Glad you like the latest changes! There is more to come ;) While you can technically include a SQLite file in your Lambda zip folder, it's not the best fit for Lambda's environment. Lambda functions operate with ephemeral storage, meaning any data written to disk during execution is lost when the function ends. This makes it tricky to maintain a persistent SQLite database since the data would only persist during a single invocation of the function. Instead, it’s generally better to use a managed database service, with a database system that supports remote connections, like Amazon RDS, or Aurora which offers persistent storage and better scalability. These services are designed to work well with Lambda, ensuring your data is available across multiple invocations and functions. You can also use an external database provider like TiDB Cloud or Neon. As for custom components, yes, you can include them in your Lambda zip file! Just ensure they’re in |
Beta Was this translation helpful? Give feedback.
-
If you don't want to switch database systems and want an easy solution to quickly deploy your SQLPage app with SQLite, I of course recommend our own solution: https://beta.datapage.app ! |
Beta Was this translation helpful? Give feedback.
Hi!
Glad you like the latest changes! There is more to come ;)
While you can technically include a SQLite file in your Lambda zip folder, it's not the best fit for Lambda's environment. Lambda functions operate with ephemeral storage, meaning any data written to disk during execution is lost when the function ends. This makes it tricky to maintain a persistent SQLite database since the data would only persist during a single invocation of the function.
Instead, it’s generally better to use a managed database service, with a database system that supports remote connections, like Amazon RDS, or Aurora which offers persistent storage and better scalability. These services are designed to wor…