Comments (5)
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.
The two sqlite and postgres backends currently use this constant for the page size:
aries-askar/src/backend/db_utils.rs
Line 23 in a93ce8d
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 of0
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.
I'm using the Kotlin implementation. Thx for answer!
Will it be possible to change page size in future?
from aries-askar.
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
.
aries-askar/src/storage/entry.rs
Line 475 in 2ab2e50
from aries-askar.
The two sqlite and postgres backends currently use this constant for the page size:
aries-askar/src/backend/db_utils.rs
Line 23 in a93ce8d
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)
- Inefficient SQL fetch query HOT 9
- WalletError: Error opening wallet mainBob: Cannot read properties of undefined (reading 'storeOpen') HOT 1
- release assets
- Auto deleting records from wallet based on expiry_ms. HOT 3
- Working with CapacitorJs HOT 12
- Error handling in crypto box
- Update to sqlx 0.7.3
- Bls12381G2 key created with Askar vs Mattr based on same seed give different key HOT 2
- [JS] Set custom `stack` on error when using `promisifyWithResponse` HOT 1
- Ability to rename a profile and only export a specific profile HOT 3
- Running a Multi-tenanted agent with MultiWalletSingleTable HOT 2
- Refactoring: signing data using `LocalKey` HOT 4
- Pagination support HOT 10
- Signature inconsistencies between python and js wrapper? HOT 7
- `for_update` does not seem to lock until the transaction is completed HOT 3
- Support for iOS Secure Enclave and Android Strongbox HOT 1
- Unable to build on RaspberryPI using Node.js
- SQLite expiry compare is not correct.
- Unable to specify multiple backend properties under NodeJS HOT 4
- DB2 Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aries-askar.