最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Frontend Memory Issue in Vue.js - Stack Overflow

programmeradmin1浏览0评论

I have an account system using .NET C# and Vue.js, with the backend and frontend separated. It has been crashing lately, and I think the issue is due to the large amount of data. For each transaction I make, I need to refetch accounts to get the current account balance. I have 13,000 account rows.

commit('SET_ACCOUNTS', data.accounts)

SET_ACCOUNTS (state, accounts: Array<Account>) {
  state.accounts = accounts
}

I store the data in IndexedDB, and there is still plenty of available memory.

The backend has no issues—it fetches data quickly and efficiently. The problem is on the frontend, but I'm not sure how to start debugging or optimizing it.

However, every time I perform a transaction, the system becomes very slow, my CPU usage goes above 90%, and then the page crashes with an "out of memory" error.

Is there any solution I could try?

发布评论

评论列表(0)

  1. 暂无评论