You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .vscode | 4 years ago | |
| docker | 4 years ago | |
| modules | 4 years ago | |
| sql | 4 years ago | |
| .gitignore | 4 years ago | |
| pom.xml | 4 years ago | |
| readme.md | 4 years ago | |
| sources.md | 4 years ago | |
| workspace.code-workspace | 4 years ago | |
readme.md
Java ORM test
Initial assumptions
- JPA is f***ing slow, due too many layers of abstraction
- NO xml and other shit-styled non-code-like sources must be needed
- no additional tools to work (only boxed with technology set or none is applicable)
Initila list of techs
- Apache Cayenne
- Ebean
- jOOQ
- speedment
- ORMLite Core
- EclipseLink
- MyBatis
- Querydsl
- Hibernate (as JPA representative - zero mark)
Initial criteria
Must:
- encrypted columns
- no raw SQL for simple CRUD operations
- support for PostgreSQL
Good to see if:
- support for MariaDB
- support extended PostgreSQL features (including json and array)
- "N+1" problem automatic solutions (as much as possible)
- ability to generate raw SQL (to be executed elsewhere)
- support for binary (BLOB) storage and extraction (10Mb per record max)
Test plan
- postgres version 14 & 14-alpine (test database performance baseline)
- two databases (one with partitioning, one without)
- tables per database
- xxs [50 records]
- xs [500 records]
- s [5000 records]
- m [50000 records]
- l [500000 records]
- xl [5000000 records]
- xxl [50000000 records]
- each test module starts a fresh copy of database
- database content is procedure-generated
- random sequences must be pregenerated to be exactly same for all tests (to eliminate test-path diviations)
- random sequence for each test is unique and not intersect (to eliminate postgresql optimizations)
Requests plan
- insert
- single
- correct data
- constrain violation
- batch
- correct
- invalids (by hand to check if full transaction will roll back)
- single
- find
- by equals (1)
- integer
- string
- date
- by more X & less Y (N)
- integer
- float
- date
- by equals (1)
- update
- random by id (single)
- by criteria (batch)
- delete
- random by id (single)
- by criteria (batch)
Documentation analysis
- MyBatis - out of competitions, due to ass-whipping-xml notation.
Initial project setup analysis
-
speedment - cool-looking streaming API, but it's way of from common SQL-like syntax & failes to work with UUID columns corectly, also they wanna' our money, dude if we need something not straightly mapped. Out of competition.
-
jOOQ - enterprise style peace of ..., but still in.
-
Hibernate (as JPA representative - zero mark)