I've running some custom code within the Non-Profit Starter Pack (NPSP). A big part of that code is a REST interface that imports data from an outside source. I have triggers attached to the output object from the REST interface that assign it to a Contact record(and creates if it does exist) and then an Opportunity(again, creates if it does not exist). The problem is, I cannot run both of those operation because it causes me to overrun SOQL queries. Both operations are completely bulk-safe, but I cannot seem to find a way to use both.
Looking at my logs, it appears that the NPSP does a significant amount of SOQL, and that seems to be what is eating up all of my queries for my operations. @Async would be nice, but converting these objects to primary types would be dreadful. Anyone have any other tricks for getting into another context, or otherwise saving SOQL queries from the NPSP? I am totally stumped here!