Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

gorrsv_193239 avatar image
gorrsv_193239 asked ·

From the week 3 quiz, what types of statements are paged by default?

What types of statements are included in"ALL" in question below from quiz?

#3 - Are all statements use paging by default ?

ANSWER: Yes, and you can override with fetchSize per request

workshopdriver
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

Question 3 of the week 3 quiz refers to the driver interface Statement which allows you to execute CQL queries whose implementations include:

  • SimpleStatement
  • BoundStatement (PreparedStatement)
  • BatchStatement

Technically the question does not apply to BATCH statements since the result set gets paged by default for reads only (SELECT queries).

You can find out more about the Java Statement interface in the Java core driver Statements page. For other drivers, see the relevant documentation in the DataStax Drivers matrix. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.