Hello, welcome to the forum I think the most performant way is adding color column(text) to the events table and then choose Use a dynamic color for each event in the calendar properties panel and select the color column
Use a dynamic color for each event
Editor
Preview