Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
Prefetching table contents?
Patrick
2013-09-15 07:42:41
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
>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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap