<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Server-Side Cache in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427080#M3781209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mauricio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;SAP Gateway 2.0 SP09 has been released on July 16, 2014. You can find details of Stateful Behavior of&amp;nbsp; Gateway in blog &lt;A __default_attr="56634" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="What's new in SAP Gateway 2.0 SP9?" href="https://community.sap.com/"&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp; and also in the below links&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/saphelp_gateway20sp09/helpdata/en/f6/5f8e5318e83d27e10000000a44538d/content.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; background: transparent;"&gt;Soft State Support for OData Services - SAP NetWeaver Gateway - SAP Library&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/saphelp_gateway20sp09/helpdata/en/5e/d9a953452a3543e10000000a44538d/content.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; background: transparent;"&gt;Soft State Based Query Result Cache - SAP NetWeaver Gateway - SAP Library&amp;nbsp;&amp;nbsp; &lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 04:23:05 GMT</pubDate>
    <dc:creator>former_member184867</dc:creator>
    <dc:date>2014-07-17T04:23:05Z</dc:date>
    <item>
      <title>Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaq-p/10427077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys! Being an ABAP developer for almost 8 years, I'm having a good time learning SAP Netweaver Gateway. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this is a very basic question, but here it goes: Am I able to cache entries retrieved from backend inside my service runtime artifacts, so I don't have to access the DB every time my service is called? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I first started reading about Gateway, I understood that I wouldn't be able to it. One of the RESTful services principles is "Stateless Communication", which means no session state is held by the server, therefore server-side data caching wouldn't be possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I started learning about $top, $skip and paging, I wondered if there's any way to cache data on server-side, as some service calls could result in really large amount of data being fetched from the backend (like BSEG table). Imagine browsing BSEG for page 1, then 2, then 3, then 1 again, and so on... That triggered my "Performance Issues Alert", and that's why I raised this question. I found some stuff about server-side paging, but I couldn't understand how to implement such thing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said, I'm very noob regarding Gateway, so forgive me if this doesn't make any sense at all &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/906/images/emoticons/grin.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- Mauricio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaq-p/10427077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-15T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427078#M3781207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the current released version it is not possible.. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/906/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But as I started learning about $top, $skip and paging, I wondered if there's any way to cache data on server-side, as some service calls could result in really large amount of data being fetched from the backend (like BSEG table). Imagine browsing BSEG for page 1, then 2, then 3, then 1 again, and so on... That triggered my "Performance Issues Alert", and that's why I raised this question. I found some stuff about server-side paging, but I couldn't understand how to implement such thing...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But there will be something to handle this scenario specified by you in the next SP of Gateway..&amp;nbsp; This will help you to hold the data in server and respond to the $top,$skip calls without hitting the DB&amp;nbsp; each time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427078#M3781207</guid>
      <dc:creator>former_member184867</dc:creator>
      <dc:date>2014-07-15T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427079#M3781208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Atanu. Now I'm curious about this new thing... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 21:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427079#M3781208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-15T21:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427080#M3781209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mauricio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;SAP Gateway 2.0 SP09 has been released on July 16, 2014. You can find details of Stateful Behavior of&amp;nbsp; Gateway in blog &lt;A __default_attr="56634" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="What's new in SAP Gateway 2.0 SP9?" href="https://community.sap.com/"&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp; and also in the below links&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/saphelp_gateway20sp09/helpdata/en/f6/5f8e5318e83d27e10000000a44538d/content.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; background: transparent;"&gt;Soft State Support for OData Services - SAP NetWeaver Gateway - SAP Library&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/saphelp_gateway20sp09/helpdata/en/5e/d9a953452a3543e10000000a44538d/content.htm" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; background: transparent;"&gt;Soft State Based Query Result Cache - SAP NetWeaver Gateway - SAP Library&amp;nbsp;&amp;nbsp; &lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427080#M3781209</guid>
      <dc:creator>former_member184867</dc:creator>
      <dc:date>2014-07-17T04:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427081#M3781210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Atanu!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427081#M3781210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T11:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Server-Side Cache</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427082#M3781211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mauricio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do server-side caching of sorts, but it would rely on you providing the majority of the components.&lt;/P&gt;&lt;P&gt;With regard to $top, you can make sure that a minimum $top is used if not requested, and that any $top requested is within a reasonable limit. That handles the size of the feed at the origin point.&lt;/P&gt;&lt;P&gt;For paging position, you use $skip. The simplest way to implement $skip is to go to origin then read data until you hit the $skip region - but not performant, as you know.&lt;/P&gt;&lt;P&gt;However, you can use $skiptoken, which is a temporary key that will tell the server where to resume reading from if the client sends it with the next GET. The effectiveness of this method depends on the abilty to parcel the source data into paging sets that don't require a lot of processing to fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not used this myself as I've not yet had any practical services where there could be runaway massive queries, but look into $skiptoken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also mention that I've done caching solutions for mobile data before Gateway was on the scene, by storing query results into a shared memory object. That might be another option until SoftState arrives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cache/qaa-p/10427082#M3781211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-21T13:54:37Z</dc:date>
    </item>
  </channel>
</rss>

