Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.252
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.251
  HXTT DBF 7.1.252
  HXTT Excel 6.1.255
  HXTT Json 1.0.223
  HXTT Paradox 7.1.251
  HXTT PDF 2.0.251
  HXTT Text(CSV) 7.1.251
  HXTT Word 1.1.251
  HXTT XML 4.0.252
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 | Sitemap