Re: most efficient way to fetch GIDs?

2025-07-14 Thread Stefan Gärtner via Webobjects-dev
Hello OC, I would suggest turning the Collection of EOGlobal into primary keys, like this: // turn global IDs into primary keys (assuming int here, adjust if needed) var pks = globalIds.stream().map(g -> (int) ((EOKeyGlobalID) g).keyValues()[0]).toList(); // create fetch spec with pre-petching

most efficient way to fetch GIDs?

2025-07-14 Thread OCsite via Webobjects-dev
Hi there, do please forgive a stupid question, this is probably EOF 101, but I am not quite sure of the proper answer. I've got a Collection of global IDs (it might be any kind of a Collection, from an NSArray to a Java Set). All the GIDs represent the same entity, if important. And the collec