当前位置:网站首页>Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
2022-06-24 23:25:00 【abckingaa】
About environmental construction ,Bee Basic use of , I won't go into it here .
Yes , You can see the previous article .
One 、 design sketch

home page
Two 、 use ORM Bee operation 1 10000 pieces of data to test the performance
Briefly explain Suid, SuidRich.
Suid It contains simple select,update,insert,delete Interface method of operation .
SuidRich There are more diverse methods , Like complex queries , Batch insert , Aggregate query, etc .
2.1 Batch insert 1w data
public int testBatchInsert10000Div2() {
Tb_inaccount a;// The naming is not standard , Suddenly learn . Just to test more scenes
String addr="aaa";
List<Tb_inaccount> list=new ArrayList<>();
for (int i = 1; i <= 10000; i++) {
a=new Tb_inaccount();
a.setid(i);
a.setMark(addr+i);
a.setMoney(0.618);
list.add(a);
}
return suidRich.insert(list,5000);
}2.2 Inquire about 1w Data
public void testQuery10000() {
// return suidRich.select(new Tb_inaccount(), 0, 10000);
for (int i = 0; i < 10; i++) { // branch 10 Batch check
suidRich.select(new Tb_inaccount(), i*10000, 1000);
}
}2.3 Will insert 1w The data has been deleted
public int testDelete10000() {
return suidRich.delete(new Tb_inaccount());
}3、 ... and 、 Run and view the results
1、 Start simulator
2、 Click on [ Performance testing ] Button

Performance rendering
This performance is not bad . I saw , You will know HarmonyOS How many cows are there !!
Compare with other platforms or tools , You can see the gap .

Source code address ( Open source is not easy , Remember to point star Oh ^_^):
ORM Bee Simple and easy to use , The file is small , Good performance ; Support at the same time Android and Harmony, And support JDBC ( Can be found in JavaWeb And so on ).
stay Harmony and Android Two environments , It can be used The same set of Bee Code access DB, Improve code reuse , Save manpower and materials .
Bee, The new era of the Internet Java ORM Tools , faster 、 It's simpler 、 More automatic , Fast development speed , Run fast , More intelligent !
Bee website :
https://github.com/automvc/bee
Bee stay gitee The website of :
bee: Bee, The new era of the Internet Java ORM frame , faster 、 It's simpler 、 More automatic , Fast development speed , Run fast , More intelligent !
bee-ext:
https://github.com/automvc/bee-ext
边栏推荐
- [JS] - [linked list - application] - learning notes
- 国内有哪些好的智能家居品牌支持homekit?
- Financial management [1]
- 二分查找数组下标
- R语言dplyr包select函数将dataframe数据中的指定数据列移动到dataframe数据列中的第一列(首列)
- Laravel authentication module auth
- R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、自定义FUN参数为多个统计量函数名称的列表计算多个统计量
- [basic knowledge] ~ half adder & full adder
- Building Survey [1]
- R语言dplyr包group_by函数和summarise_at函数计算dataframe计算不同分组的计数个数和均值(Summarise Data by Categorical Variable)
猜你喜欢

07_ Springboot for restful style

案例解析:用「度量」提升企业研发效能|ONES Talk

What good smart home brands in China support homekit?

Fibonacci

Tech talk activity review kubernetes skills of cloud native Devops
![[JS] - [array application] - learning notes](/img/8a/808fde0cc86e0ec5e1f5558ba196b4.png)
[JS] - [array application] - learning notes

22map introduction and API

Actipro WPF Controls 2022.1.2

RT-thread使用rt-kprintf
Mycms we media CMS V3.0, resource push optimization, new free template
随机推荐
No main manifest attribute in jar
Docker-mysql8-master-slave
R语言使用MatchIt包进行倾向性匹配分析、使用match.data函数构建匹配后的样本集合、对匹配后的样本的不同分组对应的目标变量的均值进行Welch双样本t检验分析、双独立样本t检验
[JS] - [array, Stack, queue, Link List basis] - Notes
宁德时代定增450亿:高瓴认购30亿 曾毓群仍控制23%股权
从客户端到服务器
01_ Getting started with the spingboot framework
How to add Google maps to a project
R language uses the polR function of mass package to build an ordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the confidence
Laravel pagoda security configuration
Installation and deployment of ganglia
常用正则表达式
Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis
golang map clear
Chapter VI skills related to e-learning 5 (super parameter verification)
Financial management [5]
[JS] - [string - application] - learning notes
Blogs personal blog test point (manual test)
UNION ALL UNION FULL JOIN
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!
https://gitee.com/aiteasoft/HarmonyOS-ORM-Bee-Demo