From 01551791352846468c1055257c51e8dea5dc48fa Mon Sep 17 00:00:00 2001 From: msyu Date: Fri, 28 Feb 2025 16:26:53 +0300 Subject: [PATCH] instance_ls optimized (offset) --- v1/Application.cfc | 2 +- v1/resources/instance_ls.cfc | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index fb498ed..0aa937f 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -51,7 +51,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.060"; + variables.framework.docs.APIVersion="0.061"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance_ls.cfc b/v1/resources/instance_ls.cfc index 6b2b85d..dfa9b33 100644 --- a/v1/resources/instance_ls.cfc +++ b/v1/resources/instance_ls.cfc @@ -73,8 +73,8 @@ - - + + order by - limit #maxrows# + limit #arguments.pageSize# + offset #arguments.pageSize*(arguments.page-1)# @@ -209,7 +210,7 @@ - + >