Skip to content

Commit

Permalink
issue #3217 addressed review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Arnold <robin.arnold@ibm.com>
  • Loading branch information
punktilious committed Feb 4, 2022
1 parent 56ed30e commit 7653e52
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions fhir-persistence-schema/docs/SchemaToolUsageGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,17 @@ java -jar ./fhir-persistence-schema-${VERSION}-cli.jar \
--show-db-size-detail
```

**Note:** For Db2, you must also include the desired tenant name, for example:

``` shell
java -jar ./fhir-persistence-schema-${VERSION}-cli.jar \
--prop-file fhiradmin.properties \
--db-type db2 \
--schema-name FHIRDATA \
--tenant-name MY_TENANT_NAME \
--show-db-size
```

The detail rows are tab-separated, making it easy to load the data into a spreadsheet for further analysis.

**Notes:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.Map;

/**
* Schema objects related to this resource
* Schema objects related to this resource type
*/
public class FHIRDbResourceSize {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface ISizeReport {

/**
* Render a report using the data from the given model
* @param os
* @param model
*/
public void render(FHIRDbSizeModel model);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private void collectTableInfo(String schemaName, Connection connection, IDatabas
throw translator.translate(x);
}
}

private void collectIndexInfo(String schemaName, Connection connection, IDatabaseTranslator translator) {
final String SQL = ""
+ " SELECT t.tablename,"
Expand Down

0 comments on commit 7653e52

Please sign in to comment.