Ctrl + k

or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/sqlmodel@0.0.x
tile.json

tessl/pypi-sqlmodel

tessl install tessl/pypi-sqlmodel@0.0.0

SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.

Agent Success

Agent success rate when using this tile

85%

Improvement

Agent success rate improvement when using this tile compared to baseline

1x

Baseline

Agent success rate without this tile

85%

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates the engineer's ability to use SQLModel's relationship loading strategies to optimize database queries. It focuses on proper usage of the Relationship() function with sa_relationship_kwargs parameter and understanding of different lazy loading strategies.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Model Definition",
      "description": "Both Hero and Team models are defined as SQLModel classes with table=True parameter. Models include all required fields with proper type annotations and Field() usage for primary keys.",
      "max_score": 15
    },
    {
      "name": "Relationship Setup",
      "description": "Uses Relationship() function to define bidirectional relationships between Hero and Team models. Includes back_populates parameter to establish the bidirectional link.",
      "max_score": 20
    },
    {
      "name": "Default Lazy Loading",
      "description": "Implements get_hero_with_team_lazy using session.get() or session.exec() with select() to retrieve the hero. The relationship allows default lazy loading behavior (team loads on access).",
      "max_score": 15
    },
    {
      "name": "Joined Loading",
      "description": "Implements get_team_with_heroes_joined by configuring Relationship() with sa_relationship_kwargs={'lazy': 'joined'}, or uses selectinload/joinedload from SQLAlchemy to load heroes in a single query.",
      "max_score": 25
    },
    {
      "name": "Selectin Loading",
      "description": "Implements get_all_teams_with_heroes_selectin by configuring Relationship() with sa_relationship_kwargs={'lazy': 'selectin'}, ensuring heroes are loaded efficiently in a separate SELECT query for all teams.",
      "max_score": 25
    }
  ]
}