June 4, 200421 yr I'm having an issue with my DB since importing 3000+ records from our previous DB. When working with about 300 records previously, this didn't happen and I think the larger number of records now has amplified a previous issue. I am using a portal to show all license keys issued to customers. A couple of the portal fields are calculation fields that show graphical checkboxes instead of the boring FM default checkbox. When I click to the layout that holds this portal, FM pauses for a while and the 'Sorting Records...' dialog appears. It takes about 5 seconds to populate each line in the portal. The files are linked by the CompanyID, so I don't think its the relationship causing the problem. I remember someone mentioning something about calculations causing speed issues in relationships, can someone refresh my memory? How can I prevent the 'Sorting Records...' dialog from appearing and slowing down the DB? Thank you in advance and please let me know if additional details are needed.
June 4, 200421 yr If the calculations are unstored (and unindexed) sorting and searching will be much slower. Try taking out the calc. fields and see if that helps. I wouldn't think that an unstored calc would slow things down too much if it isn't included in the sort. Dana
June 4, 200421 yr Author Dana, Thanks for your reply. I think I found my problem. The graphics for the checkboxes are stored as a global field in my Company DB. In the LicenseKey DB, I was displaying the checkboxes through a constant relationship to the Company DB, forcing it to parse every Company before the global checkboxes are displayed. Because its a global field, I simply changed my checkbox calculation to get the checkboxes by the CompanyID relationship so it doesn't go through every company. This seems to have resolved it. Thanks again for your reply, you gave my brain a kickstart...
June 4, 200421 yr You can get a global through a global-global relationship. Since this doesn't pass index values, it is very fast.
Create an account or sign in to comment