Dictionary too big

Other discussions about CSPro
Post Reply
AriSilva
Posts: 312
Joined: July 22nd, 2016, 3:55 pm

Dictionary too big

Post by AriSilva » July 18th, 2019, 3:53 pm

I have a very lengthy dictionary (attached).
Record type 40 (D_MORADORES) has a maximum of 20 cases and it is 2862 bytes long.
When opened in DataViewer, it takes forever to show a case (example attached).
In DataViewer, if asked for Frequencies, it takes forever to show the dictionary for choosing the variables.
The question is: Is it because the record is very big? If I split this record in several record types, would it be better?
Or, in other words, what could I do to shorten the processing time?
Best
Ari
Attachments
10_Entrevista.rar
(106.72 KiB) Downloaded 23 times
Best
Ari

Gregory Martin
Posts: 1270
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Dictionary too big

Post by Gregory Martin » July 19th, 2019, 8:01 am

Once you expand the subitems x 20, you have nearly 2500 items in your dictionary, so that's definitely big! The Data Viewer code has to figure out a layout for all of the items. I expect it to be a bit sluggish, but I'm actually surprised at how slow it is. This is something we'll look into speeding up.

You should store your data in the way that makes the most sense for your programs/analysis. We'll try to make this better for CSPro 7.4.

Post Reply