How to change the workspace setting of DataEngine Web API to none

Posted by: ian0102 on 15 January 2023, 12:58 am EST

    • Post Options:
    • Link

    Posted 15 January 2023, 12:58 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!!

  • Posted 16 January 2023, 11:08 pm 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