# HG changeset patch # User drewp@bigasterisk.com # Date 1685234293 25200 # Node ID a71e4272d808c1bac4e4fb8aab9a58cc81aca42e # Parent 1780382477ed8e547439a602c4c969a2cbf1b013 cut way down on some no-op patches that were causing file rewrites/rereads diff -r 1780382477ed -r a71e4272d808 rdfdb/service.py --- a/rdfdb/service.py Sat May 27 17:36:51 2023 -0700 +++ b/rdfdb/service.py Sat May 27 17:38:13 2023 -0700 @@ -68,6 +68,12 @@ return log.debug("%r sends patch to us: %s", self, data[:64]) p = Patch(jsonRepr=data) + + # this is very important- I caught clients piling up dozens of retries, causing + # us to rewrite files then notice them, etc. Problem may not be fully solved. + if p.isNoop(): + return + try: await self.db.patch(p, sender=self.connectionId) except ValueError as e: