File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,9 +46,16 @@ materialize a list using the iterator:
4646 results = session.execute(" SELECT * FROM system.local" )
4747 row_list = list (results)
4848
49- For backward compatability, :class: `~.ResultSet ` supports indexing. If
50- the result is paged, all pages will be materialized. A warning will
51- be logged if a paged query is implicitly materialized.
49+ For backward compatability, :class: `~.ResultSet ` supports indexing. When
50+ accessed at an index, a `~.ResultSet ` object will materialize all its pages:
51+
52+ .. code-block :: python
53+
54+ results = session.execute(" SELECT * FROM system.local" )
55+ first_result = results[0 ] # materializes results, fetching all pages
56+
57+ This can send requests and load (possibly large) results into memory, so
58+ `~.ResultSet ` will log a warning on implicit materialization.
5259
5360Trace information is not attached to executed Statements
5461~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments