[Glass] Position method for BtreePlusReadStream classes

smalltalk at adinet.com.uy smalltalk at adinet.com.uy
Mon Jun 8 11:53:46 PDT 2020


aRcIdentitySet has an index on 'each.modifiedTime' and it can have a lot of instances. 

In order to get a list of sorted instances (by modifiedTime) i do: 
gsQuery := GsQuery fromString: 'each.modifiedTime <= timeNow'. 
gsQuery bind: 'timeNow' to: TimeStamp now. 
gsQuery on: aRcIdentitySet . 

Now i want to 'jump' to a given position in this stream... 
It is possible to use some kind of #position: message in aBtreePlusReadStream ? 
(position: does no exist in BtreePlusReadStream) 

I could use #next to 'jump' to a given position, but the query can be very very large. 
At the end it show a paging web page to a user that can click to get the next bunch of objects. 
So i do not want to do #next over a large collection. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20200608/135e9187/attachment.htm>

More information about the Glass mailing list