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

Trigger calculate column position from table #3500

Conversation

thoniTUB
Copy link
Collaborator

Inverse the inversion

@thoniTUB thoniTUB requested a review from awildturtok July 23, 2024 12:29
@@ -43,6 +48,10 @@ public class Table extends Labeled<TableId> implements NamespacedIdentifiable<Ta
@JsonManagedReference
private Column primaryColumn;

@JsonIgnore
@Getter(AccessLevel.NONE)
private Object2IntMap<Column> columnPositions = new Object2IntOpenHashMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ich hatte es dir im vorherigen PR schon angemerkt, du kannst hier keine Map benutzen, das wird die Performance komplett tanken. Das muss in der Column als Feld gecached sein.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah danke nochmal für den hinweis, dann dreh ich es um und mache einen kommentar dran

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 habe es jetzt umgebaut:

Eine Table wird nach der Deserializierung automatisch initialisiert, dabei werden die positions in den columns gesetzt.

@thoniTUB thoniTUB force-pushed the feature/calculate-column-position-in-table branch from 2cbb21f to 631ee79 Compare July 23, 2024 12:39
@thoniTUB thoniTUB changed the title calculate column position in table Trigger calculate column position from table Jul 23, 2024
@awildturtok
Copy link
Collaborator

Ist rot

thoniTUB added 10 commits July 25, 2024 17:13
…n-in-table' into feature/calculate-column-position-in-table

# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/io/storage/MetaStorage.java
#	backend/src/main/java/com/bakdata/conquery/mode/ManagerProvider.java
#	backend/src/main/java/com/bakdata/conquery/models/config/XodusStoreFactory.java
#	backend/src/test/java/com/bakdata/conquery/io/AbstractSerializationTest.java
#	backend/src/test/java/com/bakdata/conquery/io/jackson/serializer/IdRefrenceTest.java
#	backend/src/test/java/com/bakdata/conquery/util/extentions/MetaStorageExtension.java
#	backend/src/test/java/com/bakdata/conquery/util/extentions/NamespaceStorageExtension.java
#	backend/src/test/java/com/bakdata/conquery/util/extentions/WorkerStorageExtension.java
…-parsing' into feature/calculate-column-position-in-table
@thoniTUB
Copy link
Collaborator Author

Es war unter anderem rot weil der ColumnValueAggregator die Werte in einer anderen Reihenfolge ausgegeben hat.
Ich habe es jetzt um ein TreeSet ergänzt.

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.

https://stackoverflow.com/a/57757055

Ich habe gerade noch den weg gesehen, der weniger aufwändig ist, sobald es implementiert ist.

…zation-upon-parsing

Feature/integrate object initialization upon parsing
…ion-in-table

# Conflicts:
#	backend/src/test/java/com/bakdata/conquery/io/AbstractSerializationTest.java
#	backend/src/test/java/com/bakdata/conquery/io/jackson/serializer/SerializationTestUtil.java
#	backend/src/test/java/com/bakdata/conquery/util/extensions/NamespaceStorageExtension.java
@thoniTUB thoniTUB merged commit 91f8f38 into feature/integrate-object-initialization-upon-parsing Aug 7, 2024
2 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