Realtime, Sipregs proper configuration

I have a asterisk 16 environment operating in RealTime.
I have seen notes to suggest you shouldn’t use SIpRegs in teh config. Currently I do and I know i’ve had problems where if the Database tier becomes slow, It can’t keep up with the phone registrations and then the endpoints go down.

The note beside the config says to use a view but I need some help or guidance on what I need to create the view of. And then how does this help if the view is the same table as my sippeers is? Currently I have sippeers and sipregs pointing to the same table in my system.

The only way tht a view might help you is that some database engines may pre-compute the query plan.