Giter Site home page Giter Site logo

Comments (7)

bendmorris avatar bendmorris commented on July 2, 2024

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.

ethanwhite avatar ethanwhite commented on July 2, 2024

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.

ethanwhite avatar ethanwhite commented on July 2, 2024

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.

ethanwhite avatar ethanwhite commented on July 2, 2024

Or better yet, just grab what we need:

SELECT schemaname, tablename FROM pg_tables WHERE schemaname NOT LIKE 'pg_%';

from retriever.

bendmorris avatar bendmorris commented on July 2, 2024

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.

dmcglinn avatar dmcglinn commented on July 2, 2024

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.

ethanwhite avatar ethanwhite commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.