Giter Club home page Giter Club logo

Comments (5)

andrewwhitehead avatar andrewwhitehead commented on August 18, 2024 1

Are you using Python or something else? It's not clear.

The limit applies to the entire scan, not the size of the pages returned by next (that is currently fixed at 32).

from aries-askar.

rusfearuth avatar rusfearuth commented on August 18, 2024 1

The two sqlite and postgres backends currently use this constant for the page size:

pub const PAGE_SIZE: usize = 32;

It could be added to the interface when creating a Scan, but that would be a minor breaking change to the API. Is there a reason why you are using such a small number?

askar_scan_next will return an EntryListHandle of 0 when the end of the list is reached, which is probably why you are getting the invalid handle error.

No no. I don't need so small number at all. I just used 2 as an example. I thought that the limit is a page size. Now everything is clear for me.

The issue can be closed. Thx a lot!

from aries-askar.

rusfearuth avatar rusfearuth commented on August 18, 2024

I'm using the Kotlin implementation. Thx for answer!

Will it be possible to change page size in future?

from aries-askar.

rusfearuth avatar rusfearuth commented on August 18, 2024

Are you using Python or something else? It's not clear.

The limit applies to the entire scan, not the size of the pages returned by next (that is currently fixed at 32).

Are you sure about 32? Based on code I can see that the page size depends on device CPU arch (https://doc.rust-lang.org/std/primitive.usize.html). You are using there usize.

page_size: usize,

from aries-askar.

andrewwhitehead avatar andrewwhitehead commented on August 18, 2024

The two sqlite and postgres backends currently use this constant for the page size:

pub const PAGE_SIZE: usize = 32;

It could be added to the interface when creating a Scan, but that would be a minor breaking change to the API. Is there a reason why you are using such a small number?

askar_scan_next will return an EntryListHandle of 0 when the end of the list is reached, which is probably why you are getting the invalid handle error.

from aries-askar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.