Back

database

  • 0
  • Databases
Camo
14 Feb, 2024, 13:51

you can just combine the calls for data with await promise.all and get the data at the same time

TL;DR
Title: Database Attribute Limits and Fixing Relationship Errors Developers in the support thread are discussing database attributes and relationships. The developer asks why there is a limit of 15 attributes and mentions encountering a stuck attribute. They also mention experiencing occasional errors when creating relationships and seek advice on how to fix them. Solution: 1. The limit of 15 attributes in a collection is causing frustration for the developer. However, another developer suggests using more collections or combining data calls with Promise.all to retrieve the required data. They caution against using a single collection with a large number of attributes due to potential data overload and slow query times. 2.
mijn_bassie
14 Feb, 2024, 13:51

And just have 15 attributes

Camo
14 Feb, 2024, 13:51

not a biggie, that's what i do

Camo
14 Feb, 2024, 13:51

oh that's cloud, right?

Camo
14 Feb, 2024, 13:52

well even if its 15 attributes, that's enough

mijn_bassie
14 Feb, 2024, 13:52

It's in the selection database attributes

Camo
14 Feb, 2024, 13:52

just create more collections

Camo
14 Feb, 2024, 13:52

is there a limit to that?

Camo
14 Feb, 2024, 13:52

what have you got with more than 15 attributes?

Camo
14 Feb, 2024, 13:52

could you give me an example?

mijn_bassie
14 Feb, 2024, 13:53

Yeah understand indeed

Camo
14 Feb, 2024, 13:53

which is one dataset you would require

mijn_bassie
14 Feb, 2024, 13:53

Ah yeah of course that's also a thing I could do. Idk of there is a limit for that. Just have 5 collections rn. But I thought all in one is much easier to get the data

Camo
14 Feb, 2024, 13:54

easyer, maybe yeah, but you got to think in the big picture, that's more data even not needed one

Camo
14 Feb, 2024, 13:54

think about the people on with bad internet connections

Camo
14 Feb, 2024, 13:54

every kb saved is more trust gained

Camo
14 Feb, 2024, 13:55

😄

mijn_bassie
14 Feb, 2024, 13:57

Yes ofc.

In the collection "users" I have 15.

TypeScript
1. Liked (relation ship)
2. Name (string)
3. Username(string)
4. Account ID(string)
5. Email(email)
6. Bio(string)
7. ImageId(string)
8. ImageUrl(URL)
9. Posts(relationship)
10. Saves(relationship)
11. Reacted( a stuck one what I can't delete for some reason)
12.Online status( string)
13. HasLikes(string)
14. Comment(relationship)
15. LikedComments(relationship)
Camo
14 Feb, 2024, 13:58

well, name username, account, email, i think that's already in user

mijn_bassie
14 Feb, 2024, 13:58

You mean the Auth?

mijn_bassie
14 Feb, 2024, 13:59

There's only name, identifiers, status, labels, joined and last activity

Camo
14 Feb, 2024, 13:59

yeah but you got the user model already you got access

mijn_bassie
14 Feb, 2024, 13:59

And I need that ones to get to the databases. That's why I added that 🙏

Camo
14 Feb, 2024, 13:59

where you can store that

Camo
14 Feb, 2024, 13:59

which makes more sense, right?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more