wow! 96 percent compression
>is there any way through which i can unzip my file at the time of installation or on first run without affecting the performance of app like the uncompression process running in background or something
Yes, on first launch your app could:
1) make an ajax call (async) to retrieve the bundled compressed data file
2) uncompress the data file to memory or the app’s file system
3) process the uncompress data file from its readable src (memory or file system)
I don’t know the javascript decompression libs very well but you should be able to find or adapt something that can stream the compressed data directly to an output stream to the file system.
Alternative Approach
For some reason I assumed the data file was in json format and that you only need this data file on the 1st launch of the app. You could possibly simplify the runtime concern by packaging as a compressed json file. Imagine preprocessing the db’s initial data and the sql loading logic into a single json file. Compress it with gzip and bundle it in your app. Then on 1st launch of your app load the data file, letting the browser’s resource loading logic automatically handle decompression, reading and execution without any special runtime logic other than the ajax request.