APFlow All field notesكل الملاحظات
Book a callاحجز مكالمة
Databasesقواعد البيانات Storageالتخزين Guideدليل

Your data is in the wrong place: a plain guide to storage and databasesبياناتك في المكان الخطأ: دليل بسيط للتخزين وقواعد البيانات

Contracts in email attachments, customer records in a spreadsheet that four people edit, scans in a folder called 'final-FINAL'. The problem is not messiness; it is that each kind of data needs a different home. Here is the map.عقود في مرفقات البريد، وسجلات عملاء في جدول يعدله أربعة أشخاص، وصور ممسوحة في مجلد اسمه 'نهائي-النهائي'. المشكلة ليست الفوضى، بل أن كل نوع بيانات يحتاج بيتاً مختلفاً. هذه هي الخريطة.

APFlow
Field notesملاحظات ميدانية · June 2026يونيو ٢٠٢٦ · 8 min read٨ دقائق
Tall organized warehouse shelves
Photo: Lance Chang, Unsplash
TL;DR
  • ·Four homes cover almost everything: object storage for files and media, a relational database (Postgres) for records that must be correct, a friendly table tool (Airtable) for small team lists, and a vector store for searching by meaning.أربعة بيوت تكفي كل شيء تقريباً: مخزن الملفات للمستندات والوسائط، وقاعدة بيانات علائقية (Postgres) للسجلات التي يجب أن تكون صحيحة، وأداة جداول سهلة (Airtable) لقوائم الفرق الصغيرة، ومخزن متجهات للبحث بالمعنى.
  • ·The matching rule is simple: files go in object storage with only their description in the database; facts that change together go in Postgres; anything a non-technical team manages alone can live in Airtable until it outgrows it.قاعدة المطابقة بسيطة: الملفات في مخزن الملفات ووصفها فقط في قاعدة البيانات؛ والحقائق التي تتغير معاً في Postgres؛ وما يديره فريق غير تقني وحده يمكن أن يعيش في Airtable حتى يكبر عنه.
  • ·Every one of these has a self-hostable version, so a regulated company can run the whole map inside its own network.كل واحد من هذه له نسخة تعمل على خوادمكم، فالشركة الخاضعة للتنظيم تستطيع تشغيل الخريطة كلها داخل شبكتها.

Every growing company hits the same wall. The contract is somewhere in email. The customer list is a spreadsheet with five conflicting copies. The scans live in a shared folder nobody dares reorganise. Then someone tries to automate a workflow and discovers the real problem: the data has no proper home. This guide gives you the four homes that cover practically every kind of business data, what belongs in each, and the rule for deciding.كل شركة تنمو تصطدم بالجدار نفسه. العقد في مكان ما داخل البريد. وقائمة العملاء جدول له خمس نسخ متعارضة. والمستندات الممسوحة في مجلد مشترك لا يجرؤ أحد على ترتيبه. ثم يحاول أحدهم أتمتة مسار عمل فيكتشف المشكلة الحقيقية: البيانات بلا بيت صحيح. هذا الدليل يعطيك البيوت الأربعة التي تكفي كل أنواع بيانات الشركات تقريباً، وما الذي يسكن في كل بيت، وقاعدة الاختيار.

The four homesالبيوت الأربعة

Object storage
For files and media: the warehouseللملفات والوسائط: المستودع
Storesيخزن PDFs, scans, images, audio, video, backupsملفات PDF والمسح الضوئي والصور والصوت والفيديو والنسخ الاحتياطية
Examplesأمثلة Amazon S3, Cloudflare R2; MinIO to self-hostAmazon S3 وCloudflare R2؛ وMinIO على خوادمكم
Ruleالقاعدة The file lives here; only its description lives in the databaseالملف يسكن هنا؛ ووصفه فقط يسكن في قاعدة البيانات
PostgreSQL
For records that must be correct: the ledgerللسجلات التي يجب أن تكون صحيحة: السجل الرسمي
Storesيخزن Customers, orders, invoices, approvals: facts that change togetherالعملاء والطلبات والفواتير والموافقات: حقائق تتغير معاً
Why itلماذا هو Transactions guarantee an order and its payment update together or not at allالمعاملات تضمن أن الطلب ودفعته يتحدثان معاً أو لا يتحدثان أبداً
Ruleالقاعدة If two numbers must never disagree, they belong hereإذا كان رقمان يجب ألا يختلفا أبداً، فمكانهما هنا
Airtable
For small team lists: the shared notebookلقوائم الفرق الصغيرة: الدفتر المشترك
Storesيخزن Content calendars, candidate trackers, simple inventoriesجداول المحتوى ومتابعة المرشحين والمخزون البسيط
Why itلماذا هو Non-technical teams manage it alone: forms, views, automationsالفرق غير التقنية تديره وحدها: نماذج وعروض وأتمتة
Ruleالقاعدة Great until thousands of rows or money math; then graduate to Postgresممتاز حتى آلاف الصفوف أو حسابات المال؛ بعدها انتقلوا إلى Postgres
Vector store
For searching by meaning: the librarianللبحث بالمعنى: أمين المكتبة
Storesيخزن Numerical fingerprints of text and images, for similarity searchبصمات رقمية للنصوص والصور، للبحث بالتشابه
Examplesأمثلة pgvector inside Postgres; Qdrant standalonepgvector داخل Postgres؛ أو Qdrant مستقلاً
Ruleالقاعدة When 'find documents about late delivery penalties' must work without exact wordsعندما يجب أن ينجح 'ابحث عن غرامات تأخير التسليم' دون تطابق الكلمات

How they work together: one invoice, four homesكيف تعمل معاً: فاتورة واحدة في أربعة بيوت

Follow one scanned invoice through a real pipeline. The scan itself (a 4 MB image) goes to object storage. The extracted facts (supplier, amount, date, status) become a row in Postgres, pointing at the scan. A numerical fingerprint of the invoice text goes to the vector store, so next month someone can search "that maintenance invoice from the Jeddah supplier" and find it without remembering any exact word. And the operations team tracks the week's exceptions in an Airtable view fed from Postgres. Four homes, one document, zero copies of the truth.تتبع فاتورة ممسوحة واحدة في منظومة حقيقية. الصورة نفسها (4 ميجابايت) تذهب إلى مخزن الملفات. الحقائق المستخرجة (المورد والمبلغ والتاريخ والحالة) تصبح صفاً في Postgres يشير إلى الصورة. وبصمة رقمية لنص الفاتورة تذهب إلى مخزن المتجهات، ليبحث أحدهم الشهر القادم عن "فاتورة الصيانة من مورد جدة" ويجدها دون أن يتذكر كلمة واحدة بدقة. وفريق العمليات يتابع حالات الأسبوع في عرض Airtable يتغذى من Postgres. أربعة بيوت، ومستند واحد، وصفر نسخ متعارضة من الحقيقة.

The mistakes that cause the messالأخطاء التي تصنع الفوضى

  1. 1 Files inside the databaseملفات داخل قاعدة البيانات
    Storing scans as database blobs bloats backups and slows everything. The file goes to object storage; the database keeps the link.تخزين الصور داخل قاعدة البيانات يضخم النسخ الاحتياطية ويبطئ كل شيء. الملف إلى مخزن الملفات؛ وقاعدة البيانات تحفظ الرابط فقط.
  2. 2 The spreadsheet that became the systemالجدول الذي صار هو النظام
    A shared sheet with five editors is not a database: no history, no rules, no single truth. The day two copies disagree about a payment is the day you move it to Postgres.جدول مشترك يعدله خمسة أشخاص ليس قاعدة بيانات: لا تاريخ ولا قواعد ولا حقيقة واحدة. اليوم الذي تختلف فيه نسختان على دفعة هو يوم الانتقال إلى Postgres.
  3. 3 Buying a search problem a database cannot solveشراء مشكلة بحث لا تحلها قاعدة بيانات
    Keyword search cannot find 'late delivery penalty' inside a contract that says 'compensation for delayed handover'. That is a meaning problem, and it needs vectors, which our deep dive on vector databases covers in full.البحث بالكلمات لا يجد 'غرامة تأخير التسليم' داخل عقد يقول 'تعويض عن تأخر الاستلام'. هذه مشكلة معنى، وتحتاج المتجهات، وهي موضوع مقالنا المعمّق عن قواعد بيانات المتجهات بالتفصيل.
The self-hosted noteملاحظة الاستضافة الذاتية

Every home on this map has a version that runs inside your own network: MinIO for object storage, Postgres with pgvector, and table tools like NocoDB in place of Airtable. If your regulator decides where data lives, the map does not change; only the hosting does.كل بيت في هذه الخريطة له نسخة تعمل داخل شبكتكم: MinIO لمخزن الملفات، وPostgres مع pgvector، وأدوات جداول مثل NocoDB بدل Airtable. إذا كان المنظم يحدد أين تسكن البيانات، فالخريطة لا تتغير؛ الذي يتغير هو مكان التشغيل فقط.

Shareشارك

Put one workflow into production.ضعوا عمليةً واحدة في الإنتاج.

A 15-minute call, then a real assessment of what an agent can run on your own servers.مكالمة من ١٥ دقيقة، ثم تقييم حقيقي لما يستطيع الوكيل تشغيله على خوادمكم.

Book a scoping call →احجز مكالمة تقييم ←
Keep readingتابع القراءة