How to cache the connection for a K2 connect service instance

  • 16 February 2021
  • 0 replies
  • 53 views

Badge +6
 

How to cache the connection for a K2 connect service instance

KB000881

PRODUCT
K2 connect 4.7
BASED ON
K2 connect 4.7
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Introduction

When a K2 connect service instance is executed, the connection along with the structure of the object (not the data) is cached and used on subsequent executions. The cache is available during the current session of the K2 server and the first execution takes the normal amount of time, but subsequent executions are faster. If any errors occur or changes are made to the object the cache is invalidated.
The cache is a configurable setting that is disabled by default. To enable the caching perform the following steps:

Steps

  1. Open the SmartObject Service Tester.exe (SmartObject Tester Tool) located in C:\Program Files(x86)K2 blackpearlBin.
  2. Locate the required service instance.
  3. Right-click and Edit Service Instance.
  4. Change usecache – Required from false to true.
  5. Click Next.

Image

Note: Data from SAP is NOT cached - only the connection and the structure of the BAPI being executed is cached. This eliminates some calls to SAP to recreate the BAPI structure on each call. The first execution creates and caches the structures. If caching is enabled, memory usage of the K2 server increases and should be monitored.

 


0 replies

Be the first to reply!

Reply