This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== BigObject PolyDB::Cursor ====== //from application [[..:common|common]]//\\ \\ Database cursor over the results of a query operation. Objects can be retrieved in a loop, fetching one at a time, or all at once. ? Example: :: Process results of a query in a loop :: <code perl> > for (my $cursor = $collection->find({}); $cursor->has_next; ) { > my $object = $cursor->next; > do_something($object); > } </code> :: Retrieve all objects at once :: <code perl> > @with_100_vertices = $collection->find({ N_VERTICES => 100 })->all; </code> documentation/latest/common/polydb_cursor.txt Last modified: 2023/11/06 10:57by 127.0.0.1