activeloopai / deeplake

Database for AI. Store Vectors, Images, Texts, Videos, etc. Use with LLMs/LangChain. Store, query, version, & visualize any AI data. Stream data in real-time to PyTorch/TensorFlow. https://activeloop.ai
https://activeloop.ai
Mozilla Public License 2.0
7.88k stars 607 forks source link

Proactively remove LRU cache values as cache fills #2842

Closed nvoxland-al closed 2 months ago

nvoxland-al commented 2 months ago

🚀 🚀 Pull Request

Impact

Description

When loading chunk files from disk, as memory fills the chunk_engine would wait for there to be room to download. Depending on the overall workload, this waiting could last forever.

This change pops a cached value rather than simply wait

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
66.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud