await storage.run({ action: "usage" });storage.run(action="usage")لماذا تسأل قبل
كتابه ماضيه تم رفض مساحة الخطة مع quota_exceeded● القراء والحذف يواصلون العمل - ذلك أن عدم التماثل هو متعمد، حتى تتمكن دائما من الحصول على البيانات وإفساح المجال - ولكن الكتابة التي تفشل في منتصف الطريق من خلال دفعة أوراقك لمعرفة ما الذي هبط.
const before = await storage.run({ action: "usage" });
// Write in batches, and stop on the first refusal rather than pushing through
for (const batch of batches) {
try {
await storage.run({ action: "insert", collection, documents: JSON.stringify(batch) });
} catch (err) {
if (err.code === "quota_exceeded") break;
throw err;
}
}import json
from iagenify import IaGenifyError
before = storage.run(action="usage")
# Write in batches, and stop on the first refusal rather than pushing through
for batch in batches:
try:
storage.run(action="insert", collection=collection, documents=json.dumps(batch))
except IaGenifyError as error:
if error.code == "quota_exceeded":
break
raiseهذا التخزين أو الحساب
| مسألة | Ask |
|---|---|
| كم هو كامل هذا واحد؟ | (يُنْفَر (يُع الإجراء: "الاستخدام") |
| ماذا تعطي الخطة، عبر الخدمات؟ | api.cloud.usage() |
| أي ملفات تأخذ المساحة؟ | api.files.list()وصنف حسب الحجم |
وجهة نظر مستوى الحساب هي التي تخبرك ما إذا كان شراء الحيز سيساعد لأن هذا هو المكان الذي تعيش فيه علاوة الخطة.