简体   繁体   English

复制Google表格(如性能)(可手动操作)

[英]Replicating Google Sheets like performance (handsontable)

I'm using handsontable + jQuery http://handsontable.com/ to embed a spreadsheet in a webpage. 我正在使用Handsontable + jQuery http://handsontable.com/将电子表格嵌入网页中。

While handsontable does a pretty good job of handling larger data sets, the problem for me is trying to pull in 100,000+ rows of data at once from MongoDB + insert them into the DOM takes up way too much time and memory. 尽管handsonontable在处理较大的数据集方面做得很好,但对我来说,问题是试图从MongoDB一次提取100,000行以上的数据,再将它们插入DOM会占用过多的时间和内存。

I thought about an 'infinite scroll' solution that only keeps 2000 rows in at a time, then loads the next / or previous 2000, depending on the users vertical scroll. 我想到了一个“无限滚动”解决方案,一次只能保留2000行,然后根据用户的垂直滚动加载下一个或上一个2000行。

But this seems a little kludgy because what if the user wants to set the 'price' column for the entire data set to 19.99... 但这似乎有点混乱,因为如果用户希望将整个数据集的“价格”列设置为19.99,该怎么办...

So ultimately my question is how have other people handled this? 因此,最终我的问题是其他人如何处理此问题? What does Google Sheets do? Google表格有什么作用? Apparently the newest version supports 2,000,000 rows of data https://productforums.google.com/forum/#!topic/docs/2TNrpc9xExY 显然,最新版本支持2,000,000行数据https://productforums.google.com/forum/#!topic/docs/2TNrpc9xExY

What are some high-level solutions to this? 有什么高级解决方案?

Handsontables have amazing features but is yet slow. 手提式录音机具有惊人的功能,但速度慢。

If you take a look at this link you will notice that still it needs to fit in some standards to improve performance. 如果您查看此链接,您会注意到它仍然需要符合某些标准才能提高性能。

I suggest you to follow good practices like the these explained here 我建议您遵循此处说明的良好做法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM