针对不同的业务需求来选择mysql存储引擎。 1.采用MyISAM引擎
- R/W>100:1且updae相对较少。
- 并发不高,不需要事务。
- 表数据量小。
- 硬件资源有限。
2.采用InnoDB引擎
给我一个需求,还你一个项目——别管它是什么。这就是全栈。
针对不同的业务需求来选择mysql存储引擎。 1.采用MyISAM引擎
2.采用InnoDB引擎
Pick your MySQL storage engine according to the different business requirements. 1. Go with the MyISAM engine
前辈们总结的经验,学习、学习。
1.尽量避免在列上进行运算,这样会导致索引失效。
例如:SELECT FROM t WHERE YEAR(d) >=2011; 优化为:SELECT FROM t WHERE d >=’2011-01-01’;
2.使用JOIN时,应该用小结果集驱动大结果集。
同时把复杂的JOIN查询拆分成多个QUERY。因为JOIN多个 表时,可能导致更多的锁定和堵塞。 SELECT * FROM a JOIN b ON a.id=b.id LEFT JOIN c ON c.time=a.date LEFT JOIN d ON c.pid=d.aid LEFT JOIN e ON e.cid=a.did
Experience summarized by the veterans — let’s learn from it.
1.Try to avoid performing operations on columns, as this makes the index unusable.
For example: SELECT FROM t WHERE YEAR(d) >=2011; optimized to: SELECT FROM t WHERE d >=’2011-01-01’;
2.When using JOIN, the small result set should drive the large result set.
At the same time, split complex JOIN queries into multiple QUERYs. Because joining multiple tables can lead to more locking and blocking. SELECT * FROM a JOIN b ON a.id=b.id LEFT JOIN c ON c.time=a.date LEFT JOIN d ON c.pid=d.aid LEFT JOIN e ON e.cid=a.did
无意间发现shodan可以搜索任何联网的设备(不多解释,你懂的)。在kali系统中可以配置shodan,也就是说你不用去 https://www.shodan.io/官网上搜索了,在kali终端直接敲命令就可以了。 首先,在shodan注册个免费账户 NO.1 
I stumbled on the fact that shodan can search any internet-connected device (no need to explain further, you know what I mean). You can configure shodan in a kali system — that is, you don’t have to go to the official https://www.shodan.io/ site to search; you can just type commands directly in the kali terminal. First, register a free account on shodan NO.1 
突然发现centos自带的火狐浏览器好卡,打开网页速度太慢了。就尝试装个谷歌浏览器,结果报错。
如下: http://dl.google.com/linux/rpm/stable/x86\_64/repodata/repomd.xml: [Errno 14] curl#7 - “Failed to connect to 2404:6800:4005:800::200e: 网络不可达” 反反复复换了几个地方都不行(网址被封了),干脆把镜像源换了。
I suddenly noticed that the Firefox browser that ships with CentOS was terribly laggy, and web pages opened far too slowly. So I tried installing Google Chrome, and got an error.
As follows: http://dl.google.com/linux/rpm/stable/x86\_64/repodata/repomd.xml: [Errno 14] curl#7 - “Failed to connect to 2404:6800:4005:800::200e: Network is unreachable” I tried several different places over and over with no luck (the address is blocked), so I simply swapped out the mirror source.
Reboot the Linux CentOS 7 system, then use the arrow keys to select the corresponding system in the screenshot below and press the “e” key.
CentOS 7下安装最新的Wine(wine1.7.33)可谓一波三折,对于我这种菜鸟级别的人来说,真不好装!不过好在终于能够使用了。
下面记录安装过程:以后有时间在详细叙说安装的各个步骤:
CentOS 7安装可以仿照:The right way to install Wine on CentOS 6 64bit 里面给出了详细步骤,下面就是仿照其安装的!
Installing the latest Wine (wine 1.7.33) on CentOS 7 was full of twists and turns. For a rookie like me, it really wasn’t easy to install! But thankfully I finally got it working.
Here’s a record of the installation process; I’ll describe each step in detail later when I have time:
Installing on CentOS 7 can follow: “The right way to install Wine on CentOS 6 64bit”, which gives detailed steps, and what follows imitates that installation!
深圳市人力资源和社会保障局:12333
福田区人力资源局:82918291-207
罗湖区人力资源局:25438399
南山区人力资源局:26665374
盐田区人力资源局:25228211
宝安区人力资源局:29990000
龙岗区人力资源局:28917170
光明新区社会建设局:88211961
坪山新区社会建设局:84649869
龙华新区社会建设局:23336155
大鹏新区社会建设局:28333608
Shenzhen Municipal Human Resources and Social Security Bureau: 12333
Futian District Human Resources Bureau: 82918291-207
Luohu District Human Resources Bureau: 25438399
Nanshan District Human Resources Bureau: 26665374
Yantian District Human Resources Bureau: 25228211
Bao’an District Human Resources Bureau: 29990000
Longgang District Human Resources Bureau: 28917170
Guangming New District Social Construction Bureau: 88211961
Pingshan New District Social Construction Bureau: 84649869
Longhua New District Social Construction Bureau: 23336155
Dapeng New District Social Construction Bureau: 28333608
深圳人可以拨打以下电话查询社保、公积金信息。比如提取住房公积金、贷款;医保报销的比例;怎样才能生育保险、享受待遇;漏交社保要怎么补缴、换地方工作后社保要怎么转移等等问题。
People in Shenzhen can call the numbers below to check social security and housing fund information — for example, withdrawing from the housing provident fund, loans, the reimbursement ratio for medical insurance, how to get maternity insurance and the benefits it gives you, how to make up missed social security payments, how to transfer your social security after changing jobs, and so on.
Two levels of nested foreach threw an error,
Invalid argument. I debugged it myself for a long time without solving it. On Baidu I found an answer someone had given: $array =array(); if (is_array($array) && count($array)>0 ){ foreach($array as $val){ } } Add a check for foreach, and the whole problem is solved.
360浏览器好垃圾,竟然默认兼容模式,css3好多不支持。 从网友中得到这样的的答案,太给力了
360 Browser is such garbage — it defaults to compatibility mode, and lots of CSS3 isn’t supported. I got this answer from a fellow netizen, and it’s brilliant
没有找到匹配的文章 🙈