TIPS & RECOMMENDATIONS

Best Practices

Learn from the community and our team. Follow these best practices to get the most out of suparbase and avoid common pitfalls.

Connection Management

Use descriptive names

Name your connections clearly: "Production DB", "Staging DB", "Dev Local". This helps avoid mistakes.

Do

Production - Main App

Don't

DB1, DB2, test

Organize by environment

Group connections by environment type. Use tags or naming conventions to keep things organized.

Do

Use consistent prefixes: prod-, staging-, dev-

Don't

Mix environments randomly

Test connections regularly

Periodically test your connections to ensure they're still valid and accessible.

Do

Test monthly or after password changes

Don't

Assume connections never break

Sync Strategy

Sync during off-peak hours

For large databases, schedule syncs during low-traffic periods to avoid performance impact.

Do

Schedule syncs for nights/weekends

Don't

Sync during peak usage times

Use dry-run first

Always preview changes with dry-run mode before executing actual syncs.

Do

Dry-run → Review → Execute

Don't

Execute syncs blindly

Sync incrementally

For large databases, sync tables in batches rather than all at once.

Do

Sync 5-10 tables at a time

Don't

Sync 100+ tables simultaneously

Schema Management

Validate before syncing

Always run schema validation to catch incompatible changes early.

Do

Validate → Fix issues → Sync

Don't

Skip validation steps

Version control schemas

Keep track of schema changes using version control or migration tools.

Do

Document schema changes

Don't

Make undocumented changes

Test in dev first

Always test schema changes in development before syncing to production.

Do

Dev → Staging → Production

Don't

Test directly in production

Security

Use strong passwords

Ensure your database passwords are strong and unique for each environment.

Do

Complex passwords, different per env

Don't

Weak or reused passwords

Review access regularly

Periodically review who has access to your connections and remove unused ones.

Do

Audit access quarterly

Don't

Keep old connections forever

Enable notifications

Set up email notifications to be alerted of sync failures or security issues.

Do

Enable all critical notifications

Don't

Ignore security alerts

Performance

Optimize table selection

Only sync tables you actually need. Unnecessary syncs waste time and resources.

Do

Sync only required tables

Don't

Sync everything "just in case"

Monitor usage limits

Keep an eye on your usage to avoid hitting monthly limits unexpectedly.

Do

Check usage dashboard weekly

Don't

Ignore limit warnings

Clean up old syncs

Archive or delete old sync jobs to keep your dashboard clean and organized.

Do

Archive completed syncs monthly

Don't

Keep thousands of old syncs

Backup Strategy

Backup before major syncs

Always backup your target database before syncing major schema changes.

Do

Backup → Validate → Sync

Don't

Sync without backups

Test restore procedures

Periodically test that you can restore from backups to ensure they work.

Do

Test restores quarterly

Don't

Assume backups always work

Keep multiple backups

Maintain backups from different points in time, not just the latest.

Do

Daily + Weekly + Monthly backups

Don't

Single backup point

Rollback Protection

Understand automatic rollback

suparbase creates backup snapshots before every sync. If sync fails, it can restore automatically.

Do

Let rollback complete before retrying

Don't

Interrupt rollback mid-process

Monitor rollback storage

Backup snapshots are stored for 7 days. Monitor storage usage for large databases.

Do

Check storage usage weekly

Don't

Ignore storage limit warnings

Monitoring

Use the metrics dashboard

Monitor real-time throughput, rows/second, and table progress during syncs.

Do

Watch for rate limiting indicators

Don't

Ignore slow performance warnings

Review sync traces

Use distributed tracing to identify bottlenecks and optimize slow syncs.

Do

Analyze traces for slow operations

Don't

Skip trace analysis for failed syncs


Pro Tips

Tip #1

Start Small

Begin with a single table sync to understand the process before scaling up.

Tip #2

Use Keep-Alive Wisely

Enable keep-alive only for databases you actively use to avoid unnecessary requests.

Tip #3

Monitor Regularly

Check your sync history and logs weekly to catch issues early and optimize performance.

Ready to Apply These Practices?

Start implementing these best practices today and optimize your database synchronization workflow.