Commit Graph

131 Commits

Author SHA1 Message Date
Vitor Pamplona 7fabb6b554 Makes addresses serializable 2026-03-02 15:39:58 -05:00
Vitor Pamplona 64c8c0edfd Improves the name of the NIP01 Crypto object 2026-02-18 11:29:56 -05:00
Vitor Pamplona eb66182211 - Updates several libraries
- Reformats code to the newest Klint
- Fixes isEmpty bug on Filters
2026-02-09 14:06:07 -05:00
Vitor Pamplona 710f15f790 - Fixes copyright using KDoc patterns instead of simpler comments
- Moves spotless and git-hooks to hidden folders
2026-02-09 13:06:41 -05:00
Vitor Pamplona 92d4654b20 Removes the memory counter methods because they are not the best way to measure the size in memory of these objects, since we intern strings all the time. 2026-01-14 16:49:11 -05:00
Vitor Pamplona 3d0b0c01b9 Finishes editing quartz event store readme 2026-01-14 15:36:32 -05:00
Vitor Pamplona adb2f48fb5 Updates event store readme 2026-01-14 15:29:13 -05:00
Vitor Pamplona ce01e8f70c moves keystore to commons to avoid unnecessary dependencies on Quartz 2026-01-07 11:09:45 -05:00
Vitor Pamplona 41cb143e0d Merge branch 'main' into nrobi144/desktop-phase1 2026-01-07 09:23:57 -05:00
nrobi144 fd83560852 key storage implementation 2026-01-06 17:08:28 +02:00
nrobi144 df9d648988 key storage spotless 2026-01-06 06:50:31 +02:00
nrobi144 4339247815 key storage 2026-01-06 06:49:59 +02:00
davotoula 0d923b5caa optimise imports 2026-01-04 12:19:00 +01:00
Vitor Pamplona d7888c57fa Creating additional configuration options and amplifying tests to a combination of all those options 2026-01-03 18:18:36 -05:00
Vitor Pamplona 7a34b8480e Fixes count not working for LIMIT queries 2026-01-02 17:22:18 -05:00
Vitor Pamplona 51f9fdd58c Adds a simple query to the count filter 2026-01-02 16:58:59 -05:00
Vitor Pamplona 989c63a717 Expose query plans with the current hasher 2026-01-02 16:57:49 -05:00
Vitor Pamplona 48e791c634 removes logs 2026-01-02 16:17:58 -05:00
Vitor Pamplona 307cff87e7 Adds more settings to pick different ways to build the SQL database 2026-01-02 14:54:30 -05:00
Vitor Pamplona 7c63d654f2 Inverts the name of the isFilledFilter function 2026-01-01 21:29:20 -05:00
Vitor Pamplona 291db1f30b duplicates kinds and pubkey on the tags table to take complex queries under 100 microseconds 2026-01-01 14:57:48 -05:00
Vitor Pamplona 238d4e0004 No need for the fts module anymore 2026-01-01 14:52:11 -05:00
Vitor Pamplona aac880c575 Range queries are not effective as the first argument, switching to kind, key, created_at index, which also almost invalidates the need for the Replaceable idx and is only kept for the unique key consistency 2026-01-01 12:51:43 -05:00
Vitor Pamplona 8affb2564b explains the fk index on tags 2026-01-01 12:49:12 -05:00
Vitor Pamplona b7c7eabf2a Explains limit index 2026-01-01 12:48:48 -05:00
Vitor Pamplona f48eba6a8e No need for this index since it will be covered by addressable_idx 2026-01-01 12:48:22 -05:00
Vitor Pamplona 307703cbb7 Explains ID index 2026-01-01 12:47:35 -05:00
Vitor Pamplona 9d67d5d6dc Implements a raw add on to the query builder 2026-01-01 12:37:44 -05:00
Vitor Pamplona 1978c8e17e Faster way of coding equals to null in the sql builder 2026-01-01 12:37:13 -05:00
Vitor Pamplona 507256e0dd Fixes Or builder 2026-01-01 12:36:26 -05:00
Vitor Pamplona 393366d9cc Adds size of the DB as a function to the lib 2025-12-31 18:41:20 -05:00
Vitor Pamplona 5d7c84d357 Setting higher cache size 2025-12-31 16:53:41 -05:00
Vitor Pamplona 6713c3bd50 Adds performance and flexibility by exposing Raw methods 2025-12-31 13:39:17 -05:00
Vitor Pamplona 4f1ad11d79 Moves SQLBuilder to its own class 2025-12-31 09:27:33 -05:00
Vitor Pamplona 7b696f5f54 Adds created_at to tags to speed up tag-ordered queries 2025-12-30 16:23:11 -05:00
Vitor Pamplona c3d741ebd1 Implements AND queries for tags: https://github.com/nostr-protocol/nips/pull/1365 2025-12-30 12:29:04 -05:00
Vitor Pamplona 333285747b Migrates to using indexes instead tagNames to avoid non-ASCII chars reaching the DB 2025-12-30 12:06:22 -05:00
Vitor Pamplona 2a8e7cbe94 Fixes duplicated results 2025-12-30 12:03:09 -05:00
Vitor Pamplona 57a22384b2 Refactoring 2025-12-27 17:57:32 -05:00
Vitor Pamplona 390da16129 Creating a IndexingStrategy interface 2025-12-27 17:55:30 -05:00
Vitor Pamplona 55774b0292 sorting tags before inserting speeds up imports by ~20% 2025-12-27 13:13:46 -05:00
Vitor Pamplona 068ba3b717 Vacuum and Analyze are blocking, so moving to a coroutine. 2025-12-27 12:40:23 -05:00
Vitor Pamplona d435231f55 Setting cache doesn't seem to do anything :( 2025-12-27 12:38:22 -05:00
Vitor Pamplona f0b6fa622c adds vacuum and analyse utility functions 2025-12-27 12:11:58 -05:00
Vitor Pamplona f9582bb007 Increases cache size to up to 40MB 2025-12-27 12:11:31 -05:00
Vitor Pamplona 273d5feb94 - Adds support to delete GiftWraps by p-tag for Deletion and Vanish modules
- Adds Query plans to the test cases
- Reduces the amount of indexes that weren't used.
2025-12-26 15:43:51 -05:00
Vitor Pamplona 4455509e32 Converts pubkey to pubkey hash on vanish events. 2025-12-26 14:33:41 -05:00
Vitor Pamplona 5dcac034ac Uses event_header_row_id as primary key (with index) on event_vanish 2025-12-26 14:32:22 -05:00
Vitor Pamplona ef5ed755be Uses primary key to reuse rowId instead of building a separate index. 2025-12-26 14:31:18 -05:00
Vitor Pamplona 720e4d2c87 Forces the use of the index on Addressables and Replaceables 2025-12-26 14:29:10 -05:00