avalonmediasystem / avalon

Avalon Media System – Samvera Application
http://www.avalonmediasystem.org/
Apache License 2.0
93 stars 51 forks source link

Don't Destructure IP Ranges in Index #5988

Open joncameron opened 2 months ago

joncameron commented 2 months ago

Description

IP address ranges in CIDR notation can be used in access control for Avalon media objects; however, in the Solr index these are destructured and each individual address within the range is stored for the item. This results in a huge DRY problem where the index can become huge from the sheer number of addresses listed.

Done Looks Like

elynema commented 2 months ago

Likely will need to change the query to make this work. Not clear whether this will improve efficiency of queries. To roll this out would require a reindex of media objects, collections, and leases. For MCO, this could take some time. We'd need to evaluate whether the reindex would have to be completed in advance of rollout or could be done on a rolling basis after code release. If it would need to be done in advance, we might want to wait to roll this into some release where reindexing will already be happening.