$rs = $rs->search(undef, {offset => ($page - 1) * PAGE_SIZE, ($page == $pages ? () : (rows => PAGE_SIZE))});
}
$rs = $rs->search(undef, {prefetch => $thing{prefetch}}) if exists $thing{prefetch};
$rs = $rs->search(undef, {offset => ($page - 1) * PAGE_SIZE, ($page == $pages ? () : (rows => PAGE_SIZE))});
}
$rs = $rs->search(undef, {prefetch => $thing{prefetch}}) if exists $thing{prefetch};