Skip to content

Conversation

@pstokkink
Copy link
Contributor

@pstokkink pstokkink commented Oct 16, 2025

Works in tandem with the draft PR in schematools. There, you will find an example schema as well.

It basically nulls fields at the very last moment in the serializer.

I tested it locally by importing the example schema and generating ~100k records, about half of which have an adres_afgeschermd flag set to true. I then experimented with different _pageSize params on my local machine. At _pageSize=100000, the backend generates a response in ~9 seconds without the code in this draft (the browsable api takes quite a bit longer to display this, I've noticed). With the code I've added, the response is generated in ~10.3 seconds, an increase of ~15%. For pagesizes of 20-1000 the difference is hardly noticable.

Note: tests obviously fail because it doesn't use the right schematools here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants