设为首页 收藏本站
查看: 511|回复: 0

[经验分享] Mysql 5.0 hibernate 五百万数据查询

[复制链接]

尚未签到

发表于 2016-10-19 09:46:13 | 显示全部楼层 |阅读模式
  (support.XmlWebApplicationContext    412 ) Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1581593: display name [Root WebApplicationContext]; startup date [Tue Mar 27 01:33:55 CST 2007]; root of context hierarchy
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-dao.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-hibernate.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-index.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-indexService.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-resources.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-service.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-userDao.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from file [G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\test\util\applicationContext-userService.xml]
(xml.XmlBeanDefinitionReader         323 ) Loading XML bean definitions from URL [file:/G:/haiwooo/workspace/sky/WebRoot/WEB-INF/classes/test/util/action-servlet.xml]
(support.XmlWebApplicationContext    427 ) Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1581593]: org.springframework.beans.factory.support.DefaultListableBeanFactory@458f41
(config.PropertyPlaceholderConfigurer 178 ) Loading properties file from class path resource [mail.properties]
(support.DefaultListableBeanFactory  414 ) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@458f41: defining beans [dao,orderTaskDao,orderDao,userCountDao,sessionFactory,transactionManager,indexDao,bookDao,companyDao,indexManager,companyManager,propertyConfigurer,dataSource,baseManager,userDao,org.springframework.aop.config.internalAutoProxyCreator,userManagerTx,userManagerSecurity,managerTx,orderManagerTx,txAdvice,userManagerTxAdvice,userSecurityAdvice,manager,userManager,userCache,orderManager,userCountManager,orderOpration,orderManagerTxAdvice,loginAction,registAction,fileDownLoadAction,commandIndexAction,adminIndexAction,indexAction,companyAction,mergeAction,orderAction,eventAction,eventCrimeAction]; root of factory hierarchy
(cfg.Environment                     514 ) Hibernate 3.2.6
(cfg.Environment                     547 ) hibernate.properties not found
(cfg.Environment                     681 ) Bytecode provider name : cglib
(cfg.Environment                     598 ) using JDK 1.4 java.sql.Timestamp handling
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\common\CarForumDetail.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.common.CarForumDetail -> test
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\common\ForumRole.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.common.ForumRole -> Forum_Role
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\Company.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.Company -> company
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\Count.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.Count -> count
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\CrimeEvent.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.CrimeEvent -> crime_event
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\GoodsStorage.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.GoodsStorage -> goods_storage
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\hainan\HaiKouCarForum.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.hainan.HaiKouCarForum -> Hai_Kou_Car_Forum
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\hainan\HaiKouCarForumDetail.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.hainan.HaiKouCarForumDetail -> Hai_Kou_Car_Forum_Detail
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\hainan\HaiKouCarForumReply.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.hainan.HaiKouCarForumReply -> Hai_Kou_Car_Forum_Reply
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\hainan\TestTable.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.hainan.TestTable -> test_table
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\index\Book.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.index.Book -> book
(cfg.HbmBinder                       873 ) Mapping joined-subclass: com.sky.model.pojo.index.NewsBook -> news_book
(cfg.HbmBinder                       873 ) Mapping joined-subclass: com.sky.model.pojo.index.CommandBook -> command_book
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\index\BookAddress.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.index.BookAddress -> book_address
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\index\BookCatalog.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.index.BookCatalog -> book_catalog
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\Industry.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.Industry -> industry
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\MergerCompany.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.MergerCompany -> merger_company
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\Order.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.Order -> orders
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\Role.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.Role -> role
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\SystemInfo.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.SystemInfo -> system_info
(cfg.Configuration                   305 ) Reading mappings from file: G:\haiwooo\workspace\sky\WebRoot\WEB-INF\classes\com\sky\xml\hibernate\com\sky\model\pojo\User.hbm.xml
(cfg.HbmBinder                       300 ) Mapping class: com.sky.model.pojo.User -> user
(cfg.HbmBinder                       1419) Mapping collection: com.sky.model.pojo.User.roles -> user_role
(cfg.HbmBinder                       2382) Mapping collection: com.sky.model.pojo.hainan.HaiKouCarForum.list -> Hai_Kou_Car_Forum_Reply
(cfg.HbmBinder                       2382) Mapping collection: com.sky.model.pojo.index.Book.catalogList -> book_catalog
(cfg.HbmBinder                       2382) Mapping collection: com.sky.model.pojo.index.Book.bookAddressList -> book_address
(cfg.HbmBinder                       2382) Mapping collection: com.sky.model.pojo.MergerCompany.crimeEventList -> crime_event
(hibernate3.LocalSessionFactoryBean  730 ) Building new Hibernate SessionFactory
(connection.ConnectionProviderFactory 72  ) Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@63b2e6)
   LogAbandoned: false
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
(cfg.SettingsFactory                 89  ) RDBMS: MySQL, version: 5.0.27-community-nt
(cfg.SettingsFactory                 90  ) JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.3 ( $Date: 2006-07-26 17:26:47 +0200 (Wed, 26 Jul 2006) $, $Revision: 5553 $ )
(dialect.Dialect                     152 ) Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
(transaction.TransactionFactoryFactory 34  ) Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
(transaction.TransactionManagerLookupFactory 33  ) No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
(cfg.SettingsFactory                 143 ) Automatic flush during beforeCompletion(): disabled
(cfg.SettingsFactory                 147 ) Automatic session close at end of transaction: disabled
(cfg.SettingsFactory                 154 ) JDBC batch size: 2000
(cfg.SettingsFactory                 157 ) JDBC batch updates for versioned data: disabled
(cfg.SettingsFactory                 162 ) Scrollable result sets: enabled
(cfg.SettingsFactory                 170 ) JDBC3 getGeneratedKeys(): enabled
(cfg.SettingsFactory                 178 ) Connection release mode: auto
(cfg.SettingsFactory                 202 ) Maximum outer join fetch depth: 2
(cfg.SettingsFactory                 205 ) Default batch fetch size: 1
(cfg.SettingsFactory                 209 ) Generate SQL with comments: disabled
(cfg.SettingsFactory                 213 ) Order SQL updates by primary key: disabled
(cfg.SettingsFactory                 217 ) Order SQL inserts for batching: disabled
(cfg.SettingsFactory                 386 ) Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
(ast.ASTQueryTranslatorFactory       24  ) Using ASTQueryTranslatorFactory
(cfg.SettingsFactory                 225 ) Query language substitutions: {}
(cfg.SettingsFactory                 230 ) JPA-QL strict compliance: disabled
(cfg.SettingsFactory                 235 ) Second-level cache: enabled
(cfg.SettingsFactory                 239 ) Query cache: disabled
(cfg.SettingsFactory                 373 ) Cache provider: org.hibernate.cache.NoCacheProvider
(cfg.SettingsFactory                 254 ) Optimize cache for minimal puts: disabled
(cfg.SettingsFactory                 263 ) Structured second-level cache entries: disabled
(cfg.SettingsFactory                 283 ) Echoing all SQL to stdout
(cfg.SettingsFactory                 290 ) Statistics: disabled
(cfg.SettingsFactory                 294 ) Deleted entity synthetic identifier rollback: disabled
(cfg.SettingsFactory                 309 ) Default entity-mode: pojo
(cfg.SettingsFactory                 313 ) Named query checking : enabled
(impl.SessionFactoryImpl             161 ) building session factory
(impl.SessionFactoryObjectFactory    82  ) Not binding factory to JNDI, no JNDI name configured
(hibernate3.HibernateTransactionManager 390 ) Using DataSource [org.apache.commons.dbcp.BasicDataSource@1cec874] of Hibernate SessionFactory for HibernateTransactionManager
(ehcache.EhCacheManagerFactoryBean   100 ) Initializing EHCache CacheManager
(config.ConfigurationFactory         127 ) No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/G:/haiwooo/workspace/sky/lib/ehcache-1.3.0.jar!/ehcache-failsafe.xml
===
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?
0 select to 1000=4829
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1 select to 1000=3890
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
4 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
9 select to 1000=3985
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
16 select to 1000=3953
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
25 select to 1000=3953
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
36 select to 1000=3984
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
49 select to 1000=3938
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
64 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
81 select to 1000=3968
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
100 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
121 select to 1000=3906
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
144 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
169 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
196 select to 1000=3938
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
225 select to 1000=3937
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
256 select to 1000=4016
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
289 select to 1000=4015
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
324 select to 1000=3907
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
361 select to 1000=3937
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
400 select to 1000=3891
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
441 select to 1000=3906
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
484 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
529 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
576 select to 1000=3906
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
625 select to 1000=3907
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
676 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
729 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
784 select to 1000=3890
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
841 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
900 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
961 select to 1000=3984
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1024 select to 1000=3891
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1089 select to 1000=3953
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1156 select to 1000=3953
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1225 select to 1000=3922
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1296 select to 1000=3906
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1369 select to 1000=3844
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1444 select to 1000=3953
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1521 select to 1000=3844
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1600 select to 1000=3844
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1681 select to 1000=3969
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1764 select to 1000=4000
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1849 select to 1000=3968
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
1936 select to 1000=3860
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
2025 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
2116 select to 1000=3890
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
2209 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
2304 select to 1000=3875
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times limit ?, ?
2401 select to 1000=3875
Hibernate: insert into test_table (date_Times, descriptions, names) values (?, ?, ?)
insert one=203
  =================================================
  测试结果
  没有任何关联但表
  普通查询 第一次 1300多毫秒
  其他平均 450毫秒
  使用like进行查询
  第一次 4829毫秒
  其他平均 4000毫秒
  这是没有经过任何的优化过程
  
  ======================================================
  Hibernate: insert into test_table (date_Times, descriptions, names) values (?, ?, ?)
Hibernate: select testtable0_.autoId as autoId9_, testtable0_.date_Times as date2_9_, testtable0_.descriptions as descript3_9_, testtable0_.names as names9_ from test_table testtable0_ where testtable0_.names like ? order by testtable0_.date_Times desc limit ?, ?
1 select to 1000=188
加了ehcahe二级缓存,第二查询用了 188毫秒
  188毫秒==========这个才是可以接受
  如果用户查询要花个4-5秒的时间等待那是一个很长的时间 或许蹲厕所的人不知道等厕所的人着急吧
  但怎么在用户查询之前缓存呢
  这个是个大问题
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-288291-1-1.html 上篇帖子: mysql in not in exist not exist 区别 下篇帖子: Amoeba for mysql 0.12(读写分离、负载均衡、Failover、数据切分)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表