Skip to content

Conversation

@vpetrovykh
Copy link
Contributor

Describing the gel-python generated QB API for the AI agents. The format is markdown with minimal explanation focusing on examples.

@vpetrovykh vpetrovykh requested review from 1st1 and elprans October 9, 2025 16:49
equipped=icecream,
)
icecream.rightful_owner = elsa
db.sync(elsa)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how AI will understand, but perhaps create also another item with elsa as the rightful_owner to show that the same logic holds when two different objects link the same target


## Bulk write

It is better to use `.save()` For writing data to Gel in bulk. This method avoids re-fetching overhead and will attempt to batch similar objects together.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync uses the same batching logic, so it should have the same batching behaviour.

In our case this can be seen with the Item example:
```python
junk = default.Item()
assert junk.description != 'Junk'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No attribute error here?

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.

4 participants