The question of how sampling works in Bitrix. First, GetList selects ALL of the data, and NavStart already allows you to get a specific page? Or does GetList simply prepare the request, and the fetch itself occurs when the first call to Fetch ()?

I would be grateful if you indicate where you can read about it.

Thank.

    1 answer 1

    GetList is an access to the database by parameters, and the 4 parameter arNavStartParams this function allows you to limit the selection according to the current page-by-page navigation.

    In GetList we get extra data that we don’t get - they are filtered by the number, current page, etc.

    • And if we call GetList, and in NavStartParams we pass only the page size, will the sample select all records or not? - user1011278
    • I checked. As far as I can see, when we call GetList, mysql_query is already running. That is, if we do not set the GetList function, as you said, the data on which page we select, the entire amount of data will be selected. - user1011278
    • one
      GetList () turns out with the iNumPage parameter better than GetList with the empty parameter arNavStartParams and then separately called NavStart (). - user1011278
    • That's right. You do not filter PHP results - Mihanik71