this post was submitted on 02 May 2025
16 points (86.4% liked)
Programming
20041 readers
81 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Lotta smarter people than me have already posted better answers in this thread, but this really stood out to me:
Why aren't you de-duping the table before processing? What's inserting these duplicates and why are they necessary to the table? If they serve no purpose, find out what's generating them and stop it, or write a pre-load script to clean it up before your core processing queries access that table. I'd start here - it sounds like what's really happening is that you've got a garbage query dumping dupes into your table and bloating your db.