Where is NoteDB data?

512 views
Skip to first unread message

Bob Roy

unread,
Aug 27, 2019, 10:22:04 AM8/27/19
to Repo and Gerrit Discussion
We successfully migrated "Change Data" from Postgres to NoteDB. I saw little change to filesystem sizes. Where does NoteDB show within the Gerrit filesystem? 

Gert van Dijk

unread,
Aug 27, 2019, 11:13:42 AM8/27/19
to Bob Roy, Repo and Gerrit Discussion
On Tue, Aug 27, 2019 at 4:22 PM Bob Roy <bro...@gmail.com> wrote:
>
> We successfully migrated "Change Data" from Postgres to NoteDB. I saw little change to filesystem sizes. Where does NoteDB show within the Gerrit filesystem?

NoteDb's storage backend is basically the repository itself, in hidden
refs. More information is available in the documentation [1].

HTH

[1]: https://gerrit-review.googlesource.com/Documentation/note-db.html

Matthias Sohn

unread,
Aug 27, 2019, 11:24:55 AM8/27/19
to Bob Roy, Repo and Gerrit Discussion
On Tue, Aug 27, 2019 at 4:22 PM Bob Roy <bro...@gmail.com> wrote:
We successfully migrated "Change Data" from Postgres to NoteDB. I saw little change to filesystem sizes. Where does NoteDB show within the Gerrit filesystem? 

this data is stored as git notes inside the respective git repository
here is a hint how to look into notedb using git

-Matthias 

Bob Roy

unread,
Aug 27, 2019, 11:33:24 AM8/27/19
to Repo and Gerrit Discussion
Thanks much guys!

Raviraj Karasulli

unread,
Aug 27, 2019, 2:37:08 PM8/27/19
to Repo and Gerrit Discussion
I see that the changes are stored in the refs/notes of the repository. Curious to know how the global change number is incremented.
Is there a central place where gerrit stores this info?

Edwin Kempin

unread,
Aug 27, 2019, 2:44:52 PM8/27/19
to Raviraj Karasulli, Repo and Gerrit Discussion
On Tue, Aug 27, 2019 at 8:38 PM Raviraj Karasulli <ravirajk...@gmail.com> wrote:
I see that the changes are stored in the refs/notes of the repository.
Actually it's under refs/changes/
 
Curious to know how the global change number is incremented.
Is there a central place where gerrit stores this info?
It's stored in refs/sequences/changes in the All-Projects repository.


On Tuesday, 27 August 2019 20:54:55 UTC+5:30, Matthias Sohn wrote:
On Tue, Aug 27, 2019 at 4:22 PM Bob Roy <bro...@gmail.com> wrote:
We successfully migrated "Change Data" from Postgres to NoteDB. I saw little change to filesystem sizes. Where does NoteDB show within the Gerrit filesystem? 

this data is stored as git notes inside the respective git repository
here is a hint how to look into notedb using git

-Matthias 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/0ba9612f-e924-4a7f-9d89-f448b49915f7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages