SELECT u.ID, b.ID FROM b_sale_fuser u
LEFT JOIN b_sale_basket b ON b.FUSER_ID=u.ID
WHERE b.ID IS NULL
ORDER BY u.ID DESC
// CSaleUser::Add()
// /bitrix/modules/sale/mysql/basket.php:991
public static function Add()
{
...
}
file_put_contents($_SERVER['DOCUMENT_ROOT']."/temp/logs/CSaleUser/add_".$ID.".txt", json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)));
...
return $ID;
}
[
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 3818,
"function": "Add",
"class": "CSaleUser",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 1798,
"function": "GetID",
"class": "CAllSaleUser",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 1810,
"function": "Init",
"class": "CAllSaleBasket",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/include/footer/comp_viewed.php",
"line": 18,
"function": "GetBasketUserID",
"class": "CAllSaleBasket",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/local/templates/aspro_next/components/bitrix/main.include/basket/template.php",
"line": 17,
"args": [
"/home/bitrix/ext_www/test.com/include/footer/comp_viewed.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component_template.php",
"line": 790,
"args": [
"/home/bitrix/ext_www/test.com/local/templates/aspro_next/components/bitrix/main.include/basket/template.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component_template.php",
"line": 885,
"function": "__IncludePHPTemplate",
"class": "CBitrixComponentTemplate",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 766,
"function": "IncludeTemplate",
"class": "CBitrixComponentTemplate",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 714,
"function": "showComponentTemplate",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/components/bitrix/main.include/component.php",
"line": 280,
"function": "includeComponentTemplate",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 605,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/components/bitrix/main.include/component.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 682,
"function": "__includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/main.php",
"line": 1068,
"function": "includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/local/templates/aspro_next/footer.php",
"line": 66,
"function": "IncludeComponent",
"class": "CAllMain",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog_before.php",
"line": 93,
"args": [
"/home/bitrix/ext_www/test.com/local/templates/aspro_next/footer.php"
],
"function": "include_once"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog.php",
"line": 2,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog_before.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/footer.php",
"line": 4,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog.php"
],
"function": "require_once"
},
{
"file": "/home/bitrix/ext_www/test.com/404.php",
"line": 37,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/footer.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/iblock/lib/component/tools.php",
"line": 66,
"args": [
"/home/bitrix/ext_www/test.com/404.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/components/bitrix/catalog/component.php",
"line": 111,
"function": "process404",
"class": "Bitrix\\Iblock\\Component\\Tools",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 605,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/components/bitrix/catalog/component.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 682,
"function": "__includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/main.php",
"line": 1068,
"function": "includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/catalog/index.php",
"line": 579,
"function": "IncludeComponent",
"class": "CAllMain",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/urlrewrite.php",
"line": 160,
"args": [
"/home/bitrix/ext_www/test.com/catalog/index.php"
],
"function": "include_once"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/urlrewrite.php",
"line": 2,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/urlrewrite.php"
],
"function": "include_once"
}
]
"POST /ajax/basket_fly.php HTTP/1.0" 200
но от реальных пользователей да и не такое кол-во как пишется в базу, за 1 день в b_sale_fuser добавляется около 90 000 записей...