Comments (7)
In order to check whether tables/databases exist (to indicate whether a dataset has been downloaded already) the Retriever executes a lot of little queries. If the database connection is slow, this could cause a significant slowdown. There's probably a more efficient way to do this.
from retriever.
I see this slow down as well, but it's not nearly as slow as it is in Dan's case (though 10 seconds is still a long time to wait for something to pop up these days). Dan, can you try changing the port for Postgres back to the default 5432 and see if that improves things.
from retriever.
Looks like this ought to give us everything we need in a single query:
SELECT * FROM pg_tables WHERE schemaname NOT LIKE 'pg_%';
from retriever.
Or better yet, just grab what we need:
SELECT schemaname, tablename FROM pg_tables WHERE schemaname NOT LIKE 'pg_%';
from retriever.
I just changed it to a one-time query as Ethan suggested - could someone who can reproduce this problem go ahead and test the latest version of master to see if it's been resolved?
from retriever.
I'll test it out later today and report back
Dan
-------- Original Message --------
Subject: Re: [retriever] Retriever experiences massive slowdown with
postgreSQL (#42)
From: Ben Morris
[email protected]
To: Dan McGlinn [email protected]
Date: Friday, May 04, 2012 9:10:22 AM
I just changed it to a one-time query as Ethan suggested - could someone who can reproduce this problem go ahead and test the latest version of master to see if it's been resolved?
Reply to this email directly or view it on GitHub:
#42 (comment)
Daniel J. McGlinn, PhD
Postdoctoral Researcher
Utah State University
Department of Biology, BNR 132
Logan, UT 84322-5305
http://mcglinn.web.unc.edu/
cell: 405-612-1780
from retriever.
Yeah, that did it. This is in master so it will be fixed in the next release.
Dan - it would be great to test on your machine if can build master from source, but you can't just download the .exe at the moment. At the very least we'll have you do an early test of the new .exe next week before we formally release. Thanks for testing things out and reporting the problem.
from retriever.
Related Issues (20)
- API research for API integration in Data Retriever (GSoC '21)
- Add a default bounding box for usgs-elevation
- Retriever doesn't detect new python scripts HOT 1
- Add RDatasets
- Tidycensus dataset doesn't work with the download and install csv commands. HOT 3
- Make sure that the the R api dataset are run on the retrieverdash
- Add new functions to rdataretriever and Retriever.jl
- Excel xlsx file; not supported HOT 9
- Update codecov to action stage in workflows HOT 2
- not able to use gdal==3.3.2 while working with ".shp" files HOT 2
- Improve test coverage HOT 6
- display_all_rdatasets_names in rdatasets takes a list of package_name HOT 4
- Create breeding bird survey for all releases. HOT 4
- Downloading fails for files with no Content-Disposition HOT 1
- Retriever should gracefully fail if there is no internet. HOT 2
- hacktoberfest guide
- Installation from source fails due to missing configuration HOT 6
- Installation failing on Python 3.12 due to removal of imp package HOT 1
- Test and update Bioclim data
- GSoC 2024 - Getting started. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retriever.