This article describes how to reduce the size of a data file that is too large to upload to the Displayr Cloud Drive directly. The current limit for upload is 16GB. Saving a .sav file as a QDat file in Q may result in reducing the file size to enable it to be successfully uploaded to the Displayr Cloud Drive.
Requirements
- A document with one or more loaded data sets (.sav, .xml, .sss, .mdd, .xls, .xlsx, .csv).
- If using Q:
- A Windows computer.
- An installation of Q or Q Reader. If you do not have a Q license, click here to download and install Q Reader.
Method
The following steps provide a summary of the approaches used to reduce an original 2.9GB .sav file down to 120MB .QDat file.
Using Displayr Alone (for files under 16GB):
- Create a new Displayr document.
- Upload the data file as a new data set. See Get Your Data Into Displayr for details.
-
If the file is larger than 2GB and an SPSS file, you can first compress your SPSS data set as a .zip file with some caveats:
- If using a .zip file, ensure it is compressed using the "Deflate" compression algorithm. This is the default in most compression software.
- If you create the zip file on a Mac, do not use Apple's built-in compression utility, as it creates extra files that interfere with Displayr's ability to load the data file. Use 3rd party software instead.
- When creating a zip file, only select the "Deflate" compression algorithm to ensure your file is compatible with Displayr.
-
- Publish the data set to the Cloud Drive: How to Publish Data to the Displayr Cloud Drive
See Create a Separate Data Preparation Document for a discussion on how to set up a workflow around this.
Using Q and Displayr (for files of all sizes):
- Open the .sav file in Q (or the free Q Reader will also work).
- Go to Tools > Save Data As SPSS/CSV File and click OK.
- In the dialog box, in the save as type dropdown select QDat Files.
- Name the file and click Save.
- Go to Displayr.
- Create a new document.
- At the top right-hand side click on the initials icon:
- Select Displayr Cloud Drive.
- Click
- Drag the .QDat file from Windows Explorer onto the Select Files to Upload box and click the Upload button.
- Go back to Displayr by clicking on the back button in your web browser.
- In Data Sources click the + to add a new data set and select Displayr Cloud Drive.
- Choose the QDat file from the list and click OK.
Technical Notes
A QDat file is a compressed version of your data set that combines the raw variables with any additional constructed variables (filters, recoded, restructured, etc.) and calculations (from the Calculation menu or custom JavaScript and R variables). These dynamic variables will effectively become hard-coded in this new data set, which in turn improves performance; see more info in Create a Separate Data Preparation Document.