I need to run a SearchCusor over a featureclass in one geodatabase, and conditionally write a subset of returned records to a featureclass in a second geodatabase. Is this possible to do within a single loop, or am I limited to all cursors pointing at the same geodatabase, implying that the subset records must be output into a temporary object (such as a Python list) before switching workspaces to the second geodatabase and instantiating an InsertCursor there?
BTW - the only reason I'm doing this is to perform a one:one join where the left featureclass is large (several million features) and the right table is small (a few thousand rows, held in memory as a python dictionary). Using Pro's various options for joining has proven to be extremely inefficient, however I can perform the join using a SearchCursor in <5 minutes. It's just a matter of how to get the results into a new featureclass.
Using ArcGIS Poo 2.9