[CONC-549] Add generate_request functions (stmt_execute and bulk_execute) to internal API Created: 2021-05-03 Updated: 2022-07-01 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When using C/C within python, every api call needs to be encapsulated by BEGIN/END Threads, e.g.
This causes a lot of overhead, in case of callback function for filling values was specified: Whenever calling python code inside mysql_stmt_execute() we need to call Py_END_ALLOW_THREADS and Py_BEGIN_ALLOW_THREADS() again. Instead of it would be much easier to have a call which fills the buffer and another call which executes the stmt:
PY_END_ALLOW_THREADS() |