Skip to content
Back

Do we have plan to implement a Relationship in table but different database?

  • 0
  • Databases
  • Cloud
Mosh Ontong
24 Dec, 2023, 13:58

As of now, the relationship should be table in same database. But does the appwrite team will have plan to have relationship in table but different databases?

TL;DR
User is wondering if there are plans to implement a relationship in a table that spans across different databases. They mention that JOINs are not the same as relationships and share a link to a Stack Overflow question for reference. They also express concerns about managing collections and suggest encapsulating them. They provide an example of having a user collection in one database and wanting to connect it to an attribute in another database. They ask for clarification on the use case and inquire if the Appwrite team plans to allow relationships across different databases. Solution: No solution or answer is provided in the support thread.
D5
24 Dec, 2023, 14:49

What's the exact use case for this?

Mosh Ontong
24 Dec, 2023, 14:55

for example,

I create a user collection in my main database,

Now I have a another database called file system, so I have this attributes that indicates the owner of the file or folder, so I want to connect this attribute to my user collection in another database because I want to get the avatar of this user

ideclon
24 Dec, 2023, 17:49

I would expect not. I don’t think something like this would generally be possible with any database solution.

ideclon
24 Dec, 2023, 17:50

Why would you do this in a separate database, as opposed to a separate Collection?

Mosh Ontong
25 Dec, 2023, 01:48

I have multiple application

Mosh Ontong
25 Dec, 2023, 01:48

just imagine google products

Mosh Ontong
25 Dec, 2023, 01:49

if I have put it all in one database it hard to me locate the collection

Mosh Ontong
25 Dec, 2023, 01:49

so I have to refactor or encapsulate my collections

ideclon
25 Dec, 2023, 02:19

JOINs are not the same thing as Relationships

Mosh Ontong
25 Dec, 2023, 02:19

I do not think so on the backend process of Appwrite on how they managed the relationships

ideclon
25 Dec, 2023, 02:20

I'm not actually sure - will have to have a look at some point

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