最近有個功能需要查詢資料庫中某天內的資料,而資料的時間是timestamp 格式,這樣我在查詢時,就有2中選擇select * from tuples where datediff(created_on,'2008-07-09')=0select * from tuples where date_format(created_on,'%Y-%m-%d')='2008-07-09'資料庫中的資料量很大,超過400萬條。對比了下執行時間 Showing rows 0 - 29 (175
用nginx+tomcat來代替apache+jk+tomcat #wget http://sysoev.ru/nginx/nginx-0.6.26.tar.gz #tar zxvf nginx-0.6.26.tar.gz #cd nginx-0.6.26 #[root@test nginx-0.6.26]# ./configure ./configure: error: the HTTP rewrite module requires the PCRE library. You can ei
durable是為了防止宕機等異常而導致訊息無法及時接收設計的。這個對queue無太多影響,但對topic影響比較大。本文引用http://activemq.apache.org/how-do-durable-queues-and-topics-work.html 對queue的影響Durable queueskeep messages around persistently for any suitable consumer to consumethem. Durable queues do
Yale, I am a dev lead in Shenzhen, China. I am reading the two books of 微軟360度:企業和文化/成功與成長 recently. I think these books are very helpful especially for Chinese MS employees. By comparing the book with my experiences in MS, I find the book like
參見原書P130《高科技人才管理的五個方程式》 A. IT=IQ+IP——你得有IQ 金子總會發光的,金子並非在任何情況下都發光,你說你是金子,你得先證明你有金子的IQ。眾所周知,天才是1%的稟賦+99%的汗水,但事實上,1%的稟賦遠比99%的汗水重要。個體智力需要群體對撞激射火花,但只有個體智力與群體智力資源平均水平相當時,此等式才有可能成立。 B. E=MC2——你得有天時地利人和