Improve performances (#14869)
## Improvements - Add logs to all gql operations and rest calls to help debug CPU issues on the backend. These are temporary and should be removed - Remove nested relations from workflowVersions load (used to add manual triggers in the side bar). On some workspaces this call result in a response of 4MB which is heavy on CPU - Investigated Redis Usage ==> made a few improvements, we are should still migrate to the new cache service once available - investigated db calls in messaging / calendar fetch list + workflow enqueue run cron jobs. Everything seems to be properly batched
This commit is contained in:
+4
-1
@@ -49,7 +49,10 @@ export const useRunWorkflowRecordActions = ({
|
||||
({ snapshot }) =>
|
||||
async (
|
||||
selectedRecordIds: string[],
|
||||
activeWorkflowVersion: WorkflowVersion,
|
||||
activeWorkflowVersion: Pick<
|
||||
WorkflowVersion,
|
||||
'id' | 'workflowId' | 'trigger'
|
||||
>,
|
||||
) => {
|
||||
if (
|
||||
isIteratorEnabled &&
|
||||
|
||||
+3
-1
@@ -8,7 +8,9 @@ import { AppPath } from 'twenty-shared/types';
|
||||
export const SeeActiveVersionWorkflowSingleRecordAction = () => {
|
||||
const recordId = useSelectedRecordIdOrThrow();
|
||||
|
||||
const { workflowVersion, loading } = useActiveWorkflowVersion(recordId);
|
||||
const { workflowVersion, loading } = useActiveWorkflowVersion({
|
||||
workflowId: recordId,
|
||||
});
|
||||
|
||||
if (loading) {
|
||||
return <ActionDisplay />;
|
||||
|
||||
Reference in New Issue
Block a user