Fedodo / Fedodo.BE.ActivityPub

This repository contains the ActivityPub backend for Fedodo.
https://fedodo.org
GNU Affero General Public License v3.0
6 stars 0 forks source link

Refactor Database Model #219

Open LNA-DEV opened 1 year ago

LNA-DEV commented 1 year ago

Currently the database is based on an Inbox => Type model. But I think it has to be an Inbox => Actor model.

LNA-DEV commented 1 year ago

This issue only is about the model of Outbox and Inbox

LNA-DEV commented 1 year ago

The Collections in the Outbox should be grouped by Actors

LNA-DEV commented 1 year ago

The Inbox should be treated same as the Outbox.

LNA-DEV commented 1 year ago

This design would make much more sense. "Save the data together which is accessed together"

LNA-DEV commented 1 year ago

I just thought about that topic again. New idea:

Activity Database

This database will contain every Activity sent by an actor. So every actor gets a own collection in which every activity this actor sends will be stored. This should be regardless of the home server of the actor.