PostgreSQL Rank()窗口函数和Row_number()窗口函数的区别 2015-12-25 database 392 words 1 min read 创建测试表和数据 postgres=# create table test(n int); CREATE TABLE postgres=# insert into test(n) values (1); INSERT 0 1 postgres=# insert into test(n) values (1); Read more..
MySQL与PostgreSQL的 SELECT FOR UPDATE 2015-12-24 database 1274 words 3 mins read MySQL的行级锁 MySQL 版本: mysql> select version(); +------------+ | version() | +------------+ | 5.6.17-log | +------------+ 1 row in set (0.00 Read more..
彻底了解Spring-中-RabbitMQ配置的concurrency-和-task-executor(异步) 2015-12-18 java 4671 words 10 mins read 上一篇只是说了同步彻底了解Spring 中 RabbitMQ配置 Read more..
Nginx负载均衡Tomcat切换注意事项 2015-12-17 nginx 544 words 2 mins read 在生产环境使用nginx+tomcat做负载均衡。众所周知, Read more..
Java for-each 修改问题 2015-12-17 java 310 words 1 min read 问题 有一次在测试时,发现程序报如下类似错误: Exception in thread "main" java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at Read more..
PostgreSQL MAX()和Order by DESC limit 1 2015-12-17 postgresql 927 words 2 mins read 准备数据 postgres=# create table tmax (id int); CREATE TABLE postgres=# insert into tm tmax tmp1 postgres=# insert into tmax values (generate_series(1,100000000)); INSERT 0 100000000 postgres=# 一亿 Read more..
彻底了解Spring 中 RabbitMQ配置的concurrency 和 task-executor 2015-12-17 java 1008 words 3 mins read 问题 在生产环境中,突然发现有个Tomcat报如下类似错误: Caused Read more..
Spring 与 RabbitMQ 结合配置以及注意事项 2015-12-14 java 1258 words 3 mins read 主要是listener-container配置 <rabbit:listener-container connection-factory="rabbitConnectionFactory" error-handler="MessageErrorHandler" task-executor="myExecutor" concurrency="10"> </rabbit:listener-container> 属 Read more..
PostgreSQL将时间转换为Unix时间戳 2015-12-14 postgresql 289 words 1 min read 今天在群里,有个群友问: 请教一个问题,在pgsql中要怎么把 Read more..
tomcat 远程调试 2015-12-10 java 903 words 2 mins read 配置tomcat环境变量 cd $TOMCAT_HOME/bin/ 添加或编辑`setenv.sh` Read more..
Linux sort 命令详解 2015-12-09 linux 310 words 1 min read sort 它是一个按行排序的命令行工具. -b 或者 –ignore-leading-blanks 忽略开头的空格 -d 或者 Read more..
/etc/hostname 和 /etc/hosts 详解 2015-12-09 linux 593 words 2 mins read /etc/hostname 它表示的是在LAN(局域网)内的唯一主机名. ➜ ~ cat /etc/hostname yang ➜ ~ Read more..
Mac 上设置Emacs字体 2015-12-06 emacs 244 words 1 min read 更新完Mac OS X EI Capitan后,emacs的字体变得惨不 Read more..
RabbitMQ中的基本概念 2015-12-06 rabbitmq 2207 words 5 mins read RabbitMQ的工作流程 ----------------------- virtual host ------------------------------ | -> queue | |publisher -> exchange -> [binding] -> queue -> consumer Read more..