BookStack/database/seeders
Dan Brown 02d94c8798
Permissions: Updated generation querying to be more efficient
Query of existing entity permissions during view permission generation
could cause timeouts or SQL placeholder limits due to massive whereOr
query generation, where an "or where" clause would be created for each
entity type/id combo involved, which could be all within 20 books.

This updates the query handling to use a query per type involved, with
no "or where"s, and to be chunked at large entity counts.

Also tweaked role-specific permission regen to chunk books at
half-previous rate to prevent such a large scope being involved on each
chunk.

For #4695
2023-12-23 13:35:57 +00:00
..
.gitkeep Laravel 8 shift squash & merge (#3029) 2021-10-30 21:29:59 +01:00
DatabaseSeeder.php Laravel 8 shift squash & merge (#3029) 2021-10-30 21:29:59 +01:00
DummyContentSeeder.php Input WYSIWYG: Fixed existing tests, fixed empty description handling 2023-12-20 17:21:09 +00:00
LargeContentSeeder.php Permissions: Updated generation querying to be more efficient 2023-12-23 13:35:57 +00:00