PonyORM: What is the most efficient way to add new items to a pony database without knowing which items already exist?
问题 Forgive me if this is an obvious question but I'm new to pony and databases in general and didn't find the right part of the documentation that answers this question. I'm trying to create a database with companies and the locations where those companies have offices. This is a many-to-many relationship since each company is in multiple locations and each location can be host to multiple companies. I'm defining my entities as such: from pony import orm class Company(db.Entity): '''A company