gerrit/Documentation/pgm-index.txt
Hongkai Liu 49799b22fa Support Jdbc implementation of AccountPatchReviewStore
Provide in gerrit core support for alternative database backends
for AccountPatchReview store.

H2 was used for storing AccountPatchReview. This can become
problematic in large installation since embedded H2 cannot execute
concurrent requests even to the same database. The options related to
multi-thread in H2 are:
- MULTI_THREADED: a long running query blocks the ones in other
threads [1].
- MVCC: This is not production-ready yet, since it is not fully
tested [2].

AccountPatchReviewStore is an extension and a plugin could
implement a jdbc store but this would result in duplicated code
with core H2 implementation. Since core H2 implementation was
almost already compliant to jdbc standard, it's easy to make
jdbc url configurable in gerrit config and make the core support
other database than H2.

One could extend the H2 implementation in plugin, however the
changes on the supper class could lead to breaking plugin
implementation.

[1] http://www.h2database.com/html/features.html#multiple_connections
[2] http://www.h2database.com/html/advanced.html#mvcc

Change-Id: Ie61ac63a72cab71bd907886a794541cb3dea291e
2017-04-26 09:28:57 +02:00

53 lines
1.3 KiB
Plaintext

= Gerrit Code Review - Server Side Administrative Tools
Server side tools can be started by executing the WAR file
through the Java command line. For example:
$ java -jar gerrit.war <tool> [<options>]
Tool should be one of the following names:
== Tools
link:pgm-init.html[init]::
Initialize a new Gerrit server installation.
link:pgm-daemon.html[daemon]::
Gerrit HTTP, SSH network server.
link:pgm-gsql.html[gsql]::
Administrative interface to idle database.
link:pgm-prolog-shell.html[prolog-shell]::
Simple interactive Prolog interpreter.
link:pgm-reindex.html[reindex]::
Rebuild the secondary index.
link:pgm-SwitchSecureStore.html[SwitchSecureStore]::
Change used SecureStore implementation.
link:pgm-rulec.html[rulec]::
Compile project-specific Prolog rules to JARs.
version::
Display the release version of Gerrit Code Review.
link:pgm-passwd.html[passwd]::
Set or reset password in secure.config.
=== Transition Utilities
link:pgm-LocalUsernamesToLowerCase.html[LocalUsernamesToLowerCase]::
Convert the local username of every account to lower case.
link:pgm-MigrateAccountPatchReviewDb.html[MigrateAccountPatchReviewDb]::
Migrates AccountPatchReviewDb from one database backend to another.
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------