Yilmaz Alizadeh
11/13/2025, 8:58 AMAsk Inkeep
11/13/2025, 8:58 AMAsk Inkeep
11/13/2025, 8:58 AMcurl -X POST <https://api.permit.io/v2/facts/{proj_id}/{env_id}/relationship_tuples/bulk>
To help our engineers investigate this performance issue, could you please provide:
1. *Which Workspace / Project / Env you are using* (you've already provided project ID 9aa8bcdc454049cd8c1459f6d1215b4f and environment ID f5b553a6ef6847779addd901fc44327b)
2. *What calls are you performing* - please share the exact SDK code or CURL command you're using, including the payload structure
3. *Which PDP version you are running* (if you have a local PDP deployed)
4. *Relevant logs from your PDP* (if applicable) and any error messages or response headers from the API
Additionally, it would be helpful to know:
• The exact payload size and structure you're sending (even with just one operation)
• Whether you're experiencing this consistently or intermittently
• Your geographic location relative to the API servers
This information will help our team identify whether this is a known issue or something specific to your configuration.Ask Inkeep
11/13/2025, 8:58 AMYilmaz Alizadeh
11/13/2025, 8:59 AMYilmaz Alizadeh
11/13/2025, 8:59 AMYilmaz Alizadeh
11/13/2025, 9:00 AMBearer ${this.apiKey},
'Content-Type': 'application/json'
},
body: JSON.stringify({ operations: batch })
});
if (!response.ok) {
const errorText = await response.text();
throw new Error(
Failed to ${method} for endpoint ${endpoint} in bulk: ${response.status} ${response.statusText} - ${errorText}
);
}
return response.json();
});
console.log('batches', batches);
console.log('operations', operations);
console.log(
Starting Promise.all for ${batches.length} batch(es) with ${operations.length} total operations
);
console.time('Promise.all execution time');
await Promise.all(promises);
console.timeEnd('Promise.all execution time');
}Yilmaz Alizadeh
11/13/2025, 9:00 AMAlon Boshi
11/13/2025, 9:08 AMYilmaz Alizadeh
11/13/2025, 9:09 AMAlon Boshi
11/13/2025, 10:45 AMAlon Boshi
11/13/2025, 11:58 AMYilmaz Alizadeh
11/13/2025, 12:01 PM