need help with fetching the data using the entity

Certified Senior Developer

Hi team i am unable to fetching the data using the query entity,
due to some restrictions i have to use the CDT only so i am using query entity for fetching  the data,
(I want this data for displaying into the read-only grid)
i have 2 tables in DB


1st table having the 42 columns and 26191 rows of data so i am using the below code for fetching the hole data 

a!queryEntity(
entity: cons!1stentity,
query: a!query(
pagingInfo: a!defaultValue(
value: ri!pagingInfo(Type:pagingInfo),
default: a!pagingInfo(startIndex: 1, batchSize: 10)
),


),
fetchTotalCount: true(),

),


but using this code i can able to fetch 21568 rows of data only not able to fetch the whole data,


2nd table having the 8 columns and 389434 rows of data so i am using the below code for fetching the whole data.

a!queryEntity(
entity: cons!2ndentity,
query: a!query(
pagingInfo: a!defaultValue(
value: ri!pagingInfo,
default: a!pagingInfo(startIndex: 1, batchSize: 10)
),


),
fetchTotalCount: true(),

),
From this table i can able to fetch the 389434 
rows of data, i mean i can able to fetch whole data,

anyone help me with this how can i achieve to fetch the whole data from 1st table without losing 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    The simple answer is: a!queryEntity() has a BUILT-IN SIZE LIMIT (i.e. total amount of data returned, unrelated to the overall number of rows).

    And also: even if you COULD successfully query 21,568 rows of data successfully into a local variable, if you tried to display that all at once in a read-only grid, the form would either refuse to load or be MISERABLY slow.  And if you're planning to page it anyway, then you should be paging it at query time, not after.

Reply
  • 0
    Certified Lead Developer

    The simple answer is: a!queryEntity() has a BUILT-IN SIZE LIMIT (i.e. total amount of data returned, unrelated to the overall number of rows).

    And also: even if you COULD successfully query 21,568 rows of data successfully into a local variable, if you tried to display that all at once in a read-only grid, the form would either refuse to load or be MISERABLY slow.  And if you're planning to page it anyway, then you should be paging it at query time, not after.

Children