[Python] persistent relationships between objects [closed]

Discussão em 'Python' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am drafting the architecture of new code: I want my script to remember relationships between entities. So for example one entity could be "Anna" (a name/string) the relation would be "likes" (also a string or an interger which refers to "like") and the related entity is also a string like "Helga".

    I don't want to build a SQL database with columns like "string1", "string2", "relation" beacause:

    • I also would like to have one-many relations or even many-many
    • I want it to be really fast, like real-time fast
    • I want it to be scalable, like massively scalable

    What way of doing this would you recommend? What technology? Should I move to pypy or C for performance reasons? Is there some sort of database which is specialized on that?

    Continue reading...

Compartilhe esta Página