<div dir="ltr">Dear list,<div> <br></div><div>I'm trying to figure out the best way to upload data on a remote postgis database from within QGIS.</div><div><br></div><div>I know the recommended ways to load data is to use some external tools or queries (shp2pgsql, ogr2ogr, pgdump, etc.), but I need this operation to be doable by people who are not tech savvy enough for such solutions.</div><div><br></div><div>The data I'm working on is not small, but not huge either (around 6000 records, some with around 20 columns and relatively simple polygons, other with as low as 3 text columns), but I encounter a lot of problems with all of them. The postgis server is distant and there is some lag, but it's reasonable enough to display data, so I thought it would be OK to upload some data too.</div><div><br></div><div>From within QGIS, it seems there are 3 ways to do this :</div>A. from the DB manager, using the "import data" button<div>B. from the browser, by dragging&dropping from one source to another</div><div>C. from the SPIT plugin</div><div>But each of them has it's caveats.</div><div><br></div><div><br></div><div><div>A. DB Manager</div><div>- The process is extremely slow (around 4 minutes for 200 rows even on extremly simple tables), and I get no feedback about the progress</div><div>- For small files, it ends up by working. For larger files, the window is "not responding" and users will force quit QGIS  (who'd wait two hours when importing 6000 rows ?)</div></div><div>- Besides this, it works nicely : I'm able to choose in which schema I upload the table, it takes in any layer that I'm able to open in QGIS, it keeps the SRID and the geometry, etc.</div><div><br></div><div><br></div><div>B. Browser</div><div>- The process is as slow as with the DB manager.</div><div>- Everything is uploaded to the public schema, even if I carefully drop it on another schema (which is a problem since I need some privilege control and to make use of the default privileges)</div><div>- It doesn't work for "packaged" layers, such as spatialite or .mdb files, since I can't choose which layer I want to upload</div><div><br></div><div><br></div><div>C. The SPIT plugin</div>- The process is extremely slow (but at least I see a progress bar)<div>- It works only on shapefiles, so it's not really practical since some of the data is not geometric and comes from MS access.</div><div>- It doesn't take the shapefile's CRS into account</div><div>- I read somewhere that it will be discontinued with next versions of QGIS</div><div><br></div><div><br></div><div>Am I missing something ? Or doing something wrong ?</div><div>Do you know another way to import data from within QGIS that's not affected by this extreme slowness problem ?</div><div><br></div><div>Thanks !</div><div><br></div><div>Olivier</div><div><br></div><div><br></div></div>