Weekly 2022-34
- Reading list:
- Django: used
only()
anddefer()
to optimise performanceonly
has issues with related objects andprefetch_related
User.objects.all().prefetch_related("post_set").only("name", "post_set")
will result in an error. Usedefer
instead to exclude data you don't need.
- Idea: Build function that automatically adds
only
ordefer
to a queryset based on the Serializer
- There will be an atomic bomb event in data gathering. Similar to how atom bombs polluted carbon dating, the spread of AI generated content will pollute future datasets. https://news.ycombinator.com/item?id=32578142
- Added experimental webmention endpoint to blog.