Open geoffreyaldebert opened 1 month ago
Note: this should replace config.LARGE_RESOURCES_EXCEPTIONS
Question: would it be more performant to do a SQL query using a SQL function to check if the resource id is in the table, instead of getting them and doing a Python comparison?
Today, we manage resource_id exceptions through a config file.
I propose to manage it from a postgres table instead. So :
resource_exception
inhydra-hydra
with a columnresource_id
These kind of tables are heavy, so we want to optimize their future queries. So we have to add indexes. We can add indexes into the table
tables_index
inhydra-hydra-csv
with a new columnindexes
that is empty for classical resource and a list of column names for heavy files. So :It will be very nice to add an exception through a POST query to hydra, for instance :