Hi Brendan
Thank you for your reply. That solved my concern about problem might arise using the IDKey True with child table.
Speaking about performance, I am interested in fine tuning the table design to get the best of of Cache database performance. If I may have your advise on my table design. The following is the detail information.
I have tables for monthly data (in Server A)
User.OrderYYYYMM [IDKey : OrderNo]
> User.OrderDetailsYYYYMM [Child] [IDKey : {%%PARENT}("ITM")(Running Number)]
> User.OrderDetails2YYYYMM[Child] [IDKey : {%%PARENT}("ITM2")(Running Number)]
Then I have a Yearly data (in Server B)
User.Order [IDKey : Year,Month,OrderNo]
> User.OrderDetails [Child] [IDKey : {%%PARENT}("ITM")(Running Number)]
> User.OrderDetails2[Child] [IDKey : {%%PARENT}("ITM2")(Running Number)]
There is 2 server to serve 2 type of user group from different location. The monthly data (Server A) is where the user will manage the data. Then the monthly data (Server A) will push to Yearly data(Server B, user use the data). I put all the table in the same global so that I will not have any problem pushing the data from Server A to Server B (through Shadowing with some scripting). Should there is any update in Server A, I could easily identify the record in Server B and update it.
For my case I do use bitmap for indexing. I have 2 set of tables (monthly and yearly) is due to bitmap as well. The user in Server A might flush out the entire month of data and reinsert it again (Is also the user wish as they do not want the risk of accidentally deleting the wrong data). Hence to avoid re-index the whole table again, I break it to monthly table to reduce the indexing time. This will not occur in server B as I could make user the Shadow "Filter routine" option to pick up the deleted record and update the index in Server B (not tested it yet.)
As mentioned in your reply "query the children without also referencing the Parent data ", there are time where I would only access the parent/child (not both at the same time).
Thank you.
Regards
Jimmy
- Log in to post comments