expired subscriptions and deleted topics with no subscribers are now removed from...
authorJustin Wind <justin.wind+git@gmail.com>
Sat, 21 Aug 2021 21:51:47 +0000 (14:51 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Mon, 23 Aug 2021 22:36:19 +0000 (15:36 -0700)
commit9812213260e952ae601f94ab0915c680e8c80495
tree67cd0dba737aac7d2a9fa9ccb8e98372eef132ca
parentcab7ebc31583981d0c235039afdfc9d63e730f02
expired subscriptions and deleted topics with no subscribers are now removed from the database

Expired subscriptions are removed when a topic is updated, and topics
set to deleted state are removed when the last subscriber is notified.
15 files changed:
CHANGELOG.md
src/communication.js
src/db/base.js
src/db/postgres/index.js
src/db/postgres/sql/subscription-delete-expired.sql [new file with mode: 0644]
src/db/postgres/sql/topic-delete-by-id.sql [new file with mode: 0644]
src/db/sqlite/index.js
src/db/sqlite/sql/subscription-delete-expired.sql [new file with mode: 0644]
src/db/sqlite/sql/topic-delete-by-id.sql [new file with mode: 0644]
src/manager.js
test/src/communication.js
test/src/db/integration.js
test/src/db/postgres.js
test/src/db/sqlite.js
test/stub-db.js