-
Notifications
You must be signed in to change notification settings - Fork 162
Indexing seemingly causes windows protection to trigger #608
Comments
Another problem with the @A@b@c file name format would be, that it effectively doubles the path lengths, if you're indexing to a cquery subdirectory of your project directory. More like tripling it, because all files are further separated into two different directories, each containing portions of the path as well. |
The cache format is under our control; we could write to one big file, the thousands of small files is just simplest w.r.t. implementation. As the user edits the program the files need to be updated, so space management in the big file may be tricky. Normalizing paths using a hash should fix the |
@jacobdufault , I hope that cquery can save this huge cache with relational dbms like sqlite or mysql instead of self implementations.. I'm interested now implementing this feature. Could you please tell me which source file is responsible doing this stuff behind the scene currently? Regards hafidh. |
@jacobdufault , Yeah that nice one, but I want to have another wider rdbms backend by using QSqlDatabase. Will post back when it's ready .. Thanks |
Sure, as a heads up, the cache is only used for offline storage. The querydb is entirely in-memory so changing caching implementations is only for restore/load and delta index updates. I'm okay with moving querydb to be on-disk but it will need to be done carefully to avoid regressing performance. Definitely non-trivial and tricky work. Also, FYI, I likely cannot merge something using QSqlDatabase due to the heavy dependency and/or licensing issues. |
Is it possible that this issue lead to :
I've disabled windows defender, and I can create the file from windows explorer, I don't understand why I get this issue. |
Hello,
with one cache file per source file, the cquery service can literally parse and write thousands of small files, looking suspicious to malware protection. Is the cache database architecture governed by libclang? I see other services using lightweight database libs f.e.
The text was updated successfully, but these errors were encountered: