memberKeyDictionary losing entries?!
Posted: Fri Aug 07, 2009 1:17 pm
by Rich >> Wed, 26 Mar 2008 16:18:40 GMT
Hello!
I have a very strange issue. I program for a payroll bureau, and the largest data structure for our software has an instance of every payment item, for every employee, for ever period, for every company in that database for a standard of 2 years! So, lots and lots of instances!!
We have two memberKeyDictionaries that control the viewing of the instances, they both use the same keys (employee, item, date) but return the data in two different orders. The first returns every item for an employee for a given date, starting with the item in the parameter. The other returns a history of an employee for a single item, starting with the given date and working backwards for a given number of periods.
A couple of weeks ago, all of the weekly paid companies in one database noticed that they couldn't see any history for any item before that week whilst using the program that uses the second dictionary type; but when they used the program running the first dictionary type, they could see all the instances with no problems. Strangely, the monthly paid companies can all use both with no issues. Since then, the structure is working as expected, but they can only see the history back until that point. We did have a space issue at the end of that week, but that shouldn't have affected this at this point... it also doesn't explain why it has started working again!
It seems what has happened is that the records in the data structure for all weekly paid employees have been removed from the dictionary, no code nor errors could possibly have caused this. Our first thought was that due to the week in question being the week containing Feb 29th, it may be an issue with the date field, but testing has proved this not to be the case. We have tried doing reorgs on the data structure and the dictionary to no avail. Today, i have also created a copy of the dictionary and made them refer to the newly populated one, but that doesn't work either.
We are baffled as to why this has happened, any information or advice will be very appreciated. All other companies on all other databases work with no problems, its just this database with the weekly companies (there should be no reason it treats these differently).
All inverses are correctly set up, the instances still exist and are formed ok. It is just this reading issue.
Thank you in advance
Rich
Hello!
I have a very strange issue. I program for a payroll bureau, and the largest data structure for our software has an instance of every payment item, for every employee, for ever period, for every company in that database for a standard of 2 years! So, lots and lots of instances!!
We have two memberKeyDictionaries that control the viewing of the instances, they both use the same keys (employee, item, date) but return the data in two different orders. The first returns every item for an employee for a given date, starting with the item in the parameter. The other returns a history of an employee for a single item, starting with the given date and working backwards for a given number of periods.
A couple of weeks ago, all of the weekly paid companies in one database noticed that they couldn't see any history for any item before that week whilst using the program that uses the second dictionary type; but when they used the program running the first dictionary type, they could see all the instances with no problems. Strangely, the monthly paid companies can all use both with no issues. Since then, the structure is working as expected, but they can only see the history back until that point. We did have a space issue at the end of that week, but that shouldn't have affected this at this point... it also doesn't explain why it has started working again!
It seems what has happened is that the records in the data structure for all weekly paid employees have been removed from the dictionary, no code nor errors could possibly have caused this. Our first thought was that due to the week in question being the week containing Feb 29th, it may be an issue with the date field, but testing has proved this not to be the case. We have tried doing reorgs on the data structure and the dictionary to no avail. Today, i have also created a copy of the dictionary and made them refer to the newly populated one, but that doesn't work either.
We are baffled as to why this has happened, any information or advice will be very appreciated. All other companies on all other databases work with no problems, its just this database with the weekly companies (there should be no reason it treats these differently).
All inverses are correctly set up, the instances still exist and are formed ok. It is just this reading issue.
Thank you in advance
Rich