Umm... yes, this has been covered.
And when it comes to goldfish, the size of the tank is almost more important than the filter! Always give a goldfish as big a tank as you can from the time they're tiny little babies and you'll have the healthiest ones

Try finding a tank between 40-55 gallons if possible. It's a good size and it'll keep your fish happy
