当前位置:网站首页>A solution of C batch query
A solution of C batch query
2022-04-23 21:26:00 【Plant a sweet smell】
Business background :
Often receive similar needs from customers , The customer gave the internal staff of the company a excel, After that, you need to query the binding data or packaging data of the assembly line , There is no good interface for users to query
Solution :
1. Write SQL Script , Start splicing SQL, After that, it takes time and effort ;
2. The characters used in the text input box in the program are limited , about 5 More than 10000 data are powerless ;
New solution :
SqlSugar(ORM)+NPOI+sqlBulk( For big data (10 More than ten thousand ) Under the circumstances )
advantage :
1.SqlSugar(ORM) Provides an interface to interact with the database , And it's good to avoid sql Injection and sql error ; It's really quick to get started , Basically, if you look at the official documents and examples, you can almost ; this ORM It's open source. , quite a lot .NET All the big factories are using
SqlSuagr Official website address :http://www.codeisbug.com/Home
2.NPOI Provides operation methods for documents , And avoid not installing Microsoft excel The embarrassment of the special version , The specific packaging method is shown in MESCommon
3.sqlbulk Provide for the right to excel Operation of document mass data , Insert 100 10000 pieces of data to the database takes about 30S;
Compare the performance of mass data operations :
Code demo address :https://blog.csdn.net/baidu_29047977/article/details/90515682
3.SqlSugar It's a very useful Orm frame , In some performance , Better than Microsoft's EF The framework is also superior
matters needing attention
1. For operations with large data , Try not to use For loop ;
2. For batch query of data , Try to use the middle table ;
版权声明
本文为[Plant a sweet smell]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/110/202204200619556909.html
边栏推荐
- Mysql database common sense storage engine
- Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling
- Sklearn function: Train_ Test_ Split (split training set and test set)
- The computer is out of power. How did I pass the terrible interview of Tencent cloud?
- [※ leetcode refers to offer 46. Translate numbers into strings (medium)]
- [leetcode refers to offer 10 - I. Fibonacci sequence (simple)]
- DW basic tutorial (I)
- wait、waitpid
- Keras. Layers introduction to various layers
猜你喜欢
![[leetcode sword finger offer 10 - II. Frog jumping steps (simple)]](/img/ab/698810f6fe169adffc3bec5e0dc13f.png)
[leetcode sword finger offer 10 - II. Frog jumping steps (simple)]

Prim、Kruskal
![[※ leetcode refers to offer 48. The longest substring without repeated characters (medium)]](/img/fa/99b64267fd890c6c40847548f077b3.png)
[※ leetcode refers to offer 48. The longest substring without repeated characters (medium)]
![[leetcode refers to offer 27. Image of binary tree (simple)]](/img/65/85e63a8b7916af058d78d72d775530.png)
[leetcode refers to offer 27. Image of binary tree (simple)]

thinkphp5+数据大屏展示效果

Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
![[leetcode refers to the substructure of offer 26. Tree (medium)]](/img/53/b34ed5f46706f80bc1a9fcdb1481ae.png)
[leetcode refers to the substructure of offer 26. Tree (medium)]

Deep understanding of modern mobile GPU (continuously updating)

Reentrant function

On the three paradigms of database design
随机推荐
Two Stage Detection
Problem brushing plan -- dynamic programming (III)
MySQL advanced common functions
Common commands of MySQL in Linux
Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
Thread safe sigleton (singleton mode)
Question brushing plan - depth first search (II)
阿里又一个“逆天”容器框架!这本Kubernetes进阶手册简直太全了
Minecraft 1.12.2 module development (43) custom shield
[SDU chart team - core] enumeration of SVG attribute class design
airbase 初步分析
Addition, deletion, modification and query of MySQL advanced table
DW basic course (II)
【SDU Chart Team - Core】SVG属性类设计之枚举
[※ leetcode refers to offer 32 - II. Print binary tree II from top to bottom (simple)]
Pytorch selects the first k maximum (minimum) values and their indexes in the data
Detectron2 usage model
Rust更适合经验较少的程序员?
Tencent cloud has two sides in an hour, which is almost as terrible as one side..
Some thoughts on super in pytorch, combined with code