Background: I am hoping to make a spreadsheet program a bit like Google Docs. I am currently in the planning phase and have realised that if one cell is changed then that could potentially affect 1,000+ other cells in the spreadsheet. I realise making 1,000+ database calls would be very slow and is thus inappropriate.
My question: how does one keep formula and value like information in a database and quickly make changes. The best approach I can think of is to download all 1,000+ cells as one big JSON object and then do the same for upload? I just can't imagine this is what Google does as the download and save speeds are so fast.
Promising pages have included:
http://www.trirand.com/blog/jqgrid/jqgrid.html
and
http://www.simple-groupware.de/cms/Spreadsheet/Home
but I have yet to be able to find a simple answer to my question.
In addition to these so far I have looked at:
- Using formula-based data in Google Spreadsheet as back-end for Web App,
- https://stackoverflow.com/questions/20961510/creating-a-basic-web-app-for-writing-reading-databases-google-spreadsheets
- Spreadsheet like input facility for ASP MVC
- http://www.reddit.com/r/SideProject/comments/1s466o/cellmaster_spreadsheet_formulas_that_build_web/
- Open Source, web based spreadsheet app with formulas
- Store spreadsheet kind of data in SQL Database
- Database : best way to model a spreadsheet.
FYI: I am coding in the HTML5/LAMP stack but I am happy for solutions to come in any form as I can always "port" the ideas from anywhere. So far the most help I got was from:
I am not so idealistic as to expect anyone to give me a concrete code implementation but I do believe this problem is not unique and that someone on stackoverflow is clever enough to have worked out an efficient method for storing and retrieving spreadsheet like information within a web app environment. Please just point me in the right direct and I will do the research to create my own solution.