Spring Batch Learning Persistence table structure (2)

Source: Internet
Author: User

Tag: End filter exists in star Iter Sha Color Intermediate filter

#接上一篇 This article about persistence requires a table

Batch_job_execution,

Batch_job_execution_context,

Batch_job_execution_params,

Batch_job_execution_seq,

Batch_job_instance,

Batch_job_seq,

Batch_step_execution,

Batch_step_execution_context,

Batch_step_execution_seq

_seq end of the three tables, maintaining the sequence ID of batch_job_instance, batch_job_execution, Batch_step_execution.

Batch_job_instance table Job_instance_id:job ID is assigned version:job version number by BATCH_JOB_SEQ, same job executes multiple times with job_name:job name, consistent with spring configuration Job_key: The MD5 encoding of the job parameter, just because there is this field exists, the same job if the first run succeeds, the second run will throw a jobinstancealreadycompleteexception exception.
Batch_job_execution_params table: Record the parameters for each job job_execution_id the TYPE_CD parameter type assigned by BATCH_JOB_EXECUTION_SEQ  Corresponds to the parameter type in the jobparameters key_name parameter key value string_val parameter value date_val parameter value long_val parameter value double_val parameter value identifying whether MD5 trueMD5

Batch_job_execution_context and Batch_step_execution_context tables save intermediate data in job and step runs and can be resumed the next time you run Step_execution_ Id:step Idshort_context:json ExecutionContext, such as {"Map": {        "entry": {            "string":"FlatFileItemReader.read.count",            "int":Ten}}}serialized_context: ExecutionContext after serialization

Serialized_context: ExecutionContext after serialization

The approximate table structure is as above.

Spring Batch Learning Persistence table structure (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.