Comments (13)
继续 PO:
from accountcore.
这正是担心的问题.后续优化必须首要解决这个问题
from accountcore.
你有什么好的方法来解决这个问题
from accountcore.
模拟 3个人看报表, 1个人做凭证的量, 10用户同时在线,每秒并发4的情况下测试的结果
from accountcore.
这个工具没接触过,后面要向你学习
from accountcore.
关于科目余额计算, 这样设计你看一下:
from accountcore.
什么时候触发计算
from accountcore.
开启 works = 3
20用户并发 4
from accountcore.
这次有没有出现 could not serialize access to concurrent update这个错误?
from accountcore.
@mrshelly 能不用新在新增修改凭证的时候,用新的进程更新科目余额表,按队列方式处理更新科目余额表的并发?这样新增凭证速度会加快
from accountcore.
关于科目余额计算, 这样设计你看一下:
你给的cron方案一个是只能1分钟执行一次.时间长了.
线程的方式处理,在多进程下可能会有问题,这点我不确定.
按照目前的算法,用后台任务方式,预期新增,修改,删除会带来很多冲突要解决,难一保证科目余额表的数据准确
from accountcore.
你给的cron方案一个是只能1分钟执行一次.时间长了.
线程的方式处理,在多进程下可能会有问题,这点我不确定.
按照目前的算法,用后台任务方式,预期新增,修改,删除会带来很多冲突要解决,难一保证科目余额表的数据准确
两个点触发的。 一个是靠系统 cron 触发, 即最小粒度为 1min 另一个是每次业务凭证生成时的一次触发调用。本身cron 是另起线/进程的, 所以是异步方式的。
我上面的图讲的就是你所说的新的线/进程进行余额表更新。
from accountcore.
已经加锁
from accountcore.
Related Issues (20)
- 红冲凭证
- web接口
- 核算机构列表突出显示当前机构,添加快速切换按钮
- 修复现金流量表机构,取数期间等无反应
- 发送审核
- 凭证摘要库 HOT 1
- 银行等科目结算方式和结算号
- 凭证关联生成
- 按用户设置机构权限 HOT 1
- 周期性待摊预提凭证
- 期末检查功能
- 期初数据导入 HOT 1
- 凭证导入 HOT 1
- 机构显示账务进度 HOT 1
- 机构显示启用账期等
- 凭证三种编号都显示出来
- 科目明细账查询显示科目余额表类似过滤条件
- 明细账查询栏显示合计和累计栏显示余额
- 保存查询方案
- odoo12安装成功后打开总账模块报错Error: QWeb2: Template 'accountcore.list2excel_t' not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accountcore.