ohh i got it
my app is related to book pdf notes
making an app for campus Notes
You mean uploading multiple documents then?
so users request api calls everytime to get access of notes
no they can only read and download notes from app only i can upload notes
help me out please
You don't make a request for every note, you make a request to get access to a bunch of documents
So that way you'll not be rate-limited
yes
Also never download if there are 10000 documents, all of them at once
my app has 5 level of hirerchy to access pdf file like user>Branch>Year>Semester>Subjects>(pdf of particular subject) branch can be CSE,IT,ECE,EEE,CIVIL,MECH Year can be 1,2,3,4 Semester can be 1,2,3,4,5,6,7,8 subjects can be multiple max 10 for each semester
and at the end the pdf will be available for particular subject
Each of them is a collection
And each input is a document
Just imagine like if it was a SQL database (appwrite database is SQL, except API) so every table is a collection and each row is a document
- users (collection)
- {userID} (document)
- branches (subcollection)
- {branchName} (document)
- years (subcollection)
- {yearNumber} (document)
- semesters (subcollection)
- {semesterNumber} (document)
- subjects (subcollection)
- {subjectID} (document)
- pdfFileUrl: "https://example.com/path/to/file.pdf"
- {subjectID} (document)
- subjects (subcollection)
- {semesterNumber} (document)
- semesters (subcollection)
- {yearNumber} (document)
- years (subcollection)
- {branchName} (document)
- branches (subcollection)
- {userID} (document)
You can't make subcollections
okay
how do you got this much knowledge about appwrite?
Reading docs and making an app with it
Also seeing appwrite blog
But I have too doubts while structuring data 😅 Not about how to structure it, but more about how to make it be efficient
ohh
same here
Recommended threads
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...