How to change the workspace of DataEngine Web API from default to none

Posted by: ian0102 on 15 January 2023, 9:52 am EST

  • Posted 15 January 2023, 9:52 am EST

    Hi,

    We are using DataEngine Web API to develop web api and works fine. But in some server security reason we don’t want the dataengine save any further files (Indexs or results) after generating datafiles in the first time.

    We also found the data engine workspace property can be set to KeepFileType.None in the previous version.

    workspace.KeepFiles = KeepFileType.None;

    But in the latest version, we only can set the workspace path.

    (for example.

    app.UseDataEngineProviders().AddDataEngine(“dataset100”, () => ProductData.GetData(50000).ToList(), DATAPATH);

    )


    Is there any way to modify the workspace setting in Web API DataEngine v2020 and later ?

    Thanks for anyone’s help!!

    We also found online tutorial in previous version.

    https://www.grapecity.com/blogs/getting-started-with-dataengine-web-api

  • Posted 17 January 2023, 8:08 am EST

    Hi,

    The DataEngine performance is higher then DataSource because of the DataFiles that gets created and allows to access the file and share the data instead of accessing the DB.

    If you would not like to set the WorkSpace, please use the AddDataSource() instead.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels