Need to boil an ocean? The taskbot library can help you put the MarkLogic Task Server to work. Simple map-reduce functions helps you farm out as many tasks as your MarkLogic cluster can handle, with as much concurrency as you need.

Get the job done.

Taskbot is basically a map-reduce utility. Start with an anonymous function, and a list of stuff: document URIs, or anything else. Taskbot spawns a task for each segment of the list, using a size you specify. You provide an anonymous function that processes each segment. The Task Manager queue and thread pool manage the work, providing as much data-driven parallelism as the configuration and the workload allow.

If the anonymous function updates the database, your work is done. If your function returns results, supply $tb:OPTIONS-SYNC and reduce the results however you like.

Visit the Repository

Learn More

Tools, Libraries, Frameworks

Looking for a tool, library, or framework to use with MarkLogic? We have many projects, which are often open sourced, spanning many areas of an application life cycle.

GitHub Repositories

Explore the GitHub repositories, projects that have benefited from the work of the MarkLogic developer community. We encourage contributions.

Questions on Stack Overflow

Have a specific technical question or need help getting this tool to work? Ask your question on Stack Overflow to reach a wide audience of MarkLogic developers.

This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.