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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:54:08+00:00 2026-06-03T23:54:08+00:00

I have 10,000 items in a table that displays 20 items per page on

  • 0

I have 10,000 items in a table that displays 20 items per page on client side( items can be additionally filtered)

I need to find item among all elements. Then I need to get the page number, where element located and go to that page on client and select it

My previous question is
Get item index (rownum) .

But I got no answer on it.

Probably there is another way to find the page number where item located without getting all table data?

I am using Linq to Nhibernate, Database – Oracle.

Edit: Thanks for replies, but it’s not so easy

Example:

In table db, i have

 ID          NAME 
 1           Item1 
 2           
 3
 4
 5
 20
 31
 .....        ....
 5000

In client side, i filtered data

query = query.Where(...).Where(...).Where(...).OrderBy(...)

and got result

 ID                                         ROW_NUM_IN_QUERY
 4                                          1
 300                                        2
 2                                          3
 31                                         4
 .....        ....
 402                                        50
 800                                        51

I can’t link to field ID or another in query, because they may be in a different order

I can get rownum at simple SQL. But Linq to NHibernate can’t do it. It havn’t function something like IndexOf or RowNumber without full getting data from table.

this variant :

var indexed = myDataSource.Select( (x,n) => new { Value = x, RowNumber = n } );

Not suported exception during execute query
  • 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-03T23:54:10+00:00Added an answer on June 3, 2026 at 11:54 pm

    I abandoned this idea, because i could not implement it with Nhibernate Linq.

    But I use easier variant.

    I use search as quick filter – display all found data in grid, without going to the page of first found element.

    Thx for all replies and comments.

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

Sidebar

Related Questions

Imagine the following: I have a table of 57,000 items that i regularly use
I have lists of about 20,000 items that I want to insert into a
I have a large table of N items with M (M>=3) distinct properties per
I need a SQL query that will identify seasonal sales items. My table has
In my application i have a large table of around 20.000 items. I am
I currently have about 650,000 items in memcached (430MB memory used) and the number
I have a list of items aprox 60,000 items - i would like to
Suppose table 1 Have 1,000,000 rows. In table 2 there are 50,000 rows INPUT
i have total 70,000 records in database. currently i displays all the records in
Lets say I have around 1,000,000 users. I want to find out what position

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.