# indexing (pagination) question for the getPrunableMessages call

**URL:** <https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239>\
**Category:** Developers\
**Created:** [1 April 2021 05:31 UTC](https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239 "2021-04-01T05:31:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malnemark](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Malnemark](https://talk.jelurida.com/u/Malnemark)\
**Post date:** [1 April 2021 05:31 UTC](https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239/1 "2021-04-01T05:31:29Z")

</div>

Hi devs,

I wonder why these two calls return the identical result:

> [https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=200&lastIndex=299&timestamp=102856928](https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=200&lastIndex=299&timestamp=102856928)

> [https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=700&lastIndex=799&timestamp=102856928](https://testardor.jelurida.com/nxt?requestType=getPrunableMessages&chain=2&account=ARDOR-S3R8-B55Z-BHGJ-FWUCT&otherAccount=ARDOR-2LLJ-JRUA-M9X9-2V6EB&firstindex=700&lastIndex=799&timestamp=102856928)

My expectation would be, that I receive different chunks of all messages that have been sent between both accounts. If there were less than 800 messages in total (between `now` and `timestamp`), I would expect an empty array as response.

Any help here is much appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![Malnemark](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Malnemark](https://talk.jelurida.com/u/Malnemark)\
**Post date:** [1 April 2021 20:44 UTC](https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239/2 "2021-04-01T20:44:07Z")

</div>

Using POST instead of GET solved the issue.

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [6 April 2021 13:39 UTC](https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239/3 "2021-04-06T13:39:13Z")

</div>

Caching problems surely. POSTs aren't cached so using POST is a safe bet to prevent this kind of issues. Doing any kind of integration I would suggest sticking with POST.

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [12 April 2021 08:07 UTC](https://talk.jelurida.com/t/indexing-pagination-question-for-the-getprunablemessages-call/239/4 "2021-04-12T08:07:55Z")

</div>

Actually, the problem with the above queries isn't about cache. It's a mistyped parameter first **i** ndex . Should be first **I** ndex.
