码迷,mamicode.com
首页 >  
搜索关键字:from    ( 57817个结果
python pandas/numpy
import pandas as pdpd.merge(dataframe1,dataframe2,on='common_field',how='outer')replace NaNdataframe1.fillna(0) #replace NaN to 0transform from datafr...
分类:编程语言   时间:2015-05-21 12:13:32    阅读次数:190
SQL疑难杂症【5 】大量数据查询的时候要考虑结果为空的情况
最近几天怪事儿出奇的多,同一个工单、同一个产品,在A线可以正常生产,但是在H线死活都无法生产,系统直接提示TimeOut,监控发现有一条SQL语句执行缓慢,Copy出来仔细查看,很简单的一条语句,如下:SELECT TOP 1 LOT_ID FROM QS_WIP(NOLOCK) WHERE STA...
分类:数据库   时间:2015-05-21 12:09:29    阅读次数:151
nf_conntrack: table full, dropping packet解决方法
在添加magent代理后,做memcached测试的发现,如果并发很高,数据库的连接数居高不下,按理讲随着将key存入缓存中,连接数应该慢慢降下来才对,但是当并发低的时候却很正常。 由于在启动memcached时,加入了-vvv参数打印内部状态信息,查看日志: 29: going from conn_parse_cmd to conn_write 29: going from conn_wri...
分类:其他好文   时间:2015-05-21 10:57:43    阅读次数:140
mysql group by with rollup
1、普通的 GROUP BY 操作,可以按照部门和职位进行分组,计算每个部门,每个职位的工资平均值: mysql> select dep,pos,avg(sal) from employee group by dep,pos; +------+------+-----------+ | dep | pos | avg(sal) | +------+------+-----------+...
分类:数据库   时间:2015-05-21 10:57:29    阅读次数:224
Message Passing Leads to Better Scalability in Parallel Systems
Message Passing Leads to Better Scalability in Parallel SystemsRussel WinderPROGRAMMERS ARE TAUGHT from the very outset of their study of computing that concurrency—and especially parallelism, a specia...
分类:其他好文   时间:2015-05-21 10:53:55    阅读次数:147
oracle 内连接和外连接
内连接:就是我们平时的表连接,显示id相匹配的数据 SELECT * FROM a,b WHERE a.aid=b.bid仅仅取出的是匹配的数据。 外连接:分为左连接和右连接 左连接:首先取出左表(a表)的数据,然后加上与右表(b表)匹配的数据,(a表为驱动表,b表为匹配表) SELECT * FROM a LEFT JOIN b ON a.aid=b.bid; 等同于   ...
分类:数据库   时间:2015-05-21 10:53:06    阅读次数:142
【Leetcode】【Medium】Binary Tree Zigzag Level Order Traversal
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:其他好文   时间:2015-05-21 10:28:55    阅读次数:159
Delphi XE7中使用Moto 360
Hello Moto 360 from Delphi XE7(翻译版) 我真的很喜欢我的Moto 360手表。它看起来很棒,也很为我的Android手机的一种延伸,当然最重要的问题是如何使一个应用程序。仅使用RAD Studio X7,Delphi或C + +来设计app。由于新FireUI多设备....
分类:Windows程序   时间:2015-05-21 10:27:19    阅读次数:543
SQL疑难杂症【4 】大量数据查询的时候避免子查询
前几天发现系统变得很慢,在Profiler里面发现有的SQL执行了几十秒才返回结果,当时的SQL如下:可以看得出来,在652行用了子查询,恰巧目标表(QS_WIP)中的记录数为100000000+,通过如下SQL可以得到:SELECT ROWS FROM SYSINDEXES WHERE ID=OB...
分类:数据库   时间:2015-05-21 10:24:25    阅读次数:286
使用 golang 收集系统指标
common.go ``` // copy code from github.com/shirou/gopsutil package sys import ( "bufio" "os" "strings" ) // ReadLines reads contents from file and splits them by new line. // A convenience wrapper ...
分类:其他好文   时间:2015-05-21 09:19:30    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!