Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1.0-dp1
-
Fix Version/s: None
-
Component/s: None
-
Security Level: Public
-
Labels:None
Description
We should bake in pagination into ext/couchbase
$result = $cb->view("ddoc", "viewname");
$pager = $result->getPager($rowsPerPage = 10);
foreach($pager->nextPage() AS $page) {
foreach($page->rows AS $row) {
var_dump($row);
}
}
$result = $cb->view("ddoc", "viewname");
$pager = $result->getPager($rowsPerPage = 10);
foreach($pager->nextPage() AS $page) {
foreach($page->rows AS $row) {
var_dump($row);
}
}
Activity
Matt Ingenthron
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jan Lehnardt [ jan ] | Trond Norbye [ trond ] |
Matt Ingenthron
made changes -
| Fix Version/s | 1.1.1 [ 10439 ] | |
| Fix Version/s | 1.1.0 [ 10242 ] |
Matt Ingenthron
made changes -
| Fix Version/s | 1.1.2 [ 10451 ] | |
| Fix Version/s | 1.1.1 [ 10439 ] |
Matt Ingenthron
made changes -
| Fix Version/s | 1.1.3 [ 10452 ] | |
| Fix Version/s | 1.1.2 [ 10451 ] |
Trond Norbye
made changes -
| Fix Version/s | 1.1.3 [ 10452 ] |
The idea behind logical include_docs is that when fetching a non-reduced view, if the user specifies include_docs, there is a way to access the document when iterating over the results.
I'm relatively sure this may require further discussion. Grab me when you're ready to have a look at this issue.