Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

The project is limited to basic examples to help app developer to implement delta token and skip token support to an existing XSOData service in context of SAP HANA Cloud Platform mobile services (This Repository has been archived upon Members choice)

License

Notifications You must be signed in to change notification settings

SAP-archive/hcpms-xso-high-volume-toolkit

Repository files navigation

Important Notice

We have decided to stop the maintenance of this public GitHub repository.

SAP HCPms XS OData High Volume Toolkit

This toolkit provides a simple API that lets you enhance your XS OData services with delta query and server-driven pagination support. In high-volume scenarios delta tokens help you reduce the network load between your server and its clients. Skip tokens provide a way to enforce server-side pagination, and therefore help you break down large result sets over multiple smaller requests. Both mechanisms can be leveraged to optimize the network load between your SAP Mobile Platform 3.0/HCP Mobile Services for Development & Operations.

These additional features are implemented in terms of a XS JavaScript service (generally referred to here as "wrapper") that processes provided delta tokens and skip tokens and translates them to plain XS OData. Server-side pagination will work out of the box, while you will need to have change tracking in terms of UTC timestamps implemented in your HANA system for delta queries to work.

Features

  • Individually applicable XSOData enhancements
  • Delta tokens
  • Skip tokens
  • Wrapper-level URL rewriting
  • Configuration
  • Maximum page size for server-driven pagination
  • Exposed change tracking fields
  • Wrapper-level change tracking information stripping (delta tokens)
  • System-wide, service-wide and per collection configuration granularity

Getting Started

  1. Download the latest release Delivery Unit (ODATA_UTIL_*)
  2. Import and configure the XS OData Utils Delivery Unit
  3. (Optional for delta queries) Implement change tracking for your data
  4. Wrap your XS OData service in XSJS
// com/example/wrapper/delta.xsjs
var oDataUtils = $.import('sap.odata.util', 'decorators');
var destination = $.net.http.readDestination('com.example.delta', 'xsodata');

oDataUtils
	.decorate(destination)
	.withDeltaTokens()
	.withSkipTokens()
	.withUrlRewriting()
	.and.applyDecorators();

Done!

Further Documentation

See "Delta Queries and Server-Side Pagination with XSOData.docx" for an in-depth guide from implementing change tracking to wrapper fine-tuning.

About

The project is limited to basic examples to help app developer to implement delta token and skip token support to an existing XSOData service in context of SAP HANA Cloud Platform mobile services (This Repository has been archived upon Members choice)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published