Best way to structure the DB when using RG within RG

Hi Bubblers,

I have a question about Data Structuring regarding repeating group within a repeating group. Never took any data structuring course so I am not sure the best way to handle this.

The example I am trying to replicate is shown in the image below:

Basically, when a user goes and creates a task, they have the option to put the task in a category of their choosing:

  1. User creates a new Task - “Draft Business Plan”
  2. User then categorizes the task under: Operations
    This is all performed in an entry form the user can fill out

When I attempt to display the lists of tasks, I am looking to divide it based on the categories which I assume will require a Repeating group within a Repeating group. (Correct me if I am wrong)

My question is should Categories in which the tasks are assigned to be its own Type? I am thinking long term where there are numerous data entries and I wouldn’t want the app to be slow when performing a search.