Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
253 views
in Technique[技术] by (71.8m points)

Google Chrome IndexedDb strange physical space management

I'm using IndexedDb to "cache" images before send to server. I'm doing this because if the ajax call fails, I can retry the process without data loss (image base64 data and other related parameters to send).

Every time the ajax call upload an image, I remove the record from IndexedDb so my db will more for the most of the time empty or with few rows.

Now, I noticed that in Chrome DevTools the records are successfully deleted but on disk (%AppData%LocalGoogleChromeUser DataDefaultIndexedDb) the files continue to get space becoming always bigger... even more than 1gb.

If you close chrome browser and then go to check the IndexedDb physical files size, you can see the space has decreased but still get a lot of mb (e.g. from 1,39gb to 500mb).

My question is: why if my IndexedDb on DevTools is empty, on disk I still have big files? Is there a way to fix this behaviour? Is this could be a problem for chrome? (e.g. Crash or performance degradation)

question from:https://stackoverflow.com/questions/65939344/google-chrome-indexeddb-strange-physical-space-management

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...