# C# Cassandra driver : Navigate to specific page

**URL:** <https://forum.scylladb.com/t/c-cassandra-driver-navigate-to-specific-page/414>\
**Category:** ScyllaDB\
**Tags:** drivers\
**Created:** [March 22, 2023, 3:31pm UTC](https://forum.scylladb.com/t/c-cassandra-driver-navigate-to-specific-page/414 "2023-03-22T15:31:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamigo](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/kamigo/32/242_2.png) [@Kamigo](https://forum.scylladb.com/u/Kamigo)\
**Post date:** [March 22, 2023, 3:31pm UTC](https://forum.scylladb.com/t/c-cassandra-driver-navigate-to-specific-page/414/1 "2023-03-22T15:31:41Z")

</div>

I’m trying to build a OData api on top of scylla using the c# Cassandra library.  
Do you have any recommendation to “navigate” between pages like getting the next / previous page or pointing directly to a specific page ?  
I already implement the pagination with the PagingState but this allow me only to move to the next page

---

<div class="post-metadata">

**Author:** ![Kamigo](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/kamigo/32/242_2.png) [@Kamigo](https://forum.scylladb.com/u/Kamigo)\
**Post date:** [March 22, 2023, 3:33pm UTC](https://forum.scylladb.com/t/c-cassandra-driver-navigate-to-specific-page/414/2 "2023-03-22T15:33:08Z")

</div>

@Guy I saw your comment into the Slack channel telling us to ping you to get an answer, hope it doesn’t bother you  
Have a good day 🙂

---

<div class="post-metadata">

**Author:** ![Israel\_Fruchter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/israel_fruchter/32/153_2.png) [@Israel\_Fruchter](https://forum.scylladb.com/u/Israel_Fruchter)\
**Post date:** [March 22, 2023, 10:14pm UTC](https://forum.scylladb.com/t/c-cassandra-driver-navigate-to-specific-page/414/3 "2023-03-22T22:14:01Z")

</div>

One suggestion is to “cache” previous PaginingState between calls

> <https://stackoverflow.com/questions/36922386/backward-paging-in-cassandra-c-driver>

And a bit more elaborate explanation on how to implement next/previous queries, by using revered queries:  
[https://community.ibm.com/community/user/supplychain/blogs/tanvi-kakodkar1/2020/01/24/paging-filtering-apache-cassandra](https://community.ibm.com/community/user/supplychain/blogs/tanvi-kakodkar1/2020/01/24/paging-filtering-apache-cassandra)

I didn’t tested if mixing pagingState with reverse queries, it might also do the trick.
