当前位置:网站首页>0727~ sorting out interview questions
0727~ sorting out interview questions
2022-07-28 07:39:00 【Life is so hard】
Principles of index creation ?
where Judge the conditions often used ;
Do not use indexes for frequently updated columns ;
For columns that are rarely involved in queries , Don't index ;
Do not index classes with a small cardinality ;
When defining columns with foreign keys, you must build indexes ;
ArrayList and LinkList The difference between ?
ArrayList The bottom layer is based on dynamic array , and LinkList The bottom layer is based on a two-way linked list ;
ArrayList Quick query and modification , and LinkList Is to delete and add fast ;
What is the parent delegate model ?
In the class loader , Delegating up is looking for cache , Then delegate down to find the loading path ;
Delegate up to the top loader , Delegation down is until the initiated loader ;
stay mybatis in $ and # The difference between ?
mybatis Medium $ It's string concatenation , stay sql I will put ${} Switch to statement Assign values to variables directly , So there will be sql Injection problem ;
mybatis Medium # It's a placeholder , Pre compile , stay sql I will put #{} Switch to ?, And then use preperdstatement Assign a value to a variable , So it can effectively prevent sql Injection problem ,
MySql Have the slow queries in it been counted ? How to optimize ?
First, look at what causes slow queries , Is an index miss , Or is the judgment condition of the query statement loaded with more data , Or the amount of data is too large ;
First check whether the index hits , Then modify the query statement , Hit the index as much as possible ;
Check whether the query statements and judgment conditions have loaded redundant data , It invalidated the index , Then modify the statement ;
See if the database is too large , Resulting in slow query , It is necessary to divide the database and table ;
Three paradigms of database ?
The first paradigm : Columns and data cannot be further divided , Keep the data atomic , No more data ;
The second paradigm : Data records are unique , A watch can only say one thing ;
The third paradigm : The data in the database cannot have a transfer relationship , It must have a direct relationship with the primary key , It cannot be an indirect relationship ;
Runnable and callable The difference between ?
Runnable Interface has no return value ,callable Interface has a return value ;
Runnable The interface cannot catch exceptions ,callable Can catch exceptions ;
边栏推荐
- DNA修饰贵金属纳米颗粒|DNA修饰纳米铜颗粒CuNPS-DNA|研究要点
- 2022年湖南工学院ACM集训第五次周测AD题题解
- How low-end computers learn secrets in depth - using the mistgpu computing platform
- 两个星期学会软件测试?我震惊了!
- The net loss of users occurred again, and China Mobile, which lost face, launched ultra-low price packages to win users
- 常用电子产品行业标准及认证
- 再次出现用户净流失,大失颜面的中国移动推出超低价套餐争取用户
- 调整数组顺序使奇数位于偶数前面——每日两题
- XMPP Service Research (II) prosody create account
- Copper indium sulfide CuInSe2 quantum dots modified DNA (deoxyribonucleic acid) DNA cuinse2qds (Qiyue)
猜你喜欢

深入剖析单例模式的实现

And is two numbers of S - two questions per day

一口气学完4种 Redis 集群方案,真是各有千秋

YOLO系列损失函数详解

再次出现用户净流失,大失颜面的中国移动推出超低价套餐争取用户

和为s的两个数字——每日两题

Why is ESD protection so important for integrated circuits? How to protect?
![[Google] solve the problem that Google browser does not pop up the account and password save box and cannot save login information](/img/b3/2592e941f5d8f3505fb9763e8947a6.png)
[Google] solve the problem that Google browser does not pop up the account and password save box and cannot save login information

VCF file production

Eventbus of guava
随机推荐
登录模式:单一服务器模式、单点登录、token模式
How to connect the uniapp project to the real mobile phone for debugging
Summary of project experience
Student duty problems
EMC整改方法集合
The "nuclear bomb level" log4j vulnerability is still widespread and has a continuing impact
Modify the conf file through sed
4.1.4 why set the member variable to private
XMPP Service Research (II) prosody create account
Don't be afraid of ESD static electricity. This article tells you some solutions
5g commercial third year: driverless "going up the mountain" and "going to the sea"
2022年湖南工学院ACM集训第五次周测AD题题解
The penultimate node in the linked list - Double finger
DNA脱氧核糖核酸修饰金属铂纳米颗粒PtNPS-DNA|科研试剂
Heroku operation summary
(daily question) - the longest substring without repeated characters
【google】解决google浏览器不弹出账号密码保存框且无法保存登录信息问题
JUC原子类: CAS, Unsafe、CAS缺点、ABA问题如何解决详解
Industry standards and certification of common electronic products
Map uses tuple to realize multiple value values