Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api-reference/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Permify API",
"description": "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.",
"version": "v1.4.5",
"version": "v1.4.6",
"contact": {
"name": "API Support",
"url": "https://github.com/Permify/permify/issues",
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Permify API",
"description": "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.",
"version": "v1.4.5",
"version": "v1.4.6",
"contact": {
"name": "API Support",
"url": "https://github.com/Permify/permify/issues",
Expand Down
11 changes: 4 additions & 7 deletions internal/engines/entity_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,11 @@ func (engine *EntityFilter) lt(

// pathChainEntrance handles multi-hop relation chain traversal for nested attributes
//
// TODO: This function can be optimized for better performance by implementing smart batching logic:
// TODO: Optimize performance with smart batching:
// - Extract unique attributes from path chain entrances to avoid duplicate queries
// - Implement batch vs individual processing based on scope and attribute count:
// - Use batch mode when we have scope (limited entity IDs) or few attributes (<=1)
// - Use individual mode when no scope and multiple attributes to avoid loading large result sets
// - Refactor into smaller helper functions: extractUniqueAttributes, getScopeIds, shouldUseBatchMode,
// processBatchMode, processIndividualMode, queryAttributesBatch, processEntranceWithResults
// - Remove debug statements after optimization is tested
// - Use batch processing when scope limits entity IDs or when attribute count is low (<=1)
// - Use individual processing when no scope exists and multiple attributes are present
// - Consider refactoring into helper functions for improved maintainability
func (engine *EntityFilter) pathChainEntrance(
ctx context.Context,
request *base.PermissionEntityFilterRequest,
Expand Down
2 changes: 1 addition & 1 deletion internal/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var Identifier = ""
*/
const (
// Version is the last release of the Permify (e.g. v0.1.0)
Version = "v1.4.5"
Version = "v1.4.6"
)

// Function to create a single line of the ASCII art with centered content and color
Expand Down
2 changes: 1 addition & 1 deletion pkg/pb/base/v1/openapi.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified playground/public/play.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion proto/base/v1/openapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Permify API";
description: "Permify is an open source authorization service for creating fine-grained and scalable authorization systems.";
version: "v1.4.5";
version: "v1.4.6";
contact: {
name: "API Support";
url: "https://github.com/Permify/permify/issues";
Expand Down