Skip to content
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

feat: able to set sqlite busy_timeout #818

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

Calcium-Ion
Copy link
Contributor

在使用sqlite时,高并发下,用户余额更新操作时出现了失败的情况,报database is lock错误,从而导致用户余额更新不一致,添加busy_timeout参数,设置为3000毫秒,当数据库被锁定时,任何操作都会等待最多3秒钟的时间以获取数据库锁。

@songquanpeng songquanpeng changed the title add sqlite busy_timeout feat: able to set sqlite busy_timeout Dec 17, 2023
@songquanpeng songquanpeng merged commit 7d6a169 into songquanpeng:main Dec 17, 2023
@songquanpeng
Copy link
Owner

Thx~

H0llyW00dzZ pushed a commit to H0llyW00dzZ/one-api that referenced this pull request Dec 20, 2023
* add sqlite busy_timeout=3000

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
H0llyW00dzZ added a commit to H0llyW00dzZ/one-api that referenced this pull request Dec 20, 2023
* feat: add Google Gemini Pro support (songquanpeng#826)

* fest: Add Google Gemini Pro, fix songquanpeng#810

* fest: Add tooling to Gemini; Add OpenAI-like system prompt to Gemini

* refactor: removing unused if statement

* fest: Add dummy model message for system message in gemini model

* chore: update implementation

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>

* fix: fix Gemini stream problem

* fix: fix xunfei panic error (close songquanpeng#820)

* fix: try to return a more meaningful error message (close songquanpeng#817)

* feat: reset image num to 1 when not given (songquanpeng#821)

* Update relay-image.go

* fix: reset image num to 1 when not given

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>

* feat: able to set sqlite busy_timeout (songquanpeng#818)

* add sqlite busy_timeout=3000

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>

* feat: update ali relay implementation (songquanpeng#830)

* 修改通译千问最新接口:1.删除history参数,改用官方推荐的messages参数 2.整理messages参数顺序,补充必要上下文信息 3.用autogen调试测试通过

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>

* feat: add condition to validate n value for non-Azure channels (songquanpeng#775)

- Add a condition to validate the n value only for non-Azure channels, ensuring it falls within the acceptable range.
- Fix Azure compatibility

* docs: update readme

* docs: update readme

* fix: fix gemini panic (close songquanpeng#833)

* fix: fix max_tokens check

---------

Co-authored-by: David Zhuang <i@dz.ax>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: Ghostz <137054651+ye4293@users.noreply.github.com>
Co-authored-by: Calcium-Ion <61247483+Calcium-Ion@users.noreply.github.com>
Co-authored-by: Oliver Lee <ol_l@msn.cn>
Co-authored-by: ShinChven ✨ <shinchven@gmail.com>
dirname pushed a commit to dirname/one-api that referenced this pull request Dec 22, 2023
* add sqlite busy_timeout=3000

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
greeeds pushed a commit to greeeds/one-api that referenced this pull request Mar 3, 2024
* add sqlite busy_timeout=3000

* chore: update impl

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants