-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: PushKB improvements Initial crack at improving pushKB ingest times. Currently ~0.17 per title (~0.03 for normal ingest) * chore: Commented out logging for now to see if we get a speed boost by happy-accident * chore: Removed commented code Remove old commented out code * refactor: PackageIngestService lookupOrCreatePackage Split out lookup/update/create package methods so that we can have more granular decisions on when and where packages get created for pushKB process * chore: added test1 tenant sample data file * chore: Comment removal Removed commented out logdebugs * chore: Newline
- Loading branch information
1 parent
5c83c49
commit 29c282f
Showing
5 changed files
with
165 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
service/src/main/okapi/tenant/sample_data/test1-data.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// DEV NOTE -- This is what will be used for the default rancher-desktop-db/dc environments | ||
// For vagrant development (which I think is deprecated now) there may need to be a different file | ||
// to avoid making changes to diku-data or _data. | ||
log.info "Running test1-data tenant sample data file" | ||
|
||
import org.olf.kb.RemoteKB | ||
|
||
/* RemoteKB.findByName('GOKb_TEST') ?: (new RemoteKB( | ||
name:'GOKb_TEST', | ||
type:'org.olf.kb.adapters.GOKbOAIAdapter', | ||
uri:'https://gokbt.gbv.de/gokb/oai/index', | ||
fullPrefix:'gokb', | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false, | ||
//cursor: "2022-08-09T19:34:42Z" | ||
).save(failOnError:true)) */ | ||
|
||
RemoteKB.findByName('GOKb') ?: (new RemoteKB( | ||
name:'GOKb', | ||
type:'org.olf.kb.adapters.GOKbOAIAdapter', | ||
uri:'https://gokb.org/gokb/oai/index', | ||
fullPrefix:'gokb', | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false | ||
).save(failOnError:true)) | ||
|
||
/* RemoteKB.findByName('DEBUG') ?: (new RemoteKB( | ||
name:'DEBUG', | ||
type:'org.olf.kb.adapters.DebugGoKbAdapter', | ||
// uri can be used to directly force a package from the resources folder | ||
// uri: 'src/integration-test/resources/DebugGoKbAdapter/borked_ids.xml' | ||
rectype: RemoteKB.RECTYPE_PACKAGE, | ||
active:Boolean.TRUE, | ||
supportsHarvesting:true, | ||
activationEnabled:false | ||
).save(failOnError:true)) */ |