Store/Update large file efficiently

62
January 17, 2022, at 10:20 PM

I am working on a grocery app which needs to keep updating the most recent available quantities. To do so, I need to keep overwriting and accessing a large object of quantities which is sent via api every min.

What I considered:

  • Store in the memory: if it exceeds 500kb, the app will throw a TransactionTooLargeException exception

  • Store in db: I am simply overwriting the whole file so no need for specific db queries and it's an expensive IO operation to do every min

  • Write to a file: What I am currently doing, better than maintaining a db for a simple overwrite, but it's also a heavy IO operation to execute every min.

Is there a more efficient way to keep a large object accessible which you can consistently update ?

READ ALSO
Displaying the data from db in a table, one row/object at a time with Ajax python django

Displaying the data from db in a table, one row/object at a time with Ajax python django

I am working on a Django project where I display a list of dataWhen the list is too long the page takes longer to load due to the amount of data that are displayed in that list

64
Put a link on an Image Sprite

Put a link on an Image Sprite

I'm having a difficulty linking image spritesI want them to lead to particular websites but when I click the image sprite, it doesn't work at all

37
Tailwind transition delay arbitrary value only working for specific values

Tailwind transition delay arbitrary value only working for specific values

I am getting really inconsistent behavior with tailwinds arbitrary value functionality, specifically in relation to the transition delay propertyWhen I use any random value directly within the arbitrary value it has worked for every value I have tested...

74