I am making an app and I would like to create a database where I can add notes to many of my different entities. To do this I made a base class and marked it as abstract. I then made a one-to-many relationship from my note entity to my base class. I then created numerous subclasses of my base class. Everything works perfectly. However I looked at the DB that was created and… I have one table for all my subclasses (I have lots). So I have two questions
- Am I doing it right?
- Does it matter performance wise if all my managed objects are stored in one table?
When you’re using core data you shouldn’t really pay too much attention to the tables created behind the scenes.
If the data model you have is correct then the fetches will work.