A customer was asking me last night about the new NSFDB2 function on Domino (but, for the iSeries). I started to do some research and found this document about the DB2beta for iSeries.
So, the first I said was "wait a little more.... but.. if you want this.. plan to upgrade to V5R4".
In our conversation I also talked about an interesting thing you could do if you have Domino 7.x and DB2 as your data store, maybe It will not be possible, or IBM will not allow to do it, or I am just thinking too much...! but here we go...
What's the Plan Cache ?
The Plan Cache is a repository that contains the access plans for queries that were optimized by SQE. It contains a wealth of information about the SQE - SQL Query Engine - queries being run through the database. This Plan Cache interface provides a window into the database query operations on the system. Link to the IBM InfoCenter.
What is the SQE (SQL Query Engine) ?
Link to the InfoCenter
What is the Visual Explain ?
It is a tool which comes with the iSeries™ Navigator that graphically displays the implementation of an SQL statement. Link to the Infocenter
More Info about related topics...
---
Now, let's go with my point... Example: If you have a Notes View fetching DB2 data , and you think it's slow and/or could be faster, just go to the Operations Navigator and look for the option "SQL Plan Cache Snapshots".
Right-click the Plan Cache icon and select "Show Statements". This screen provides a direct view of the current plan cache on the system. Here you can use the filtering options to find the query you need to optimize.After this point, you can use the Visual Explain options (Index Advisor for example) to see what you can do to improve your time response. I've seen complex queries from 20 minutes to 20 seconds (of course, it was not a Notes view !!).
Key points to take home..
- Plan Cache is cleared after IPL.
- Maybe you could see what Domino is doing when it's connecting/inserting/editing/etc... with DB2.
- Visual Explain is a great tool. Try it !
- Plan Cache was implemented in V5R2, but, you can really look inside after V5r4.
- More and more SQL keywords are being added to the SQE.
- Plan Cache is an actively changing cache. Don't wait a month to check a SQL Statement.


If you have any problem to have DWA + Sametime working, please check:
