Archives
-
Why a cache in an O/R mapper doesn't make it fetch data faster.
Preface
One of the biggest myths in O/R mapper land is about 'caching'. It's often believed that using a cache inside an O/R mapper makes queries much faster and thus makes the O/R mapper more efficient. With that conclusion in hand, every O/R mapper which doesn't use a cache is therefore less efficient than the ones who do, right?
Well... not exactly. In this article I hope to explain that caching in O/R mappers is not there for making queries more efficient, but is there for uniquing. But more on that later on. I hope that at the end of the article, I have convinced the reader that the myth Caching == more efficiency is indeed a myth. Beware, it's perhaps a bit complicated here and there, I'll try to explain it in as much layman's terms as possible. -
Essay: The Database Model is the Domain Model
To work with data on a semantic basis, it's often useful to specify general definitions of the elements a given portion of logic will work with. For example, an order system works with, among other elements,
Order
elements. To be able to define how this logic works, a definition of the conceptOrder
is practical: We will be able to describe the functionality of the system by specifying actions on Order elements and supply with that a definition of that elementOrder
. -
Hell has frozen over: VS.NET 2003 SP1 has arrived!
See: http://blogs.msdn.com/robcaron/archive/2006/08/16/702177.aspx
Well, better late than never . I'm glad it's finally here. Haven't tried it yet, but will do later today . -
.NET 2.0's ToolStripMenuItem are hard to disable...
Say, you have a .NET 2.0 Windows Forms application with one form and on the form one menu strip at the top, you know, very simple. On that menu strip, you have the menu 'Foo' and on that menu you have a menu item 'Bar', which are in .NET 2.0 of type ToolStripMenuItem. You assign a keyboard shortcut to the Bar menu item, say Cntrl+B.
You disable the menu 'Foo', by setting its Enabled property to false. Now it's impossible for the user to click / select the Bar menu item, right? -
Anonymous comments are off
I switched off anonymous comments, after a truckload of comment spam in the last couple of days. Luckily the CS system contains a moderation system so they don't end up on the blog as comments but it's still annoying as the moderation system mails me the comments.