在浏览器会话中为许多数据客户端提供建议
我需要一些建议。
我正在寻找一种在浏览器中使用大量数据(800 MB)的方法。这些数据不应持久。用户在执行任何操作之前,上传了他们在浏览器中使用(过滤器)播放的CSV文件。这些CSV文件中的列名可能会有所不同。
我想知道这里要使用哪种方法。将数据存储在JavaScript变量中的内存中,因为它崩溃了页面。我一直在研究索引,这使我有机会将数据保存在数据库中,甚至为我提供过滤选项。但是,该系统实际上旨在存储持续数据以供离线使用。 最好是,我想在加载新文件时删除数据库,创建一个带有自己的对象存储的新数据库,然后用新数据填充它。但是我发现,只要我不刷新页面,就不会删除数据库,并且无法更改它。
我的问题:在此特定情况下,使用索引eddb是一种可行的方法吗?如果是,在这种情况下,是否有人指针如何使用它?我还忽略了其他可能性吗?
I need some advice.
I'm looking for a way to work with a huge amount of data (800+mb) in the browser. This data should not be persistent. Users upload a csv file which they play with (filter) in the browser before doing anything with it. The columnnames in those csv files can vary wildly.
I was wondering what method to use here. Storing the data in memory in JavaScript variables does not work, as it crashes the page. I've been looking at indexedDB, which gives me the opportunity to keep the data in a database and even gives me filtering options. However this system is actually designed to store persistent data for offline use.
Preferably I would like to delete the database when loading a new file, create a new database with it's own objectstore and fill it with new data. But I found that the database is not deleted as long as I don't refresh the page and I cannot change it.
My questions: is using indexedDB a viable approach for this specific case? If yes, does anyone any pointers how to use it in this case? Are there other possibilities that I have overlooked?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论