• Rithum for Retailers
    Main Menu
    fi-tr-cart-minus
    Commerce Solutions

    Launch and scale your business with the only platform offering sliding-scale flexibility across any partnership model.

    • Dropship
    • Private Marketplace
    bullseye-arrow_40x40_coral
    Marketing Solutions

    Launch your presence across hundreds of channels and future-proof your advertising strategies for an ever-changing world.

    • Paid Search
    • Product Feed Management
    fi-tr-truck-loading_40x40_coral
    Delivery Solutions

    Reduce shipping and fulfillment costs while creating delightful customer experiences.

    • Delivery & Returns
    discover_40x40_coral
    Discovery Solutions

    Identify the most profitable suppliers and products that you can add to your marketplace or channel using the power of AI and our network.

    • Supplier Onboarding
    Contact UsRequest a Demo
  • Rithum for Brands & Suppliers
    Main Menu
    fi-tr-cart-minus
    Commerce Solutions

    Scale your multichannel strategies by centralizing them in a single location in the world’s largest e-commerce network.

    • Marketplaces
    • Webstores
    • First-Party Channels
    bullseye-arrow_40x40_coral
    Marketing Solutions

    Launch your presence across hundreds of channels and future-proof your advertising strategies for an ever-changing world.

    • Retail Media
    • Paid Search
    • Product Feed Management
    fi-tr-truck-loading_40x40_coral
    Delivery Solutions

    Save time and resources by automating key functions and optimizing your marketing, sales, and fulfillment efforts.

    • Fulfillment & Delivery
    discover_40x40_coral
    Discovery Solutions

    Identify new marketplace and retail channels that will be most profitable to your business using the power of AI.

    • Retailer Discovery
    ContactRequest a Demo
  • Why Rithum
    Main Menus
    Why Rithum
    • Customer Outcomes
    • Network and Platform
    • Services
      • Managed Services
      • Consulting
    • Partners
    • Supported Channels
  • About
    Main Menus
    About
    • Company
    • Leadership
    • Careers
      • Equal Opportunity
      • ESG
    • Newsroom & Blog
    • Events
    • Contact
  • Resources
    Main Menus
    Resources
    • Resource Center
    • Build Your Own Solution
Request a Demo
Login
  • OrderStream
  • DemandStream
  • Dsco Platform
  • ChannelAdvisor Platform
  • English US
Skip to main content
Login
  • OrderStream
  • DemandStream
  • Dsco Platform
  • ChannelAdvisor Platform
  • English US
Rithum
  • Rithum for Retailers
    fi-tr-cart-minus
    Commerce Solutions

    Launch and scale your business with the only platform offering sliding-scale flexibility across any partnership model.

    • Dropship
    • Private Marketplace
    bullseye-arrow_40x40_coral
    Marketing Solutions

    Launch your presence across hundreds of channels and future-proof your advertising strategies for an ever-changing world.

    • Paid Search
    • Product Feed Management
    fi-tr-truck-loading_40x40_coral
    Delivery Solutions

    Reduce shipping and fulfillment costs while creating delightful customer experiences.

    • Delivery & Returns
    discover_40x40_coral
    Discovery Solutions

    Identify the most profitable suppliers and products that you can add to your marketplace or channel using the power of AI and our network.

    • Supplier Onboarding
    Contact UsRequest a Demo
  • Rithum for Brands & Suppliers
    fi-tr-cart-minus
    Commerce Solutions

    Scale your multichannel strategies by centralizing them in a single location in the world’s largest e-commerce network.

    • Marketplaces
    • Webstores
    • First-Party Channels
    bullseye-arrow_40x40_coral
    Marketing Solutions

    Launch your presence across hundreds of channels and future-proof your advertising strategies for an ever-changing world.

    • Retail Media
    • Paid Search
    • Product Feed Management
    fi-tr-truck-loading_40x40_coral
    Delivery Solutions

    Save time and resources by automating key functions and optimizing your marketing, sales, and fulfillment efforts.

    • Fulfillment & Delivery
    discover_40x40_coral
    Discovery Solutions

    Identify new marketplace and retail channels that will be most profitable to your business using the power of AI.

    • Retailer Discovery
    ContactRequest a Demo
  • Why Rithum
    • Customer Outcomes
    • Network and Platform
    • Services
      • Managed Services
      • Consulting
    • Partners
    • Supported Channels
  • About
    • Company
    • Leadership
    • Careers
      • Equal Opportunity
      • ESG
    • Newsroom & Blog
    • Events
    • Contact
  • Resources
    • Resource Center
    • Build Your Own Solution
  • Request a Demo
search-close
hamburger
  • Home
  • Blog
  • Blog
    February 26, 2015

    New Business Rule Function for Faster Product Feeds: SETCONTEXTVALUE

    Share

    As a retailer, you want your product feeds to process and make it to their destinations as quickly as possible. But efficient feed speed is often the result of the type of business rules at play.

    In general, business rules execute at a fast pace. However, highly complex business rules that perform large lookups, run regular expressions repeatedly or run custom functions repeatedly can slow overall feed speed.

    Let’s look at an actual Support case we recently received.

    This seller had a business rule they used to compute a base price for each SKU. Depending on what that base price was, the rule would take a different action (i.e., set a sale price). To do this, the business rule had to call the custom function multiple times for each SKU, which slowed down the feed significantly. That business rule looked something like this:

    This business rule is slow because it calls the GetBasePrice rule five times for every SKU.

    It occurred to us that we should be able to call that custom function just once, stash its result somewhere and reuse that result as many times as we’d like. And just like that, a new business rule function was born!

    Sellers, meet SETCONTEXTVALUE.

    To use this new function, just give it a variable name and a value to stash in that variable. You can use the GETCONTEXTVALUE function later in the business rule to get the value back out of the variable. For example:

    This business rule is faster since it calls the GetBasePrice rule only once per SKU.

    The new and improved rule has the same functionality, but with a faster processing time. The feed gets a nice speed boost since it’s not having to execute the complex logic in GetBasePrice over and over.

    Do you have any logic that’s being called repeatedly inside the same business rule? Give your feed a boost with SETCONTEXTVALUE! The function is now available for use.

     

    Blog post by Lance Robinson, software engineer, Rithum


    2015-ecom-calendar-LPKeep up with essential dates and industry events for your e-commerce promotions with this free 2015 E-Commerce Calendar.

    Related Blogs

    featured-img
    Blog
    Blog
    January 12, 2018
    Determining Variation Details in Business Rules: BigCommerce and Walmart Marketplace (Version 3)
    featured-img
    Blog
    Blog
    November 14, 2017
    How to Move Business Rules Between Accounts
    featured-img
    Blog
    Blog
    October 19, 2017
    How to Use Business Rules to Configure Marketplace Repricers
    • Retailers
      • Commerce Solutions
      • Delivery Solutions
      • Marketing Solutions
      • Supplier Discovery Solutions
    • Brands & Suppliers
      • Commerce Solutions
      • Delivery Solutions
      • Marketing Solutions
      • Retailer Discovery Solutions
    • Why Rithum
      • Network & Platform
      • Customer Outcomes
      • Services
      • Partners
      • Channels Supported
    • About
      • Leadership
      • Careers
      • Newsroom & Blog
      • Events
      • Contact
    • Resources
      • Design Your Solution
    Rithum
    © 2025 Rithum Holdings, Inc., together with its subsidiaries, all rights reserved, protected under U.S. and international copyright law. Rithum and the Rithum logo are trademarks of Rithum, LLC
    • linkedin
    • instagram
    • twitter
    • facebook
    • youtube
    • Cookie Settings
    • Terms of Use
    • Privacy Policy
    • Legal & DCMA Notices
    • Do not sell my info
    • Service Status
    • Knowledge Center