mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 10:12:25 -06:00
[performance] Add further indexes to mitigate laggy queries (#586)
* start adding more indexes as a migration * update sqlite version
This commit is contained in:
parent
5ef41ba3f2
commit
f4b0d76cd4
236 changed files with 395899 additions and 195070 deletions
16
vendor/modernc.org/sqlite/rlimit_ppc64le.go
generated
vendored
Normal file
16
vendor/modernc.org/sqlite/rlimit_ppc64le.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2021 The Sqlite Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package sqlite // import "modernc.org/sqlite"
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func setMaxOpenFiles(n int64) error {
|
||||
var rLimit unix.Rlimit
|
||||
rLimit.Max = uint64(n)
|
||||
rLimit.Cur = uint64(n)
|
||||
return unix.Setrlimit(unix.RLIMIT_NOFILE, &rLimit)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue