Q. Ziv Li
Q. Ziv Li
https://github.com/gogs/gogs/blob/e51e01683408e10b3dcd2ace65e259ca7f0fd61b/internal/db/models.go#L217 SELECT COUNT(*) FROM gogs.action is very expensive when the rows in action table is more than 4000000. Since the rows are continuously, we may try `SELECT max(id) - min(id)...
``` autoreconf -vif autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: glibtoolize --copy --force glibtoolize: putting auxiliary files...
https://github.com/guenchi/fli/blob/bee3468b366665067cc947609450208d4a42f0e2/pycall.sc#L87-L90 I tested, it woks. This is example code: ``` (define-syntax py:from (syntax-rules (import as) [(_ where import name) (py:run-simple-string (format "from ~a import ~a" where name))] [(_ where import...
Python's dot syntax can be simply defined as a normal procedure. This is an example: ``` (define (py:dot obj . attrs) (define (f obj attr) (if (py:has-attr? obj attr) (py:get-attr...