Git Product home page Git Product logo

Comments (6)

littleK0i avatar littleK0i commented on July 17, 2024

Honestly, I do not understand why people keep trying this when clear instructions for parallelism are provided: https://github.com/exasol/pyexasol/blob/master/docs/HTTP_TRANSPORT_PARALLEL.md

threadsafety level is 1: https://github.com/exasol/pyexasol/blob/master/pyexasol/connection.py#L37-L45

Also, there is an exception for attempt to run second request from another thread: https://github.com/exasol/pyexasol/blob/master/pyexasol/connection.py#L514-L518

Connections should not be shared across multiple processes. Connections can be shared across multiple threads, but only thread can run requests in parallel.

If customer wants to run multiple queries in parallel, one connection per query is required.

If customer wants to read large data set in parallel, HTTP transport is the best bet. It requires 1 process for connection and management and any number of worker processes.

from pyexasol.

tkilias avatar tkilias commented on July 17, 2024

Yes, agree, but it happens again and again. That's why I thought, to state it clearly and providing guidance might help.

from pyexasol.

littleK0i avatar littleK0i commented on July 17, 2024

I'll add a page tomorrow, it's ok.

from pyexasol.

tkilias avatar tkilias commented on July 17, 2024

thx

from pyexasol.

littleK0i avatar littleK0i commented on July 17, 2024

@tkilias , please take a look:
https://github.com/exasol/pyexasol/blob/master/docs/PARALLELISM.md

from pyexasol.

tkilias avatar tkilias commented on July 17, 2024

thx, looks good.

from pyexasol.

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.