-
Notifications
You must be signed in to change notification settings - Fork 12
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
Trigger calculate column position from table #3500
Conversation
@@ -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<>(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
2cbb21f
to
631ee79
Compare
Ist rot |
…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
Es war unter anderem rot weil der ColumnValueAggregator die Werte in einer anderen Reihenfolge ausgegeben hat. |
There was a problem hiding this 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
91f8f38
into
feature/integrate-object-initialization-upon-parsing
Inverse the inversion