© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
David | Fortune Validator

Slow TextColumn with relationship exists

I am using the below code on my Client table:
Tables\Columns\IconColumn::make('estimates_exists')->exists('estimates')->boolean(),
Tables\Columns\IconColumn::make('estimates_exists')->exists('estimates')->boolean(),


This is the relationship:
public function estimates()
    {
        return $this->hasMany(Estimate::class);
    }
public function estimates()
    {
        return $this->hasMany(Estimate::class);
    }


It could have thousands of estimates.

I simple need a boolean tick on my Table List to show if a client has an estimate against their name.

The issue is its very very slow to load the page. If I comment out this line then its fast again.

I dont suppose any knows of a better way to speed this up?
Solution
problem solved. I didnt have index's setup in the database.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TextColumn get relationship record
FilamentFFilament / ❓┊help
2y ago
TextColumn relationship unique values
FilamentFFilament / ❓┊help
3y ago
TextColumn with relationship first_name, last_name
FilamentFFilament / ❓┊help
3y ago
Relationship Does Not Exists
FilamentFFilament / ❓┊help
3y ago