OptoCloud
OptoCloud
Explore posts from servers
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
No description
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
No description
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
all the time
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
they could but i think the point is to learn the switch case semantics
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
break exits the switch
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
if that makes sense
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
No description
37 replies
CC#
Created by ceramo89 on 4/22/2025 in #help
✅ Switch - return 🤔 ( attached )
No description
37 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
@Jimmacle 🤔
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Bump?
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Idk how much more I can do
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
I updated my code a bit more to try to maybe optimize it?
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
I tried to explain it better now
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
sorry for the miswrite
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
the blobs im writing to a tar stream thats streamed into 7zip
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
only their hashes
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
im not dumping the binary blobs into the database
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Application workflow:
Discover all files, respecting gitignore files along the way

Register all directories traversed to the database and build a directory graph

Then asynchronously using IAsyncEnumerator, with batching and other stuff, for every file discovered:
Hash file, the hash will be used to ensure file contents of identical files are only written to TAR file once, a unique entry of file contents is refered to as a BLOB

Check database if a BLOB has already been registered in the database, if not then write the blob entry to the database

Register the file record with relation to the blob record in the database and set its relation to the directory hierarchy

**Only if** the blob record was inserted into the database, write the file to the tar file with a filename that is the hash of its content (the blob hash)
Discover all files, respecting gitignore files along the way

Register all directories traversed to the database and build a directory graph

Then asynchronously using IAsyncEnumerator, with batching and other stuff, for every file discovered:
Hash file, the hash will be used to ensure file contents of identical files are only written to TAR file once, a unique entry of file contents is refered to as a BLOB

Check database if a BLOB has already been registered in the database, if not then write the blob entry to the database

Register the file record with relation to the blob record in the database and set its relation to the directory hierarchy

**Only if** the blob record was inserted into the database, write the file to the tar file with a filename that is the hash of its content (the blob hash)
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
tar writer has to wait for DB job before doing its thing because if a BLOB with a matching hash has already been written to the TAR file then there is no use writing it again
14 replies