-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ build | |
vendor | ||
package-lock.json | ||
uguu.sq3 | ||
.idea | ||
.phpdoc | ||
.vscode | ||
composer.phar | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Uguu 1.8.6 | ||
|
||
### Whats new | ||
|
||
* Includes INDEX creation in the dbSchemas files, this greatly improves performance when performing filename generation, antidupe, blacklist or rate-limit checks against the database, | ||
especially on big databases. It's recommended you follow the instructions below on how to add INDEX. | ||
* time() is called once in connector to get a timestamp instead of multiple times. | ||
* The function `diverseArray` is now called `transposeArray`, the variables within the function are also renamed to make it easier to understand. | ||
* The function `uploadFile` performs a check if `BENCHMARK_MODE` is set in the configuration, if it is the file will not be uploaded. | ||
* Benchmarking capbility added. | ||
* Docs updated with how to use [Benchmarking](https://github.com/nokonoko/Uguu/wiki/Benchmarking) and also a [Optimization Guide](https://github.com/nokonoko/Uguu/wiki/Optimization). | ||
|
||
### Breaking changes | ||
|
||
* config.json must include the `"BENCHMARK_MODE"` value, should be set to `false` when not benchmarking, otherwise file(s) will not be uploaded. | ||
|
||
### Add INDEX to an existing Uguu installation | ||
|
||
#### SQLite | ||
|
||
``` | ||
CREATE INDEX files_hash_idx ON files (hash); | ||
CREATE INDEX files_name_idx ON files (filename); | ||
CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash); | ||
CREATE INDEX blacklist_hash_idx ON blacklist (hash); | ||
``` | ||
|
||
#### PostgreSQL | ||
|
||
``` | ||
CREATE INDEX files_hash_idx ON files (hash); | ||
CREATE INDEX files_name_idx ON files (filename); | ||
CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash); | ||
CREATE INDEX blacklist_hash_idx ON blacklist (hash); | ||
``` | ||
|
||
#### MySQL | ||
|
||
``` | ||
CREATE INDEX files_hash_idx ON files (hash); | ||
CREATE INDEX files_name_idx ON files (filename); | ||
CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash); | ||
CREATE INDEX blacklist_hash_idx ON blacklist (hash); | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/* | ||
* Uguu | ||
* | ||
* @copyright Copyright (c) 2022-2024 Go Johansson (nokonoko) <neku@pomf.se> | ||
* | ||
* Note that this was previously distributed under the MIT license 2015-2022. | ||
* | ||
* If you are a company that wants to use Uguu I urge you to contact me to | ||
* solve any potential license issues rather then using pre-2022 code. | ||
* | ||
* A special thanks goes out to the open source community around the world | ||
* for supporting and being the backbone of projects like Uguu. | ||
* | ||
* This project can be found at <https://github.com/nokonoko/Uguu>. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
->exclude([ | ||
'dist', | ||
'build', | ||
'node_modules' | ||
]) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@PSR12' => true, | ||
'strict_param' => true, | ||
]) | ||
->setFinder($finder) | ||
; |