Action edit limit appears to be 25,001 objects, not the documented 10,000

Action edit limit appears to be 25,001 objects, not the documented 10,000

:robot: Written with the help of AI-FDE.

The docs under Action types → Scale and property limits (link) state:

Objects edited per action submission: 10,000

I tested this directly with a single, simple action and observed a real
ceiling of 25,001 objects by passing an object set to a function-backed action type.

The action input

Parameter Type Description
games ObjectSet<Games> The set of games whose scores should be incremented by 1

The function

TypeScript v2, backing the action as an ontology-edit function:

import { Client, ObjectSet } from "@osdk/client";
import { Games } from "@games/sdk";
import { createEditBatch, Edits, Long } from "@osdk/functions";

type OntologyEdit = Edits.Object<Games>;

export default async function incrementAllGames(
  client: Client,
  games: ObjectSet<Games>
): Promise<OntologyEdit[]> {
  const editsBatch = createEditBatch<OntologyEdit>(client);

  for await (const game of games.asyncIter({ $select: ["primaryKey_", "score"] })) {
    const newScore: Long = (BigInt(game.score ?? "0") + 1n).toString();
    editsBatch.update(
      { $apiName: "Games", $primaryKey: game.primaryKey_ },
      { score: newScore }
    );
  }

  return editsBatch.getEdits();
}

25K objects successfully edited (10 seconds):


image

25,002 objects failed and showed the limit:


Future work

I have a working demo of a workshop button that completes 1M object edits in seven minutes by calling the 25K-object action 40 times from a Compute Module. I’m still tinkering with it, but please reply or message me if this is something that would help you.

Assistance requested

Lastly, may I please request access to the OAuth Client Credentials grant in Developer Console for connecting my Compute Module to Foundry to call the action programmatically? Without that, there’s a pretty annoying pain point where I need to manually generate and store OAuth codes and client secrets every time I work on this, and then again every hour.

Odd, I’ve definitely hit the 10,000 limit before. Would be good to know if it’s been changed.