-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: use type halfvec instead of vector in PGVector #3753
base: v4.9.0-dev
Are you sure you want to change the base?
Conversation
🤖 Generated by deploy action📦 Preview Image: |
126fc5b
to
5219e7d
Compare
|
||
let rowsUpdated; | ||
do { | ||
rowsUpdated = await PgClient.query(` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要加 try catch。
后面无需等待了,必要性不大。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉不是很必要?最外层已经有一个try catch了。如果update出现异常还可以再次执行脚本。
|
||
let rowsUpdated; | ||
do { | ||
rowsUpdated = await PgClient.query(` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while里应该加 try catch 吧?不然失败一个,不就全终止了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
全终止了还能再运行脚本的吧,应该不是太影响。
No description provided.