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 battery CSS Devoxx Devoxx 2011 Devoxx 2012 Docker dolphin Eclipse environment ESP8266 Espressif Git Hibernate IoT iPhone iTunes Java JavaScript JBoss JPA LoRaWAN Maven MAX7219 music Namibia networking NodeMCU Oracle OS X Palmwag PHP printer Purros Python regexp regular expression Spring Spring Security SSL Thunderbird WebSphere WeMos

Categories

  • Apple & Mac (43)
  • Blogroll (1)
  • Computers (29)
  • General (43)
  • IoT (23)
  • 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 (23)