Comments (8)
参考batchInsert() 超级快
[batchInsert] file_table 52724 2068ms
[batchInsert] tag_table 113603 1820ms
from shigureader.
不知道从sqlite迁移到mysql,性能会提升多少
from shigureader.
优化后的insertion表现
//时间秒/文件数
console.log("hdd without insertion")
console.log(1.139/1903*10000)
console.log(1.306/1903*10000)
console.log(1.184/1903*10000)
console.log("hdd")
console.log(1.184/1903*10000)
console.log(1.155/1903*10000)
console.log(1.124/1903*10000)
console.log("ssd")
console.log(1.586/2490*10000)
console.log(1.598/2490*10000)
console.log(1.525/2490*10000)
结论:scan的时候,固态和普通硬盘无差别
大约1000个文件,需要6.1秒
from shigureader.
优化后的insertion表现
无insertion
[chokidar] 1.699s scan complete. 2785
[chokidar] 1.847s scan complete. 2785
[chokidar] 1.769s scan complete. 2785
有insertion
[chokidar] 2.161s scan complete. 2785
[chokidar] 2.064s scan complete. 2785
[chokidar] 2.149s scan complete. 2785
from shigureader.
https://www.sqlite.org/speed.html
from shigureader.
https://www.cnblogs.com/hchxxzx/archive/2011/10/17/2215797.html
https://blog.csdn.net/talkingmute/article/details/104089049
from shigureader.
from shigureader.
原来sort性能比_.sortBy强好多啊
https://www.measurethat.net/Benchmarks/Show/14335/0/sortby-vs-js-sort
from shigureader.
Related Issues (20)
- Promise.allSettled vs Promise.all
- 报错 HOT 4
- 通过 Service workers 让 PWA 离线工作
- 页面打开后显示504 HOT 1
- Error: SQLITE_ERROR: no such table: main.history_table HOT 1
- Disable access to other paths HOT 1
- [笔记] Windows7支持不了
- 解压文件包含重复文件名bug HOT 3
- 能否release新的EXE版本? HOT 4
- thumbnail db是可以join的,但是...
- 适用的nodejs版本 HOT 1
- 确认端口是否被占用和被谁占用
- 🍑zip内部有emoji unicode的时候,拿不到thumbnail HOT 2
- 用nginx进行load balancing HOT 1
- Git 分支管理 HOT 1
- 请问有更新docker版的计划吗 HOT 4
- icon prompt HOT 1
- 关于.ehviewer文件 HOT 1
- 请求一个新版docker更新 HOT 2
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 shigureader.