1

Yes, iterate over Query is good thing, but i need paging results and send them with token to frontend.

Can i create token for previous page too?

How can i get and use ResponseFuture._paging_state in Models or Querysets.

I search something like Manual paging (Node-JS), but in python

ubombi
  • 1,115
  • 2
  • 15
  • 30

2 Answers2

2

I'm afraid this isn't possible. At least I can't see a way for this to work by looking at the API and the documentation. There seems to be an open ticket (PYTHON-200) created by Adam Holmberg for this, which is still to be implemented.

Stefan Podkowinski
  • 5,206
  • 1
  • 20
  • 25
0

Fixed in python driver v 3.7.0 You can find usage example in tests files on Github

page_state = result_set.paging_state
result_set = self.session.execute(
    "SELECT * FROM test3rf.test", paging_state=page_state)
ubombi
  • 1,115
  • 2
  • 15
  • 30