সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ওয়েব ক্লায়েন্ট জুড়ে ডেটা সিঙ্কে রাখার জন্য Firestore হল একটি ভাল মাপযোগ্য ডাটাবেস সমাধান।
অনেক অ্যাপের জন্য, Firestore-এর পরিচালিত অফলাইন সমর্থন বিশেষভাবে গুরুত্বপূর্ণ, আপনাকে প্রতিক্রিয়াশীল অ্যাপ তৈরি করতে দেয় যা নেটওয়ার্ক লেটেন্সি বা ইন্টারনেট সংযোগ নির্বিশেষে কাজ করে। কিন্তু বৈশিষ্ট্য-সমৃদ্ধ SDK একটি আকার খরচে আসে। ফায়ারবেস এমন অ্যাপগুলির জন্য কী অফার করে যেগুলিকে শুধুমাত্র বেসিক ক্রিয়েট, রিড, আপডেট এবং ডিলিট অপারেশন ব্যবহার করতে হবে এবং ম্যানেজড অফলাইন সাপোর্টের প্রয়োজন নেই?
সমাধান: ফায়ারস্টোর লাইট
Firestore Lite হল একটি লাইটওয়েট, স্বতন্ত্র REST-শুধুমাত্র Firestore SDK যা নিয়মিত ওয়েব SDK আকারের একটি ভগ্নাংশে একক ডকুমেন্ট ফেচ, কোয়েরি এক্সিকিউশন এবং ডকুমেন্ট আপডেট সমর্থন করে৷ Firestore Lite লেটেন্সি ক্ষতিপূরণ, অফলাইন ক্যাশিং, ক্যোয়ারী পুনঃসূচনা এবং স্ন্যাপশট শ্রোতাদের বাদ দেয়, তবে বিশেষ ব্যবহারের ক্ষেত্রে, লাইব্রেরির আকার এবং স্টার্টআপের সময় হ্রাস একটি দুর্দান্ত ট্রেডঅফ করে।
ফায়ারস্টোর লাইট আমদানি করুন
Firestore Lite মডুলার SDK- এর অংশ হিসাবে npm-এর মাধ্যমে উপলব্ধ। এইভাবে এটি সম্পূর্ণরূপে মডুলার এবং গাছ-কাঁপানো যায়।
API বৈশিষ্ট্যগুলি Firestore Lite দ্বারা সমর্থিত নয়৷
আকার এবং গতির জন্য, Firestore Lite স্ট্যান্ডার্ড Firestore SDK থেকে এই বৈশিষ্ট্যগুলি বাদ দেয়:
ডকুমেন্টস্ন্যাপশট ইভেন্ট হ্যান্ডলার । onSnapshot পদ্ধতি এবং DocumentChange , SnapshotListenerOptions , SnapshotMetadata , SnapshotOptions এবং Unsubscribe অবজেক্ট অন্তর্ভুক্ত নয়৷
অধ্যবসায় সাহায্যকারী . enableIndexedDBPersistence , enableMultiTabIndexedDbPersistence , এবং clearIndexedDbPersistence পদ্ধতিগুলি অন্তর্ভুক্ত নয়৷
ফায়ারস্টোর বান্ডিল । loadBundle পদ্ধতি এবং সম্পর্কিত পদ্ধতি এবং LoadBundleTask এবং LoadBundleTaskProgress অবজেক্ট অন্তর্ভুক্ত নয়।
নথি আনয়ন, প্রশ্ন এবং আপডেট বাস্তবায়ন করুন
Firestore Lite ইম্পোর্ট করার পর, আপনি পরিচিত সব API গেট এবং আপডেট কল করতে পারবেন। ডেটা যোগ করার এবং ডেটা পাওয়ার ক্ষেত্রে ব্যবহারের ক্ষেত্রে সবই প্রযোজ্য।
স্ট্যান্ডার্ড Firestore SDK-এর অফলাইন অধ্যবসায় এবং ক্যাশিং বৈশিষ্ট্যগুলি কখন ছেড়ে দেওয়া হবে তা সিদ্ধান্ত নেওয়া কঠিন হতে পারে। Firestore Lite-এর নিচের ওভারহেডের জন্য এগুলি ট্রেড করার সিদ্ধান্ত নেওয়ার আগে আপনার এই বৈশিষ্ট্যগুলি বোঝা উচিত। সাধারণভাবে, Firestore Lite ব্যবহার করবেন কিনা তা সিদ্ধান্ত নেওয়ার সময় এই বিষয়গুলো বিবেচনা করুন:
অনলাইন স্ট্যাটাস - ফায়ারস্টোর লাইট এমন অ্যাপগুলির জন্য ভাল যেগুলির লাইভ আপডেটের প্রয়োজন নেই এবং সংযোগ রয়েছে৷
আকারের সীমাবদ্ধতা - আপনি যদি আপনার সামগ্রিক জাভাস্ক্���িপ্ট বান্ডিলের আকার কমাতে চান তবে ফায়ারস্টোর লাইট দুর্দান্ত৷
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-08-15 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nFirestore is a good scalable database solution to keep data in sync across Web\nclients.\n\nFor many apps, Firestore's managed offline support is especially important,\nletting you build responsive apps that work regardless of network latency or\nInternet connectivity. But feature-rich SDKs come at a size cost. What\ndoes Firebase offer for apps that only need to use basic create, read, update\nand delete operations, and don't need managed offline support?\n| **Note:** Before using Firestore Lite, be sure you understand the standard Firestore Web API and Firestore's offline capabilities as part of the full [feature set](../index.html). We recommend Firestore Lite for developers who have experience building with Firestore and can evaluate the tradeoffs of using a lightweight version.\n\nSolution: Firestore Lite\n\nFirestore Lite is a lightweight, standalone REST-only Firestore SDK that\nsupports single document fetches, query execution, and document updates, at a\nfraction of the regular Web SDK size. Firestore Lite omits latency compensation,\noffline caching, query resumption and snapshot listeners, but for particular\nuse cases, the reductions in library size and startup time make a great tradeoff.\n\nImport Firestore Lite\n\nFirestore Lite is available via npm as part of the\n[modular SDK](//firebase.google.com/docs/web/learn-more#modular-version). It is\nthus fully modular and tree-shakeable.\n\nThe following import style is supported. \n\n import { initializeApp } from \"firebase/app\";\n import {\n getFirestore,\n getDoc,\n updateDoc\n } from 'firebase/firestore/lite';\n\nAPI features not supported by Firestore Lite\n\nFor size and speed, Firestore Lite omits these features from the standard\nFirestore SDK:\n\n- **DocumentSnapshot event handlers** . The `onSnapshot` method and `DocumentChange`, `SnapshotListenerOptions`, `SnapshotMetadata`, `SnapshotOptions` and `Unsubscribe` objects are not included.\n- **Persistence helpers** . The `enableIndexedDBPersistence`, `enableMultiTabIndexedDbPersistence`, and `clearIndexedDbPersistence` methods are not included.\n- **Firestore bundles** . The `loadBundle` method and related methods, and the `LoadBundleTask` and `LoadBundleTaskProgress` objects are not included.\n\nImplement document fetches, queries and updates\n\nAfter importing Firestore Lite, you can make all of the familiar API get\nand update calls. The use cases for [adding data](../manage-data/add-data)\nand [getting data](../query-data/get-data) all apply. \n\n import {\n getFirestore,\n getDoc,\n updateDoc,\n doc\n } from '@firebase/firestore/lite';\n\n const firestore = getFirestore(app);\n const docRef = doc(firestore, 'collection/doc');\n const docSnap = await getDoc(docRef);\n await updateDoc(docRef, \"field\", 'value');\n\nWhen to use Firestore Lite\n\nIt can be tricky to decide when to let go of the standard Firestore SDK's\noffline persistence and caching features. You should understand these features\nbefore deciding to trade them away for the lower overhead of Firestore Lite. In\ngeneral, weigh these factors when deciding whether to use Firestore Lite:\n\n- **Online status** - Firestore Lite is good for apps that do not need live updates and have connectivity.\n- **Size constraints** - Firestore Lite is great if you want to reduce your overall JavaScript bundle size."]]