New answers tagged

-2

wouldn't it take longer to stream the file vs sending whole file at a time? Welcome to the time space tradeoff. Reading a whole file into memory (say as an array or string) is called slurping. It can be a good or bad idea depending on file size, available memory, and how many times you do it at the same time. The alternative is line by line processing (...


0

In the interest of making information available to anyone in the future, my current solution is having a socket.io server running, which connects over a socket to a python script. the socket.io server just relays information between the two and is capable of handling multiple clients whereas a python only solution would not handle multiple clients without me ...


1

If you are using a database which supports transactions, then just upload the components in the same transaction. They won't be visible to the application until the transaction is committed, which will be an atomic event. Search for "database ACID" for more details. Alternatively, ensure all the resources for the page are in place before adding the HTML ...



Top 50 recent answers are included