We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Implement Top-N / Bottom-N query in Custom data server and Custom data server take time to expand

Answered
kiran bangar asked on September 13, 2023
  1.  How to implement Top-N / Bottom-N query in Custom data server in Node.js. I could not find any implementation for it in the github example.
  2. Custom data server take time (around 1 second) to expand a particular hierarchy. Note that I am implementing the /select endpoint the same as provided in Github

    https://github.com/flexmonster/api-data-source

 
Thank you.

1 answer

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 18, 2023

Hello, Kiran!
 
Thank you for reaching out to us.
 
Kindly note that our custom data source API example on GitHub is a sample project not optimized for production. Since the sample server is created to illustrate the main steps of implementing custom data source API protocol, it doesn't contain a lot of features, as well as Top-N and Bottom-N filters. However, it is possible to implement the mentioned filters in your own server implementation using any approach you like.
 
Hope you will find our answer helpful.
 
Kind regards,
Solomiia

Please login or Register to Submit Answer