Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
Prefetching table contents?
Patrick
2013-09-15 07:42:41.0
In our setting, we have a small number of tables (10) with few thousand rows in each table. Our application runs a lot of small queries on these tables, mostly with less than 10 result rows; many queries even have empty results.

This takes quite some time (several minutes, including the application overhead of processing the data).

Simply dumping the entire contents of all tables into a text file takes just 2-3 seconds.

The application logic for processing similar data from an XML file also takes roughly 10 seconds.

So I think that this high number of queries may be the bottleneck (apart from the application logic to process the query results). Is it possible to prefetch the entire contents of these tables so that the actual queries do not need to access the mdb database file each time? Would that speed up the overall performance?

Best regards
Patrick
Re:Prefetching table contents?
HXTT Support
2013-09-15 07:52:48.0
>Is it possible to prefetch the entire contents of these tables so that the actual queries do not need to access the mdb database file each time?
> Would that speed up the overall performance?
It's possible. But the key is to use index. If you haven't index for your column in where clause, you can use a bigger delayedClose connection property. For instance, delayedClose=120 . A bigger maxCacheSize connection property. Then if your query is use PreparedStatement, for instance, select ... from atable where acolumn=? , it will use temporary index automatically.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap