Performance Optimization
- Cache tenant configurations: Reduce API calls by caching tenant settings
- Use CDN for embeds: Serve embedded dashboards through a CDN
- Implement lazy loading: Load dashboards only when needed
- Monitor performance per tenant: Track load times and API response times
Security Best Practices
- Never expose API keys: Always generate tokens server-side
- Implement CORS: Restrict embed domains per tenant
- Use HTTPS everywhere: Enforce secure connections
- Audit trail: Log all tenant access and modifications
- Regular security audits: Review tenant access patterns
Scalability Considerations
- Database per tenant: For large clients, consider dedicated databases
- Implement rate limiting: Prevent resource exhaustion
- Queue background jobs: Process tenant tasks asynchronously
- Monitor resource usage: Alert on unusual patterns
- Plan for growth: Design for 10x current tenant count
Troubleshooting
Common Issues
1. Tenant data mixing- Verify workspace IDs are correct
- Check API key scoping
- Review query filters
- Clear browser cache
- Verify branding configuration
- Check embed parameter syntax
- Review tenant resource usage
- Implement query optimization
- Consider tenant database sharding
- Verify API keys are active
- Check token expiration
- Review CORS configuration
Debugging Multi-Tenant Issues
Enable debug mode in embeds:Migration Guide
Moving from Single to Multi-Tenant
If you’re migrating from a single-tenant to multi-tenant architecture:- Audit current setup: Document existing data sources and dashboards
- Plan tenant structure: Decide how to split existing data
- Create tenant workspaces: Set up workspaces for each tenant
- Migrate data: Export and import data to appropriate tenants
- Update embed codes: Replace single workspace with tenant-specific embeds
- Test thoroughly: Verify data isolation and permissions
- Deploy gradually: Roll out to tenants in phases
Next Steps
- Read the Embedding Guide for more on embedding
- Join our Community Forum for discussions
- Contact team@papermap.ai for enterprise guidance
Ready to build a multi-tenant analytics platform? Book a session and we will help you enable multi-tenancy.

