Skip to content

my2cents

"The Earth was made round so that we would not see too far down the road" — Karen Blixen

  • PGP
  • Projects
    • jQuery highlight
    • iCalendarFactory
    • CopyMachine
  • Toad The Wet Sprocket
  • Goodies
  • About

Tag: JPA

JPA batch inserts with Hibernate & Spring Data

15th June, 201224th March, 2020 Marcel Stör15 Comments

JPA batch inserts (aka bulk inserts) may seem trivial at first. However, if you’re not careful you won’t see the performance gains you expect even though your application works “just fine”. If you follow the below guidelines your JPA batch inserts should be blazingly fast, though. JPA batch inserts with Hibernate All the material presented […]

Read More…

Extra lazy one-to-many mapping with Hibernate

21st November, 201019th January, 2013 Marcel Stör1 Comment

Assume entity A has a one-to-many relationship to B. So, you’d have a method like A#getBs(). However, sometimes you might/will only need the number of Bs and not the entities themselves i.e. you need the count. However, if you called A#getBs()#getSize() you’d effectively initialize the collection and thereby loading entities into memory for no reason. […]

Read More…

Tags

Africa Apache Apple CSS CXF Devoxx Devoxx 2012 Docker dolphin Eclipse environment ESP8266 ESP8285 Espressif Git Hibernate image IoT iPhone Java JavaScript JBoss LoRaWAN Mac macOS Maven music Namibia networking NodeMCU Oracle OS X PHP printer Python regexp regular expression Spring Spring Security SSL TED The Things Network Thunderbird WebSphere WeMos

Categories

  • Apple & Mac (44)
  • Blogroll (1)
  • Computers (30)
  • General (43)
  • IoT (24)
  • Jazoon (3)
  • Life (27)
  • Software Development (76)
    • Java (47)
    • JavaScript (2)
    • Ruby (1)
  • Sun SPOT (3)
  • Travelling (40)
    • Japan 2007 (2)
    • Japan 2008 (7)
    • Namibia 2009 (12)
    • North America 2006 (18)
  • Uncategorized (7)
  • Web Authoring (24)