Optimizing PostgreSQL Queries: Avoiding DISTINCT on JSON Columns
Introduction
The landing project encountered a performance bottleneck related to how it was handling JSON data within PostgreSQL. Specifically, the issue arose when using SELECT DISTINCT queries on columns containing JSON data.
The Challenge
PostgreSQL's inability to directly compare JSON columns for equality posed a problem. The Filament admin panel, when preloading the attach-user