原文地址:https://www.citusdata.com/blog/2018/03/06/postgres-planner-and-its-usage-of-statistics/,本文统一将原文中的“planner”译做“优化器” 如果您对Postgres进行了一些性能优化,则可能使用过EXP ...
分类:
其他好文 时间:
2020-07-16 00:02:27
阅读次数:
64
和散列存储着键与值之间的映射关系类似,有序集合也存储着成员与分值之间的映射,并且提供了分值处理命令,以及根据分值大小有序地获取(fetch)和扫描(scan)成员和分值的命令。这里介绍一些常用命令,以及在 Yii 中的使用。 ZADD ZADD:ZADD key-name score member ...
分类:
其他好文 时间:
2020-07-12 13:59:38
阅读次数:
58
背景 Redis是基于内存的KV数据库,内存作为存储介质,关注其内存的使用情况是一个重要指标,解析其内部的存储信息是给出优化方法和维护的最基本要求。解析内存有二种方法:第一个是通过scan遍历所有key,针对每个key进行分析(memory usage);第二个是基于RDB文件进行所有key的分析( ...
分类:
数据库 时间:
2020-07-11 10:05:03
阅读次数:
64
A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, the string s = aba ...
分类:
其他好文 时间:
2020-07-11 00:16:01
阅读次数:
65
题目链接: 「模板」负环 解释 不要deque,否则会出错,就是可能会都判为有负环 用queue是正常的 自己的出错数据 正确答案为:NO(应该是无负环) Code #include <cstdio> #include <cstring> #include <algorithm> #include ...
分类:
其他好文 时间:
2020-07-10 21:11:28
阅读次数:
65
下面开始列举 #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { ////输入输出 printf("Hello world!"); printf("\r\n"); printf("Number = %d" ...
分类:
其他好文 时间:
2020-07-10 17:07:05
阅读次数:
77
gate 用时:60min,几乎全是照题解写的,所以没什么bug 题目大意: 给定一个$N\times M$的天空,$T$个$P*Q$的星座,求有几个星座在天空中出现。 星空由 \('\ *\ '\) 和 \('\ 0\ '\) 组成。 多组数据,$1 \le N, M \le 1000, 1 \l ...
分类:
其他好文 时间:
2020-07-10 13:13:24
阅读次数:
51
package com.sjw.hbase; import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.hbase.*;import org.apache.hadoop.hbase.client.*;import org ...
模板 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<complex> #define maxn 4000010 #define PI (acos(-1.0)) using namespac ...
分类:
其他好文 时间:
2020-07-09 12:31:09
阅读次数:
80
调取手机摄像头 <view @click="scan">扫码验证</view> scan() { //扫码验证 var _this = this; uni.scanCode({ onlyFromCamera: true, //为true只允许相机扫码,不加允许相册扫码 success: functi ...
分类:
移动开发 时间:
2020-07-08 18:08:34
阅读次数:
464