I have a vue project where I've made an aggregate data grid similar to Excel. I have a dataset, here's just one object in the array of objects as a small sample
export default [ < --- jsonDataSmall.js
{
id: 1,
names: "Alice Anderson",
language: "English",
country: "USA",
game: "Chess",
bought: "true",
balance: "$5,000",
rating: "3",
winnings: "$61,800",
jan: "$65,243",
feb: "$64,235",
mar: "$60,845",
apr: "$61,245",
may: "$63,542",
jun: "$66,452",
jul: "$60,124",
aug: "$58,142",
sep: "$60,312",
oct: "$59,842",
nov: "$60,125",
dec: "$61,520",
},
...
]
//GridTemplate.Vue
export default {
data() {
return {
tableData: jsonDataSmall,
Now for a project I'm doing, I'm supposed to hardcode the JSON, not call it from an API. I need to add 500,000 objects to this data set and scale it locally, so that means like 3 million lines of code in this jsonDataSmall.js file. Yes I know, why not use a database for a large scale data set? I have no idea but in this project I'm required to do that. Now when I add pagination, I can get up to about 50,000 JSON. But after that I get the error that the HEAP is overloaded.
So my question is - is this even possible without overloading the HEAP? How can I render the data and make the table optimized while not overloading the HEAP?
I've heard of things like Streaming from ChatGPT but don't fully understand it, other than that I am stumped