@@ -1462,6 +1462,17 @@ def str2value(self, value):
1462
1462
("rdbms" , (
1463
1463
(DatabaseBackend , 'backend' , NODEFAULT ,
1464
1464
"Database backend." ),
1465
+ (BooleanOption , "debug_filter" , "no" ,
1466
+ "Filter debugging: Permissions can define additional filter\n "
1467
+ "functions that are used when checking permissions on results\n "
1468
+ "returned by the database. This is done to improve\n "
1469
+ "performance since the filtering is done in the database\n "
1470
+ "backend, not in python (at least for the SQL backends). The\n "
1471
+ "user is responsible for making the filter return the same\n "
1472
+ "set of results as the check function for a permission. So it\n "
1473
+ "makes sense to aid in debugging (and performance\n "
1474
+ "measurements) to allow turning off the usage of filter\n "
1475
+ "functions using only the check functions." ),
1465
1476
(Option , 'name' , 'roundup' ,
1466
1477
"Name of the database to use. For Postgresql, this can\n "
1467
1478
"be database.schema to use a specific schema within\n "
@@ -1545,8 +1556,8 @@ def str2value(self, value):
1545
1556
"Set the database cursor for filter queries to serverside\n "
1546
1557
"cursor, this avoids caching large amounts of data in the\n "
1547
1558
"client. This option only applies for the postgresql backend." ),
1548
- ), "Settings in this section (except for backend) are used \n "
1549
- " by RDBMS backends only." ,
1559
+ ), "Most settings in this section (except for backend and debug_filter) \n "
1560
+ "are used by RDBMS backends only." ,
1550
1561
),
1551
1562
("sessiondb" , (
1552
1563
(SessiondbBackendOption , "backend" , "" ,
0 commit comments