]> jfr.im git - uguu.git/blame - RELEASE_NOTE.md
Update uguu.css
[uguu.git] / RELEASE_NOTE.md
CommitLineData
1f745d39
GJ
1## Uguu 1.8.6
2
3### Whats new
4
5* Includes INDEX creation in the dbSchemas files, this greatly improves performance when performing filename generation, antidupe, blacklist or rate-limit checks against the database,
6 especially on big databases. It's recommended you follow the instructions below on how to add INDEX.
7* time() is called once in connector to get a timestamp instead of multiple times.
8* The function `diverseArray` is now called `transposeArray`, the variables within the function are also renamed to make it easier to understand.
9* The function `uploadFile` performs a check if `BENCHMARK_MODE` is set in the configuration, if it is the file will not be uploaded.
10* Benchmarking capbility added.
11* 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).
12
13### Breaking changes
14
15* config.json must include the `"BENCHMARK_MODE"` value, should be set to `false` when not benchmarking, otherwise file(s) will not be uploaded.
16
17### Add INDEX to an existing Uguu installation
18
19#### SQLite
20
21```
22CREATE INDEX files_hash_idx ON files (hash);
23CREATE INDEX files_name_idx ON files (filename);
24CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash);
25CREATE INDEX blacklist_hash_idx ON blacklist (hash);
26```
27
28#### PostgreSQL
29
30```
31CREATE INDEX files_hash_idx ON files (hash);
32CREATE INDEX files_name_idx ON files (filename);
33CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash);
34CREATE INDEX blacklist_hash_idx ON blacklist (hash);
35```
36
37#### MySQL
38
39```
40CREATE INDEX files_hash_idx ON files (hash);
41CREATE INDEX files_name_idx ON files (filename);
42CREATE INDEX ratelimit_iphash_idx ON ratelimit (iphash);
43CREATE INDEX blacklist_hash_idx ON blacklist (hash);
44```