Commit Graph

12 Commits (b9f397d29f0a4e75c72564da40d0f297ed8c5626)

Author SHA1 Message Date
j2rong4cn db99224126
perf: Speed ​​of database initialization (#7694)
* perf: 优化非sqlite3数据库时初始化慢的问题

* refactor
2024-12-25 21:08:22 +08:00
Mars160 1f835502ba
feat: support customize dsn for mysql and pg (#6031)
* support for unixsocket to connect to mysql

* feat: customize dsn for mysql and pg

---------

Co-authored-by: Andy Hsu <i@nn.ci>
2024-02-23 15:28:48 +08:00
Noah Hsu 98872a8fdb fix: cancel `EXCLUSIVE` mode on sqlite3
because it will result in failure to get admin's info
2023-01-19 16:49:43 +08:00
Aoang 9c7e451c03
perf: optimize sqlite3 (#3074)
- use journal mode to WAL
- set locking mode to EXCLUSIVE
- set auto vacuum

ref:
 - https://www.sqlite.org/pragma.html#pragma_journal_mode
 - https://www.sqlite.org/pragma.html#pragma_locking_mode
 - https://www.sqlite.org/pragma.html#pragma_auto_vacuum
2023-01-17 17:06:11 +08:00
BoYanZh b3be9ef428
feat(search): use `FULLTEXT` index (close #2716 pr #2726) 2022-12-16 16:51:36 +08:00
BoYanZh 5a6b600ace
feat: show gorm log on debug/dev mode (#2720) 2022-12-15 17:48:52 +08:00
Noah Hsu d329df70f3 fix: failed create record if use mysql (close #1690) 2022-09-16 22:21:43 +08:00
Noah Hsu 86a625cb40 fix: set `CHARSET` to `utf8mb4` if use mysql 2022-09-15 17:14:03 +08:00
Noah Hsu 0df3473337 feat: use cobra and add some command 2022-08-07 13:09:59 +08:00
Noah Hsu b51e664543 chore: go fmt 2022-08-03 14:26:59 +08:00
Noah Hsu 3c7a2f78cf chore: init db and aria2 2022-06-29 17:37:40 +08:00
Noah Hsu 1a148eee7c feat: initial setting items 2022-06-27 15:51:02 +08:00