1
Fork 0
photoview/api/graphql
stz184 f88fa33e5f InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively.
That's why I created a new column storing a MD5 hash of the path and made it unique. The MD5 hash has only 32 characters and can be generated natively in MySQL and MariaDB. It helps us to avoid maximum key length and in the same time enforce unique photo and album paths.

- Added path_hash column to photo and album tables
- Added down migration file for 005_utf8_migration (just for consistency)
- Added PathHash field to Album and Photo struct
- album_scanner.go and photo_scanner.goo perform checks by MD5 hash now
2020-06-24 11:43:20 +03:00
..
auth Add authentication for websockets 2020-02-21 17:53:04 +01:00
models InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively. 2020-06-24 11:43:20 +03:00
notification Improve scanner - first scan, then process 2020-02-26 21:23:13 +01:00
resolvers Implement ScanAll resolver 2020-04-15 11:21:16 +02:00
directive.go Implement authorization 2020-01-31 23:30:34 +01:00
generated.go Add replace debounce with throttle 2020-03-12 13:26:11 +01:00
schema-reference.graphql Work on share tokens 2020-02-09 21:25:33 +01:00
schema.graphql Add album path resolver 2020-03-07 16:19:27 +01:00