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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:32:23+00:00 2026-05-18T12:32:23+00:00

I have a scenario where I have a table of batch and a table

  • 0

I have a scenario where I have a table of “batch” and a table of “test” where “test” contains an FK to “batch” and a many tests can belong to a batch.

I want to be able to select multiple batches and find all tests that belong to them. I do this by producing a list of PKs to the batches I’m interested in and then the following LINQ query:

var ret =
from t in tests 
from b in indices //indices is a list of long PK's belonging to selected batches
where t.batch_id == b
select t;

It works but when my selection size exceeds 14 batches, I get a “SQLite error
parser stack overflow” on the LINQ expression regardless of how many tests are found.

I want to be able to handle large selections if possible. How can I do this?

  • 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-18T12:32:24+00:00Added an answer on May 18, 2026 at 12:32 pm

    The LINQ provider may be blowing up because it’s trying to issue 1 query per index. You can verify this (if SQL is in fact getting generated at all) by profiling the DB and seeing if it’s actually issuing 1 query per index.

    Try this instead:

    var ret =
    from t in tests 
    where indices.Contains(t.batch_id)
    select t;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where I have to update multiple rows in a table
i have a scenario, i want to monitor database(SQL Server) table, if record is
I have this scenario... 1.- I'm providing a Dynamic Table for wich users can
I have this scenario i have a staging table that contains all the record
I have a scenario. Can this be done using one query ? Table Company
I have a scenario where I would like to select rows from a table
I have this scenario User can have many profiles per year and i also
I have a scenario outline table that looks like the following: Scenario Outline: Verify
I have the following scenario: a table of projects and a table of persons,
I have the scenario where the data from a single table must be in

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.