Filtering on weeknumbers greater then 10 doesn't return results
See original GitHub issueI’m having a table of around 4000 recipes. Every recipe has a weeknumber.
When I run:
this.apiService.ListRecipes({ weeknumber: { eq: moment().week() } }, 4000)
I get zero results sinds it is currently week 20
It only works when entering a static number between 1 and 10. My table Recipes has also records with weeknumbers between 11 and 52
Another unexpected behavior is, that it is performing the limit: 4000
before filtering the weeknumbers.
I was expecting it would first ask the database for all entries with weeknumber X and then limit the results.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Filtering by Week Number over Multiple Week Number Columns
Hi there, I'm relativley new to Power BI and i'm trying to create a report from a Sharepoint site list. The report is...
Read more >How To Obtain Previous Week Values In Power BI - YouTube
Retrieving previous period values in Power BI is a common task, but retrieving previous week values requires some special attention.
Read more >Date criteria doesn't work in my query - Microsoft Support
All dates. The criteria is missing the "And" operator, so it doesn't filter any results out. Dates on or after 1/1/05 and on...
Read more >How to Create a Week Number Filter with Date Range in ...
Right-click on Week with Date Ranges in Filters, then select Show Filter. Click on the down arrow located on the top right corner...
Read more >Filtering With Dates In The QUERY Function - - Ben Collins
This post explores this issue in more detail and shows you how to filter with dates correctly in your Query formulas. The problem....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you need to download 5MB of data, you can use a recursive approach. Here is a draft of how it looks like:
Ok the dynamoDB scan function indeed first limits the results and apply the filtering on that subset, this is not a very helpful order in my opinion.
You wouldn’t believe the reason behind why I’m only getting back records for week 1 to 10. My total table size is 5,56MB Divide this bij 52 weeks and I’m on 0.1MB per week. Times 10 and I’m on 1MB which is unbelievable the maximum data size for the scan operation!
This took me 11 hours of debugging to find the reason.
So how on earth are other companies getting API’s build with all these limits?