cameri / nostream

A Nostr Relay written in TypeScript
MIT License
713 stars 181 forks source link

feat(event_tags): Add event_tags table and migration script #349

Closed imksoo closed 6 months ago

imksoo commented 6 months ago

Description

This pull request introduces a new event_tags table and its associated migration script. By expanding and indexing the contents of the tags field of the events table in the events_tags table in advance, the search process by REQ can be made much faster than the original JSONB operation.

Related Issue

#348

Motivation and Context

The addition of the event_tags table is required to efficiently manage and query event tag data. This change aims to improve data organization and access, facilitating better event management within the application.

How Has This Been Tested?

The changes have been tested in a local development environment. I performed the following tests:

Types of changes

Checklist:

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 7443641804


Totals Coverage Status
Change from base Build 6132344305: 0.1%
Covered Lines: 1189
Relevant Lines: 2298

💛 - Coveralls
github-actions[bot] commented 5 months ago

:tada: This PR is included in version 1.26.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: