当前位置:网站首页>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 ;
边栏推荐
- Principle and configuration of redis master-slave replication
- Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots
- 常用电子产品行业标准及认证
- EMC rectification ideas
- MySQL字段 不推荐使用 Null 的理由
- Introduction to magnetic ring selection and EMC rectification skills
- EMC's "don't come back until you rectify"
- (daily question) - the longest substring without repeated characters
- 面试中必不可少的性能优化专题~
- Earliest deadline first (EDF)
猜你喜欢
随机推荐
MySQL基础知识学习(二)
【无标题】
Near infrared two region agzs quantum dots wrapped deoxyribonucleic acid dna|dna agzsqds (Qiyue)
Student duty problems
指针进阶练习
Shortest seek time first (SSTF)
Map uses tuple to realize multiple value values
How to connect the uniapp project to the real mobile phone for debugging
【青鸟学员故事】追风少年“李晓亮”
5G 商用第三年:无人驾驶的“上山”与“下海”
Disassemble Huawei switches and learn Basic EMC operations
两个星期学会软件测试?我震惊了!
“核弹级” Log4j 漏洞仍普遍存在,并造成持续影响
DNA修饰金属铑Rh纳米颗粒RhNPS-DNA(DNA修饰贵金属纳米颗粒)
Safflower STL
Merge two sorted linked lists - two questions per day
After learning the four redis cluster solutions at one go, each has its own merits
DNA-CuInSeQDs近红外CuInSe量子点包裹脱氧核糖核酸DNA
DNA修饰金属锇Os纳米颗粒OsNPS-DNA|DNA修饰金属铱纳米颗粒IrNPS-DNA
Learn software testing in two weeks? I was shocked!









