You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by ro...@apache.org on 2014/11/12 02:15:46 UTC

[41/45] incubator-usergrid git commit: update read me for resource iterators , resource iterators as lazy loaded.

update read me for resource iterators , resource iterators as lazy loaded.

Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/08ad23a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/08ad23a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/08ad23a0

Branch: refs/heads/master
Commit: 08ad23a0e0d0c2f1559b1983dbd85c84b865e5a8
Parents: 60b1c6c
Author: Apps4u <ja...@apps4u.com.au>
Authored: Mon Nov 10 14:02:07 2014 +1000
Committer: Apps4u <ja...@apps4u.com.au>
Committed: Mon Nov 10 14:02:07 2014 +1000

----------------------------------------------------------------------
 sdks/php5/apache-usergrid/README.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/08ad23a0/sdks/php5/apache-usergrid/README.md
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/README.md b/sdks/php5/apache-usergrid/README.md
index 66adf00..cd22247 100644
--- a/sdks/php5/apache-usergrid/README.md
+++ b/sdks/php5/apache-usergrid/README.md
@@ -137,9 +137,7 @@ the ```'auth_type' => 'application' ``` controls the level you get Organization
 which type of credentials you use which can be either client_id & client_secret or username & password.
 
 ### Result Iteration
-Apache Usergrid has a default paging size of 10 records so if you ask for a collection that has more then 10 result (entities) then it will return 
-a Cursor so you can pass it to the next request to get then next lot of 10 results so Ive made this easier. Using manifest version 1.0.1 and above you can now use a resource iterator  
-that will return all entities for you in one request. So again let the SDK do the hard work for you.
+Apache Usergrid has a default paging size of 10 records so if you ask for a collection that has more then 10 result (entities) then it will return a Cursor so you can pass it to the next request to get then next lot of 10 results so Ive made this easier. Using manifest version 1.0.1 and above you can now use a resource iterator that will return all entities for you in one request. So again let the SDK do the hard work for you. Resource Iterators as lazy loaded so they only make the api call if the data is needed for example when you first make the call no data is requested from the network but as soon as you dereference the data then the first page is requested and the 2nd page is not requested till you request the data for example if I used it in a foreach loop it will make a network request for the next page of data only after the loop has gone through the current page count and if you cancel the foreach loop then it wont request any more data the default page size is 20 for resou
 rce iterators.
 
 The SDK will check each response to see if their is a cursor and if there is it will get the next set till all entities are returned.
 ```
@@ -189,4 +187,4 @@ of it as a helper as some times it good to have access to both world server side
 * Writing tests
 * Code review
 * Code
-* Manifest files
\ No newline at end of file
+* Manifest files