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 ?
How we can insert header and footer in google docs with google docs api using PHP code
Writing a new and appending a file in PHP without erasing contents
How to combine 2 arrays with the condition that 2 and 5 values will be from the second array?
How to keep the ?error on url if page extension not included?
Cannot find the answer after my research, help me with mysql [duplicate]
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
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
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...