Skip to content

Draft: Fix inserts in through tables#2

Closed
stefano-tilt wants to merge 26 commits intostefano-tilt:2.3.3-fix-through_tablesfrom
toluaina:main
Closed

Draft: Fix inserts in through tables#2
stefano-tilt wants to merge 26 commits intostefano-tilt:2.3.3-fix-through_tablesfrom
toluaina:main

Conversation

@stefano-tilt
Copy link
Owner

Hi @toluaina,
can you take a look at this draft PR? I am trying to fix the IndexError: list index out of range error when trying to do an insert in a through table

There's already a PR raised from @mpaolino here, but it's not resolving for me. This is how my data model looks like

my_customer_groups:
     fk my_customer_id   (to id in my_customers)
     fk my_group_id         (to id in my_groups)

my_customers
     pk id
     name

my_groups 
     pk id
     group_name

Can you shed some light what would be the preferred approach?

Thanks

toluaina and others added 26 commits October 27, 2022 22:12
Running `—analyze` errors in python 3.11 when indices exist

```bash
File "/Users/lorensiebert/workspace/pgsync/pgsync/base.py", line 252, in indices
    self.__indices[(table, schema)] = sorted(
                                      ^^^^^^^
TypeError: '<' not supported between instances of 'dict' and 'dict'
```
Some evidence that memory usage spikes when truncating a slot with many txs in it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants