Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8105447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:09:59+00:00 2026-06-06T00:09:59+00:00

What technique shall one use to implement batch insert/update for Backbone.sync?

  • 0

What technique shall one use to implement batch insert/update for Backbone.sync?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:10:00+00:00Added an answer on June 6, 2026 at 12:10 am

    I guess it depends on your usage scenarios, and how much you want to change the calling code. I think you have two options:

    Option 1: No Change to client (calling) code

    Oddly enough the annotated source for Backbone.sync gives ‘batching’ as a possible reason for overriding the sync method:

    Use setTimeout to batch rapid-fire updates into a single request.

    Instead of actually saving on sync, add the request to a queue, and only batch-save every so often. _.throttle or _.delay might help you here.

    Option 2: Change client code

    Alternatively, instead of calling save on your models, you could add some sort of save method to collections. You’d have to track which models were actually modified and hence in need of update, since as far as I can tell, Backbone only knows whether they’re new or not (but I could be wrong about that).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What technique should we use to make the httpsession object not loaded heavily with
Using a technique I found in one of the recent ASP.NET MVC books, I
What is the best technique for getting related records by SP using one db
We use scrum technique to plan for short development lifecycle. It is very common
How do we interpret the following declaration: char (*(*f())[])(); How shall one develop a
I'm looking for the name of the pattern or technique whereby one can dynamically
I've seen a technique of reading and writing XML to disk using only C#
I'm using flushing technique to flush of my page from server to improve performance.
A well-known technique is to link resources (CSS, JavaScript, ...) with a separate DNS
Could somebody suggest a technique or class library to read up on for XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.