-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get count of records #662
Comments
So I manage to hack something together and get a count and that is when I realised that when you create a client
when you pull data via select you are not limited by the type and if you are not careful you could end up bleeding data from one type into the other eg if you filter by a field that is shared by both types causing data from records containing both types to be returned and then transformed into looking like the type in your client. You are sort of limited to one type per domain to be safe. |
^ for the above I have spiked a possible solution and created a draft PR for you to look at |
Note that Isotopes is more or less a client implementing CRUD, so currently only whole records are returned. While the |
Description
No obvious ways to get a count of records matching some criteria using Isotope
Expected behavior
A method that would allow someone to call the equivalent of
select count(*) where ...
; obviously restricted to the type of recordsee https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/CountingDataSelect.html
eg I was thinking something along the lines of
Actual behavior
As far as I can tell, I would need to pull all the items to get a count which seems wasteful.
Package versions
0.6.1
2.987.0
The text was updated successfully, but these errors were encountered: