`
dwjun236
  • 浏览: 21941 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论
文章列表
一个系统的数据库中已经存储了上千万条记录, 导致系统的运行速度慢,请写出检测系统运行速度慢慢的方案,以及解决这个问题的方案?
package com.zhlc.tree; import java.util.ArrayList; import java.util.List; /** * author:dwj <br> * desc: <br> * date: 2015-12-1 上午10:29:47<br> */ public class Tree {     private int id;     private String name;     private int parentId;     private List<Tree> children ...
今天在做Java练习的时候注意到了Java里面的一个随机函数——Random,刚开始只是知道这个函数具有随机取值的作用,于是上网搜索了资料一番,做了一下一些关于Random函数的总结: Java中存在着两种Random函数: 一、java.lang.Math.Rand ...
这里面看到了data -d参数的灵活用法,真是欣喜若狂。好东西要保存,整理整理:    * To print the date of the day before yesterday:           date --date='2 days ago'    * To print the date of the day three months and one day hence:           date --date='3 months 1 day'    * To print the day of year of Christmas in the current yea ...
//pluginList自定义排序(根据插件版本)             Collections.sort(pluginList, new Comparator<Plugin>()             {                 public int compare(Plugin arg0, Plugin arg1)                 {                     return arg1.getVersion().compareTo(arg0.getVersion());                 }             });
dbCfg.configure("hibernate.cfg.xml");             dbCfg.setProperty("hibernate.connection.username", SystemConfig.getDataBean().getUser());             dbCfg.setProperty("hibernate.connection.password", SystemConfig.getDataBean().getPassword());
package importDate; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; public class Test2 {     public static void main(String[] args) {         String url = "jdbc:oracle:thin:@10.71.181.25:1521:omsdb";         String username = "system" ...
int pageSize = 20000;                 // 整数除                 int totalPage = total / pageSize;                 // 余数                 int surplus = total % pageSize;                 if (surplus > 0) {                     ++totalPage;                 } //创建文件                 ExportUtil.createFile(e ...
Global site tag (gtag.js) - Google Analytics