Comments (6)
could you provide a full reproduction example?
from asyncmy.
@trim21 it's a concurrcy bug that not easy to repoduce all the time. It could be happen when your program in high loads.
from asyncmy.
@trim21 it's a concurrcy bug that not easy to repoduce all the time. It could be happen when your program in high loads.
I understand, can you provide a minimal example?
from asyncmy.
@trim21 I think the first example could reproduce this issue. But you may need try it multiple times
from asyncmy.
@trim21 I think the first example could reproduce this issue. But you may need try it multiple times
sadly I can't.
import asyncmy # 0.2.9
import fastapi
app = fastapi.FastAPI()
@app.on_event("startup")
async def startup_event():
app.mysql_pool = await asyncmy.create_pool(
autocommit=True,
minsize=4,
maxsize=20,
...
)
@app.get("/test")
async def test():
async with app.mysql_pool.acquire() as conn:
async with conn.cursor() as cur:
await cur.execute("...")
with uvicorn a:app --no-access-log
and hey -z 3m -c 16 http://127.0.0.1:8000/test
on win10/ubuntu
from asyncmy.
Confirm. 0.2.7 same problem. 0.2.5 stable
from asyncmy.
Related Issues (20)
- Parameterizing Table Names
- Set globals required by PEP249 (DB API 2.0)
- Add type stubs for asyncmy HOT 5
- args other than %s?
- SSL handshake error with MySQL 8.0.34 HOT 1
- echo=True outputs as "info" instead of "debug" and feature request query_callback
- Problem with NULL timestamps BUG
- custom SSL cert Error different aiomysql
- PSA: Installation error with the wheel HOT 1
- Async Session "MissingGreenlet" Error When Switching to Outer Join
- cannot connect: no attribute '_auth_plugin_name' HOT 3
- Using "LOAD DATA LOCAL INFILE" returns error
- AttributeError raised if set ssl with boolean HOT 2
- 是否考虑添加typing?
- executemany not return finish row num.
- pyinstaller package error HOT 1
- missing wheel (*.whl) for Python 3.12 HOT 1
- Opentelemetry support
- Overflow build warning
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 asyncmy.