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

  • SEARCH
  • Home
  • 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 6791401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:50:31+00:00 2026-05-26T17:50:31+00:00

I need to quickly check to see if I have some duplicate values in

  • 0

I need to quickly check to see if I have some duplicate values in CoreData. I am doing some background syncing and occasionally a dupe makes it into my system.

I have a ManufacturerID and an ItemID and I cannot have a duplicate value for both, example of bad data:

ManufacturerID   ItemID
35               IT001
35               IT001

So I would just want to know if that happened and maybe get a list of those ItemID’s, then I need a way to figure out how to get rid of the dupes but this is a good start.

I just need a fast method figure out if they exist or not.

  • 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-05-26T17:50:32+00:00Added an answer on May 26, 2026 at 5:50 pm

    In my app I have a SynchManager that using NSoperations performs synch in background and store new records in the persistent sqlite store only if not alredy stored.
    Basically what I do is:

    1. execute a fetch request which retrieves a collections of stored ids (in my case these ids are strings representing urls)
    2. before insert a new object in the store I call a method like “shouldImportObject:“, which basically test that the url is not already stored in the database. This is a simplified implementation sample:

      for (id objectID in ids) {
        if ([objectID isEqual:objectToImport.objectID]) {
           return NO;
        }
      }
      
      return YES;
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I need to quickly extract some arbitrary data from XML files to put
I have the need to relatively quickly be able to determine if a set
I need to compress some binary files as quickly as possible with PHP -
I'm building sitemaps and I need a way to quickly check how many UTF-8
I want to quickly check to see if a file exists in my iPhone
I just want to check really quickly. Say I have two entities in a
I need to quickly (and forcibly) kill off all external sessions connecting to my
I need to quickly build a parser for a very simplified version of a
Given a list of arrays and lots of setup time I need to quickly
I need to be able to quickly convert an image (inside a rails controller)

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.