Jack编程社区

 找回密碼
 立即註冊
搜索
查看: 2|回復: 0
打印 上一主題 下一主題

database. It's very fast when your database

[複製鏈接]

1

主題

1

帖子

2

積分

新手上路

Rank: 1

積分
2
跳轉到指定樓層
樓主
發表於 2023-12-27 12:25:05 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
The way we also discovered many smaller inefficiencies that we were able to improve. There are many of them so we won't cover them all but a good example is the optimization we made to the platform detection routine for searching libraries in the environment. A pull request for this enhancement can be found here. This enhancement reduces cold start time by approximately milliseconds on average. While this may not seem like much but the accumulation of this enhancement and the other small enhancements we made added up to another huge time savings. Narration related findings Another noteworthy finding we discovered during this program is that cold start times can be significantly impacted by adding security to the database connection when your database is hosted in a different region than the serverless function. .  is hosted in the same region as your function but can be very slow if they are far apart.
  
The client is enabled by default because it is a more secure way to connect to the database. Therefore some developers whose database is not in the same area as its functionality may find that the handshake results in increased cold start times. The image be photo editing servies low shows the different cold start times with enabling first and disabling via the setting in the connection string. The overhead shown above is negligible if your database is hosted in the same region as your function. Some other database clients in the ecosystem and databases are disabled by default. When comparing performance to them unfortunately this can lead to performance impressions due to differences in security out of the box. us It is recommended to move the database and functionality to the same area rather than sacrificing security to improve performance. This will keep your database safe and result in faster cold starts. This is just the beginning While we have made incredible progress over the past few months, we are only just getting started.



We would like to optimize the schema generator Cyan by performing some work perhaps lazily or during query validation to get parts of the graph close to or actually as . Optimize the yellow part of the loading graph which represents the time it takes to load and make it as small as possible. Apply all of the above knowledge to other databases. The most important thing is to look at the performance of client queries and optimize the time required for those queries whether the amount of data is small or large. You can expect updates to this blog post as we further improve cold start performance and even another blog post in the coming weeks and months as we make progress on improving performance. You Can Help Making the experience on serverless.


收藏收藏
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|Jack编程社区  

GMT+8, 2025-4-22 21:41 , Processed in 0.230681 second(s), 5 queries , File On.

抗攻擊 by GameHost X3.3 Designed By TSMINI.COM

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |