count(1) 与 count(*) 查询效率对比
摘要:1. count(1) and count(*) 当表的数据量大些时,对表作分析之后,使用count(1)还要比使用count(*)用时多了! 从执行计划来看,count(1)和count()的效果是一样的。但是在表做过分析之后,count(1)会比count()的用时少些(1w以内数据量),不过差
阅读全文
linux运行jar、nohup: ignoring input and redirecting stderr to stdout
摘要:在linux服务器上运行Jar文件时通常的方法是: $ java -jar test.jar //这种方式特点是ssh窗口关闭时,程序中止运行.或者是运行时没法切出去执行其他任务 jar在后台运行的方法: 方法一: $ nohup java -jar test.jar & //nohup 意思是不挂
阅读全文