Home

Search results

"category:/Persistence"


Title and summary Date/time
1
Horrible JDBC Code and What's Wrong With It
Ah, Efficiency: Thou art a goddess who deserves worship, adulation, sacrifice, but thou art also a goddess who gets said worship, adulation, and sacrifice in all the wrong ways. Here's some JDBC code validating a login, trying to be good code (I ...
Nov 12, 2008
8:54:00 AM
2
Are JDBC statements portable across databases?
Ah, JDBC. Sometimes, people want to write JDBC code, because SQL is friendly and safe; then they discover that they actually don't want to deploy on MySQL after all, and they run into problems. The question is usually formed in this way: "If I write my ...
Nov 10, 2008
7:07:00 AM
3
How can I automatically expire data from a database?
Another fairly common question: how can I expire data from a database? This is a case of applying lipstick to a pig: there are ways, to be sure, but the real problem is that you're using a database - a permanent datastore - to handle data that's ...
Aug 30, 2008
10:29:00 AM
4
My data structures have changed - how can I migrate my data model?
Sometimes, people design data structures, persisted entities, only to find that - gasp! - their data structures are more fluid than they expected. When all of your data is transient - meaning that it can be destroyed safely - that's no big deal, because ...
Aug 28, 2008
4:11:00 PM