Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/integrate object initialization upon parsing #3499

Merged

Conversation

thoniTUB
Copy link
Collaborator

Next step towards caching.

Objects that are deserialized by jackson can be initialized automatically by jackson. This allows transparent and uniform initialization for deserialized object independent of if they stem from the api or storage

@thoniTUB thoniTUB requested a review from awildturtok July 23, 2024 11:44
@thoniTUB thoniTUB changed the base branch from develop to feature/more-http-import-for-tests July 23, 2024 11:46
}

if (dataset == null) {
// TODO remove this as the dataset can be derived from the storage and does not need to be explicitly declared
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noch offen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wird jetzt über den Storage aufgelöst

int2ext = mapIndex.getIndex(new MapIndexKey(resolvedURI, internalColumn, externalTemplate));
MapIndexKey key = new MapIndexKey(resolvedURI, internalColumn, externalTemplate);
try {
int2ext = mapIndex.getIndex(key);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

das heißt die werden jetzt schon beim reinladen initialisiert? Das halte ich für keine gute Idee

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dadurch wird der Upload endlos verlangsamt

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich kann das nach hinten verlagern, aber das parsen der Mappings ist normalerweise sehr fix.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicht wenn man es seriell macht was ja dadurch implizit passiert

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich probiere es mal mit einem wrap in ComputableFuture

thoniTUB added 8 commits July 25, 2024 12:39
…ture/integrate-object-initialization-upon-parsing

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/mode/NamespaceHandler.java
#	backend/src/main/java/com/bakdata/conquery/models/worker/DatasetRegistry.java
#	backend/src/main/java/com/bakdata/conquery/models/worker/Namespace.java
#	backend/src/main/java/com/bakdata/conquery/resources/admin/rest/AdminDatasetProcessor.java
#	backend/src/test/java/com/bakdata/conquery/integration/json/ConqueryTestSpec.java
#	backend/src/test/java/com/bakdata/conquery/models/datasets/concepts/tree/GroovyIndexedTest.java
@thoniTUB thoniTUB changed the base branch from feature/more-http-import-for-tests to develop July 25, 2024 11:40
thoniTUB added 3 commits July 25, 2024 13:41
…alization-upon-parsing

# Conflicts:
#	backend/src/test/java/com/bakdata/conquery/integration/json/ConqueryTestSpec.java
Copy link
Collaborator

@awildturtok awildturtok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mir fehlen nur dass die Exceptions gelogged werden.

@thoniTUB thoniTUB requested a review from awildturtok July 31, 2024 10:03
thoniTUB and others added 3 commits August 6, 2024 13:04
…reationException.java


corrects failure message

Co-authored-by: awildturtok <[email protected]>
…alization-upon-parsing

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/models/datasets/concepts/tree/TreeConcept.java
@thoniTUB thoniTUB merged commit b1e053e into develop Aug 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants