Permalink
Browse files

clearer readme

  • Loading branch information...
1 parent dfd47ef commit 9186badca6590872fa1f86647b368ac48e73db18 @alistairewj alistairewj committed on GitHub Sep 20, 2016
Showing with 9 additions and 1 deletion.
  1. +9 −1 buildmimic/monetdb/README.md
@@ -34,8 +34,16 @@ DBeaver works great with monetDB. Download and install it from here: [http://dbe
## Install Mimic Data
+Note that the Windows instructions require the data to be unzipped, but the *nix instructions allow you to build from zipped data. It is possible to import the data on Windows when it is compressed, but
+
+
### Windows
+(Optional) These instructions require uncompressing the data. In principle it is possible to install the data directly from the compressed files. First you must install a command line tool which can unzip data and add it to your environment path in command prompt (good examples include 7zip or GnuWin32 gzip). After that you'll need to create a .bat script to use the command line tool, e.g.:
+
+`mclient -d mimic -s "COPY INTO MIMICIII.ADMISSIONS FROM STDIN USING DELIMITERS ',','\n','\"' NULL AS ''" - < gzip -dck /path/to/ADMISSIONS.csv.gz`
+
+You'll also need to add an appropriate fix for CHARTEVENTS and NOTEEVENTS that escapes backslashes with an extra backslash (see `monetdb_load_data.sh`).
(Optional) You may want to change where MonetDB stores the data, which is accomplished by modifying the .bat files directly. Open up WordPad by right clicking and selecting "Run as Administrator" (needed in order to edit the .bat file). Open up M5server.bat, and add the following after `:skipuservar`:
@@ -85,4 +93,4 @@ password=monetdb
## Notes
* there is no need to add indexes, monetdb indexes itself after loading
-* there are some issues with mimic v1.3 backslashes in tables chartevents & noteevents. For now, removing them thanks to `sed -i 's/\\/g' table.csv` is a workaround.
+* monetDB has issues importing backslashes in tables chartevents & noteevents. For now, escaping them thanks to `sed -i 's/\\/\\\\/g' table.csv` is a workaround.

0 comments on commit 9186bad

Please sign in to comment.