10 个仓库
Techniques for loading an entity and its associated related records in a single operation to avoid N+1 query problems.
Distinguishing note: Candidates cover DNS or ML prefetching; this is specifically about relational database entity prefetching.
Explore 10 awesome GitHub repositories matching data & databases · Relation Prefetching. Refine with filters or upvote what's useful.
Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while running on asyncio. It defines database tables as Python classes with typed fields and supports foreign key, many-to-many, and one-to-one relations, providing a chainable query API for filtering, annotating, grouping, and prefetching related objects without blocking the event loop. The ORM includes a built-in migration engine that detects model changes, generates migration files, and applies or reverts schema changes through a command-line tool. It connects to PostgreSQL, MyS
Defines and manages relational data models with automatic prefetching and related-object queries.
dlt 是一个 Python 数据摄取工具和 ETL 流水线框架,旨在从不同来源获取数据并将其持久化到结构化目标中。它作为一个模式推断引擎,可自动检测数据类型并将嵌套的 JSON 结构扁平化为关系表,将数据从源端移动到数据湖、数据仓库或向量数据库。 该项目通过 AI 驱动的流水线生成脱颖而出,利用大语言模型为 REST API 构建提取代码和连接器。它还支持多模态向量存储和向量数据库的专门填充,以支持 AI 和机器学习应用。 该框架涵盖了广泛的功能,包括自动化模式演进、通过状态跟踪进行增量数据加载,以及通过强制执行数据契约进行数据质量验证。它提供了用于关系数据规范化、加载前后转换的工具,以及针对 SQL 数据库和云对象存储的多种目标适配器。 可观测性通过流水线执行仪表板、列血缘跟踪以及使用基于内容的哈希进行模式版本验证来处理。
Models relationships between root and nested tables by specifying custom primary or merge keys.
LoopBack Next 是一个用于构建 REST 和多协议 API 的 Node.js API 框架。它作为一个 OpenAPI 服务器实现,既可以从代码生成机器可读的规范,也可以从现有规范生成实现控制器和模型。 该框架的特色在于中央依赖注入容器和存储库模式的数据访问层。这种架构将应用程序逻辑与组件构建和持久化存储解耦,允许通过标准化的连接器系统实现数据源和业务逻辑隔离的可插拔系统。 该项目涵盖了广泛的功能,包括具有可插拔身份验证策略的基于角色的访问控制,以及外部 REST 和 SOAP 服务的编排。它还通过命令行界面提供用于 WebSocket 端点实时通信、JSON 模式验证和自动化项目脚手架的工具。 开发过程由一套 CLI 工具支持,用于引导应用程序、生成 API 组件和管理项目依赖项。
Allows defining complex model relationships, including many-to-one associations using foreign key constraints.
Platform is a framework for building back-office applications and administrative dashboards using Laravel. It functions as a schema-driven UI framework and CRUD generator that automatically constructs database management interfaces, input forms, and validation rules from programmatic model definitions. The project distinguishes itself through a comprehensive backend UI kit that supports advanced data capture, including geographic coordinate mapping, tabular JSON data matrices, and marketing metadata tracking. It features a robust role-based access control system for managing resource visibili
Provides form components that load and select records from database relationships with support for scoping and searching.
paopao-ce 是一个社交社区平台,旨在发布内容和管理用户关系。它提供了一个可扩展的网络环境,实现了基于好友和关注者的社交模型,以规范用户交互和内容共享。 该平台集成了数字钱包和支付网关连接,以处理金融交易并维护用户余额。它结合了基于 Go 的后端和基于 JavaScript 的前端来交付其服务。 该系统包括通过短信验证和基于安全令牌的会话进行身份管理的功能。它还具有使用倒排索引的社区内容搜索、通过对象存储进行媒体持久化以及自动生成机器可读 API 规范的功能。 可观测性通过系统日志捕获和性能分析来处理,以识别处理瓶颈。
Models complex social relationships using relational tables to manage friendships and follower connections.
Twill 是一个 Laravel CMS 工具包和后台管理面板生成器,专为构建自定义管理控制台和内容管理系统而设计。它既是一个无头 CMS 框架,也是一个用于定义内容模型并通过专用管理界面管理结构化数据的工具包。 该项目具有可视化区块编辑器,允许发布者通过拖放界面排列和配置可重用的内容部分。它包含一个专用的数字资产管理器,用于在本地或云存储中存储、裁剪和优化图像及文件,以及一个用于处理翻译字段和本地化固定链接的多语言内容管理器。 该平台提供了广泛的内容和媒体管理功能,包括版本跟踪、发布调度和分层页面组织。它涵盖了全面的管理工具,例如基于角色的访问控制、全局搜索,以及用于快速生成 CRUD 模块和数据库迁移的命令行脚手架。 该系统通过 Trait 与 Laravel 模型集成,以实现发布和媒体处理功能。
Provides form components for selecting records from database relationships with custom filtering based on other field selections.
Django Tastypie 是一个用于构建 RESTful Web 服务的框架,将 Django 模型映射到 API 资源。它作为一个基于模型的 API 生成器,自动为数据库模型创建读写端点,以通过 HTTP 实现标准 CRUD 操作。 该项目充当多格式数据序列化器和超媒体 API 映射器。它根据客户端请求将数据库数据转换为各种响应格式(包括 JSON、XML 和 YAML),并将数据库关系转换为用于资源发现的可导航链接。 该工具包包含一个用于用户身份验证的安全实现,使用质询-响应握手以避免传输明文凭据。它还提供了映射复杂数据关系和管理 API 响应序列化的机制。
Maps complex database relationships, including foreign keys and many-to-many associations, to a consistent API interface.
WPGraphQL is a GraphQL interface for WordPress that transforms a WordPress installation into a headless content source. It functions as a GraphQL schema provider that maps database structures and relational data into a standardized schema, exposing posts, pages, and custom data types through a single flexible endpoint. The project includes an integrated API query builder and schema explorer, allowing for the visual composition of queries and real-time validation of responses. It provides a system for extending the schema with custom fields and relationships to expose specific business data.
Allows fetching lists of related objects and navigating relationships between data nodes using connections.
Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries
Retrieves an entity along with its referenced fields using prefetching to avoid inefficient queries.
该项目是一个用于 iOS 和 macOS 应用的客户端软件开发工具包(SDK),将移动软件与基于云的后端集成。它作为移动后端即服务(MBaaS)接口,使开发者无需维护服务器端基础设施即可管理用户身份验证、云数据持久化和同步。 该框架专为离线优先开发而设计,利用本地数据存储来缓存应用状态,并确保在网络断开期间的功能可用性。它具有自动同步引擎,可对挂起的操作进行排队,并在连接恢复后在后台执行。该系统采用无模式数据模型,允许将任意键值对存储为对象,而无需预定义的数据库模式或僵化的迁移。 除了基础存储外,该 SDK 还支持关系数据建模,能够创建记录之间的链接以保持实体间的一致性。它还通过事件驱动的订阅提供实时功能,将服务器端的数据变更直接推送到客户端。为了优化性能,该库执行基于增量的同步,仅向服务器传输修改后的对象字段,以减少带宽消耗。
Connects objects by storing references to other records to ensure data consistency and integrity across related entities.