Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

Persistent classes: hashing generic query requests

$
0
0

Hi to everybody,

 

This is the third part of my blog about using persisntent classes as a quick tool for generating query classes and convenient reusing of them.

 

This is the beginning:

 

Part 1:

Persistent classes: revival of a spirit. Query by range.

 

and part 2:

Persistent classes: single get( ) method instead of multiple get_xxx() methods calls

 

 

Using this query class I figured out that in the case when we use the same request twice, we do the selection every time.

 

To improve the performance we need to create some buffer for retrieving previously selected requests.

 

So what we have as incoming parameters: request that is represented by a structure of any type and agent class.

 

Снимок.PNG

To solve this abstract task I decided to use serialization technique again.

Снимок.PNG

 

To be honest this is the first time I applied such a logic based on serialization and checksum calculation.

 

Has anyone used similar methods for generic hashing of anything? What is your opinion about overall performance: frequently called transormations and checksum calculations.

 

Thanks.

 

The full example you can find here: ZCL_OS_API


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>