Loading multiple files from a directory

HI,

I have many files which i want to load at once, is it possible to just mention the directory path in the loading job and then recursively load all the files into graph?

Appreciating your help.

K.

Hi Khan,

Thanks for your question.

If you are running your loading job via gsql console, you can use a path as input. Then the loading job will process each file under that path.

However, it won’t recursively load the data in subfolders.

Thanks.

Thank you Chang.

I have all the files under a directory and no sub directories. Can you please elaborate how can i do what you are suggesting?

For example, if you follow the way of defining a loading job below.

https://docs.tigergraph.com/dev/gsql-ref/ddl-and-loading/creating-a-loading-job#create-loading-job-block

You can use a path instead of a single file as the input of the loading job.

CREATE LOADING JOB filePathEx FOR GRAPH gsql_demo {

LOAD “/your/path/” TO …

}

Or when you run the loading job

https://docs.tigergraph.com/dev/gsql-ref/ddl-and-loading/running-a-loading-job#running-a-loading-job

GSQL -g gsql_demo RUN LOADING JOB load_cf USING FILENAME= "/your/path/"

Thank you very much Chang.