apache / apache/polaris

Unnecessary overhead due to Jackson serialization in all entities

Open
#773 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.1k
Forks
522
Avg merge
1d 17h
Merged PRs (30d)
137

Description

### Describe the bug

The generic property bags `properties` and `internalProperties` are persisted as strings, which contain the JSON serialized representation of both property bags.

Each time a call site requests any of these property bags, the JSON representation is being parsed.

This behavior is quite expensive.

_How_ entities and their attributes are persisted should really be up to the actual persistence implementation.

### To Reproduce

_No response_

### Actual Behavior

_No response_

### Expected Behavior

_No response_

### Additional context

_No response_

### System information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the properties and internalProperties bags are persisted and where their JSON representations are parsed at call sites. The issue provides no file or test entry point; done would mean avoiding unnecessary Jackson parsing while preserving entity property behavior across the persistence implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.