Skip to content

Deduplicate 'any' version attribute#286

Merged
vpaturet merged 2 commits intoentur:masterfrom
leonardehrenfried:deduplicate-version
Apr 20, 2026
Merged

Deduplicate 'any' version attribute#286
vpaturet merged 2 commits intoentur:masterfrom
leonardehrenfried:deduplicate-version

Conversation

@leonardehrenfried
Copy link
Copy Markdown
Contributor

@leonardehrenfried leonardehrenfried commented Mar 18, 2026

EPIP allows you to use the version any and some feeds us it for every entity.

In my particular example at hand the string any is duplicated 72 million times!

image

For this reason, I'm implementing a very simple version de-duplicator which checks for the version "any".

If desired, this could also be a bit more aggressive by, for example, deduplicating purely numeric versions from 0-100.

cc @vpaturet

Ref: #284
Ref: noi-techpark/opendatahub-mentor-otp#273

cc @rcavaliere

package org.rutebanken.util;

import jakarta.xml.bind.annotation.adapters.XmlAdapter;
import java.util.HashMap;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unused import

Comment thread src/main/java/org/rutebanken/util/VersionXmlAdapter.java Outdated
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