Welcome to
Tweak Marketing official website!
Outlook Extraction Suite 2007 v.1.58
Outlook Extraction Suite 2007 v.1.58 has been released. Update it now.
 
download
Technical Support
  Overview
  Select SLA plan
  Knowledge Base
  Check current versions of our products
  Documentation
  Learning courses
  Helpdesk
  Live support
  Private Download
  Personal area

Home / Support / Documentation

• AEP Online Help Index

Caching in components working with data servers

Enable caching support whole session Enable caching support Processing components that work with data servers allow caching when connected to a server. Caching reduces the time of message processing by a rule list. This is ensured by the fact that connection to a data server is established only once and maintained as long as it's necessary. AEP uses caching in the following components:



Caching can be used:

  • for one message processing by a rule list
  • for the whole session, i.e. as long as all messages received in one account check are being processed


Caching is enabled on the Caching Tab in the component properties dialogue.

If you want to use caching, check the Enable Caching box. If you want to use caching for whole session, check the Enable Session Cache box.

Note: Besides making the processing faster, caching allows using special features of some databases. For example, when adding a line into MySQL table, identifier of the entry added can be parsed using the LAST_INSERT_ID function.

INSERT INTO CLIENT (id,email)
 VALUES(NULL,'<%Sender%>); # generate ID by inserting NULL
INSERT INTO ORDER (client,orderno)
 VALUES(LAST_INSERT_ID(),'<%OrderNo%>'); # use ID in second table

Database Access component allows executing only one SQL expression. So, two components are needed to perform the instructions. Without caching, LAST_INSERT_ID() will always return 0 in the second instruction. This happens because connection is terminated once the component with the first instruction is executed, and the value LAST_INSERT_ID is lost. Caching offers a solution for this problem.



 
 
Solutions | Products | Support | Price & Ordering | Partners | Blog & Articles | Company

Copyright © TweakMarketing 2006. All rights reserved.