#25377: Regression in expressions refactor causes database queries to run COUNT('*') instead of COUNT(*) -------------------------------------+------------------------------------- Reporter: adamchainz | Owner: nobody Type: | Status: new Cleanup/optimization | Component: Database layer | Version: 1.8 (models, ORM) | Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by adamchainz): I'm not 100% confident in my performance measurement there, I just tried on a multi-million row table on my production DB converted to MyISAM and `COUNT(*)` measured the same as `COUNT('*')`. However since there are so many database versions and storage engines out there I think it's probable this caused a regression somewhere. -- Ticket URL: <https://code.djangoproject.com/ticket/25377#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.7576f81c2efc9760c6ef169046e69b93%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.