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 8936231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:10:23+00:00 2026-06-15T10:10:23+00:00

In my app i’m using core data as a db manager. This is more

  • 0

In my app i’m using core data as a db manager. This is more or less my database scheme:

Table: Device(
id: String,
name: String,
specsId: String
);
Table: Specs(
specsId: String,
/**/
);

The two tables are not joined in any way.

What i want to do is when i query a device from the Device table then automatically query the specs to it from the Specs table based on the matching specsId.

What is the proper way to do so?

Thanks,

Z

  • 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-15T10:10:24+00:00Added an answer on June 15, 2026 at 10:10 am

    The proper way to do this is to drop the “specsId” field from the Device table and to create a relationship to the Specs table called something like “spec”.

    This way, once you have the Device object you can just use…

    myDeviceObject.spec.<property of spec>;
    

    to access the spec.

    Without having the join you would have to create an NSFetchRequest to get the Device object that you want and then to create a new NSFetchRequest to get the Spec object for that Device.

    The second NSFetchRequest will have a predicate something like…

    @"specsId = %@", device.specsId
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

@app.route('/this/is/the/url') def some_exposed_func(): return render_template(data.html) How to get '/this/is/the/url' from some_exposed_func handle? print 'The
app/models/zombie.rb class Zombie < ActiveRecord::Base attr_accessible :name validates :name, presence: true end spec/models/zombie_spec.rb require
App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public
My app is slowed down by N+1 queries. I'm using the will_paginate gem with
My app compiles to about 80mb. I was under the impression this was quite
My app fails at this line of code: Dim objConnection As New SqlConnection(Application(ConnString)) My
My app has the following models: user and watch_list. User has attributes id, name
We're building an app, our first using Rails 3, and we're having to build
app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] })); That's the line in my app.js
'app name' specifies a minimum os of version 4.3, which is too high to

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.