messa / bloom Goto Github PK
View Code? Open in Web Editor NEWIndex text files + print files matching some phrase
License: MIT License
Index text files + print files matching some phrase
License: MIT License
Currently the file size and mtime is a part of cache key. Therefore if a file is modified, its size and mtime changes and the whole file is indexed again.
The proposal is that when file size increase is detected, only the newly added data would be read and added to the index (the bloom filter bitmask).
Traceback (most recent call last):
File "/opt/bloom/bin/bloom", line 8, in <module>
sys.exit(bloom_main())
File "/opt/bloom/venv/lib/python3.9/site-packages/bloom/main.py", line 50, in bloom_main
index_files(db, file_paths)
File "/opt/bloom/venv/lib/python3.9/site-packages/bloom/main.py", line 63, in index_files
file_array = db.get_file_array(path_resolved, f_stat.st_size, f_stat.st_mtime, hash_func_name, sample_sizes)
File "/opt/bloom/venv/lib/python3.9/site-packages/bloom/database.py", line 52, in get_file_array
cur.execute('UPDATE bloom_files_v2 SET last_accessed=? WHERE key=?', (int(time()), key))
sqlite3.OperationalError: database is locked
The cache (currently sqlite database) may contain files that are no longer present on the filesystem.
There should be some way how to remove those from the cache to make more space available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.