高性能的索引策略 1 独立的列 “独立的列”:索引列不能是表达式的一部分,也不能是参数的参数,必须将索引列单独放在比较符号的一侧 mysql> select actor_id from sakila.actor where actore_id + 1 = 5;【X】 mysql> select .. ...
分类:
数据库 时间:
2020-01-27 15:37:23
阅读次数:
81
1. 创建二维表 -- create table 表名 ( -- 字段名1 字段类型 [not null] [primary key] , -- 字段名2 字段类型 check(条件判断), -- 字段名3 字段类型 , -- ... -- constraint 约束名 primary key(字段 ...
分类:
数据库 时间:
2020-01-22 16:13:50
阅读次数:
164
Python 官方文档 PEP484(类型提示)的译文,本人原创。 ...
分类:
编程语言 时间:
2020-01-22 14:24:38
阅读次数:
118
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9, and ...
分类:
其他好文 时间:
2020-01-22 10:56:58
阅读次数:
75
在Android上运行OpenGL ES程序需要用到GLSurfaceView控件,GLSurfaceView继承自SurfaceView并实现了GLThread,通过OpenGL ES进行绘制。 OpenGL ES1.0是基于OpenGL 1.3的,OpenGL ES1.1是基于OpenGL 1. ...
分类:
移动开发 时间:
2020-01-19 22:29:21
阅读次数:
135
Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to i + ar ...
分类:
其他好文 时间:
2020-01-17 13:27:34
阅读次数:
62
首先我先罗列一下前提 1、我的域名是xiangjiakang.cn -腾讯买的 2、我的服务器是阿里买的 3、ssl证书是阿里免费送的(https就靠这个证书!) 4、然后我先说明一下:我看了许多许多博客和阿里的帮助文档,按我的做一定会成功。(他们都没说特别明白,甚至有人长篇大论,恶心人) 5、我留 ...
分类:
Web程序 时间:
2020-01-16 14:53:41
阅读次数:
122
原题链接在这里:https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/ 题目: You have d dice, and each die has f faces numbered 1, 2, ..., f. Retur ...
分类:
其他好文 时间:
2020-01-15 13:57:57
阅读次数:
74
在解决了电脑产生的一系列问题之后成功安装了Android Studio,并在其自带的手机模拟器上成功运行了第一个App(Hello World!),通过这个最简单的App研究了App基本的工程结构,为以后的开发打下了一定的基础。因为我使用的是最新版的Android Studio,与旧版最大的不同是新 ...
分类:
移动开发 时间:
2020-01-13 22:06:03
阅读次数:
107
sql语句优化 性能不理想的系统中除了一部分是因为应用程序的负载确实超过了服务器的实际处理能力外,更多的是因为系统存在大量的SQL语句需要优化。 为了获得稳定的执行性能,SQL语句越简单越好。对复杂的SQL语句,要设法对之进行简化。 常见的简化规则如下: 1)不要有超过5个以上的表连接(JOIN)2 ...
分类:
数据库 时间:
2020-01-08 19:13:59
阅读次数:
89