[{"data":1,"prerenderedAt":383},["ShallowReactive",2],{"content-query-Zdvh55Ck3P":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":377,"_id":378,"_source":379,"_file":380,"_stem":381,"_extension":382},"/ramdb/hashes/hashsetidbulk","hashes",false,"","ArmaRAMDb - Hash Set ID Bulk","mdi:file-text-outline",{"type":11,"children":12,"toc":362},"root",[13,22,29,35,41,54,60,126,132,137,143,150,159,165,174,180,189,195,269,275],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashsetidbulk",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashSetIdBulk",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"Sets multiple field-value pairs in a specific hash table identified by its key in a single operation. This function allows efficiently storing multiple related fields at once for a specific identifier, reducing the number of separate database calls required. It's ideal for saving a collection of player-specific or entity-specific data.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"syntax",[39],{"type":20,"value":40},"Syntax",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","[_data] call ramdb_db_fnc_hashSetIdBulk\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"parameters",[58],{"type":20,"value":59},"Parameters",{"type":14,"tag":61,"props":62,"children":63},"table",{},[64,92],{"type":14,"tag":65,"props":66,"children":67},"thead",{},[68],{"type":14,"tag":69,"props":70,"children":71},"tr",{},[72,78,83,87],{"type":14,"tag":73,"props":74,"children":75},"th",{},[76],{"type":20,"value":77},"Parameter",{"type":14,"tag":73,"props":79,"children":80},{},[81],{"type":20,"value":82},"Type",{"type":14,"tag":73,"props":84,"children":85},{},[86],{"type":20,"value":28},{"type":14,"tag":73,"props":88,"children":89},{},[90],{"type":20,"value":91},"Default",{"type":14,"tag":93,"props":94,"children":95},"tbody",{},[96],{"type":14,"tag":69,"props":97,"children":98},{},[99,109,114,119],{"type":14,"tag":100,"props":101,"children":102},"td",{},[103],{"type":14,"tag":50,"props":104,"children":106},{"className":105},[],[107],{"type":20,"value":108},"_data",{"type":14,"tag":100,"props":110,"children":111},{},[112],{"type":20,"value":113},"Array",{"type":14,"tag":100,"props":115,"children":116},{},[117],{"type":20,"value":118},"Array with key followed by alternating field names and values",{"type":14,"tag":100,"props":120,"children":121},{},[122],{"type":14,"tag":123,"props":124,"children":125},"span",{},[],{"type":14,"tag":23,"props":127,"children":129},{"id":128},"return-value",[130],{"type":20,"value":131},"Return Value",{"type":14,"tag":30,"props":133,"children":134},{},[135],{"type":20,"value":136},"None. The operation runs synchronously to store all the data.",{"type":14,"tag":23,"props":138,"children":140},{"id":139},"examples",[141],{"type":20,"value":142},"Examples",{"type":14,"tag":144,"props":145,"children":147},"h3",{"id":146},"store-player-loadout-and-position",[148],{"type":20,"value":149},"Store player loadout and position:",{"type":14,"tag":42,"props":151,"children":154},{"className":152,"code":153,"language":47,"meta":7},[45],"[[getPlayerUID player, \"loadout\", [getUnitLoadout player], \"position\", [getPosASLVisual player]]] call ramdb_db_fnc_hashSetIdBulk;\n",[155],{"type":14,"tag":50,"props":156,"children":157},{"__ignoreMap":7},[158],{"type":20,"value":153},{"type":14,"tag":144,"props":160,"children":162},{"id":161},"store-multiple-vehicle-properties",[163],{"type":20,"value":164},"Store multiple vehicle properties:",{"type":14,"tag":42,"props":166,"children":169},{"className":167,"code":168,"language":47,"meta":7},[45],"[[\"vehicle_123\", \"fuel\", [0.75], \"damage\", [0.2], \"crew\", [[\"player1\", \"player2\"]]]] call ramdb_db_fnc_hashSetIdBulk;\n",[170],{"type":14,"tag":50,"props":171,"children":172},{"__ignoreMap":7},[173],{"type":20,"value":168},{"type":14,"tag":144,"props":175,"children":177},{"id":176},"store-player-data-from-a-client",[178],{"type":20,"value":179},"Store player data from a client:",{"type":14,"tag":42,"props":181,"children":184},{"className":182,"code":183,"language":47,"meta":7},[45],"[[getPlayerUID player, \"stats\", [score player], \"inventory\", [getAllGear player]]] remoteExecCall [\"ramdb_db_fnc_hashSetIdBulk\", 2, false];\n",[185],{"type":14,"tag":50,"props":186,"children":187},{"__ignoreMap":7},[188],{"type":20,"value":183},{"type":14,"tag":23,"props":190,"children":192},{"id":191},"notes",[193],{"type":20,"value":194},"Notes",{"type":14,"tag":196,"props":197,"children":198},"ul",{},[199,211,216,221,226,231,236,241,254,259,264],{"type":14,"tag":200,"props":201,"children":202},"li",{},[203,205],{"type":20,"value":204},"The data array must be structured with the key first, followed by alternating field names and values: ",{"type":14,"tag":50,"props":206,"children":208},{"className":207},[],[209],{"type":20,"value":210},"[key, field1, value1, field2, value2, ...]",{"type":14,"tag":200,"props":212,"children":213},{},[214],{"type":20,"value":215},"The key must be a string that identifies the specific hash table",{"type":14,"tag":200,"props":217,"children":218},{},[219],{"type":20,"value":220},"Each field name must be a string",{"type":14,"tag":200,"props":222,"children":223},{},[224],{"type":20,"value":225},"Values can be arrays, strings, numbers, or booleans",{"type":14,"tag":200,"props":227,"children":228},{},[229],{"type":20,"value":230},"All field-value pairs are stored in a single database operation",{"type":14,"tag":200,"props":232,"children":233},{},[234],{"type":20,"value":235},"If the hash table doesn't exist, it will be created automatically",{"type":14,"tag":200,"props":237,"children":238},{},[239],{"type":20,"value":240},"If any of the fields already exist in the hash table, their values will be overwritten",{"type":14,"tag":200,"props":242,"children":243},{},[244,246,252],{"type":20,"value":245},"More efficient than multiple individual ",{"type":14,"tag":50,"props":247,"children":249},{"className":248},[],[250],{"type":20,"value":251},"hashSetId",{"type":20,"value":253}," calls when setting several fields",{"type":14,"tag":200,"props":255,"children":256},{},[257],{"type":20,"value":258},"Player UIDs are commonly used as keys to store player-specific data",{"type":14,"tag":200,"props":260,"children":261},{},[262],{"type":20,"value":263},"The operation is executed immediately and synchronously",{"type":14,"tag":200,"props":265,"children":266},{},[267],{"type":20,"value":268},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":270,"children":272},{"id":271},"links",[273],{"type":20,"value":274},"Links",{"type":14,"tag":30,"props":276,"children":277},{},[278,285,287,293,294,300,301,307,308,314,315,321,322,328,329,335,336,342,343,349,350,356,357],{"type":14,"tag":279,"props":280,"children":282},"a",{"href":281},"/ramdb/hashes/hashdelete",[283],{"type":20,"value":284},"Hash Delete",{"type":20,"value":286}," |\n",{"type":14,"tag":279,"props":288,"children":290},{"href":289},"/ramdb/hashes/hashdeleteid",[291],{"type":20,"value":292},"Hash Delete ID",{"type":20,"value":286},{"type":14,"tag":279,"props":295,"children":297},{"href":296},"/ramdb/hashes/hashget",[298],{"type":20,"value":299},"Hash Get",{"type":20,"value":286},{"type":14,"tag":279,"props":302,"children":304},{"href":303},"/ramdb/hashes/hashgetall",[305],{"type":20,"value":306},"Hash Get All",{"type":20,"value":286},{"type":14,"tag":279,"props":309,"children":311},{"href":310},"/ramdb/hashes/hashgetallid",[312],{"type":20,"value":313},"Hash Get All ID",{"type":20,"value":286},{"type":14,"tag":279,"props":316,"children":318},{"href":317},"/ramdb/hashes/hashgetid",[319],{"type":20,"value":320},"Hash Get ID",{"type":20,"value":286},{"type":14,"tag":279,"props":323,"children":325},{"href":324},"/ramdb/hashes/hashremove",[326],{"type":20,"value":327},"Hash Remove",{"type":20,"value":286},{"type":14,"tag":279,"props":330,"children":332},{"href":331},"/ramdb/hashes/hashremoveid",[333],{"type":20,"value":334},"Hash Remove ID",{"type":20,"value":286},{"type":14,"tag":279,"props":337,"children":339},{"href":338},"/ramdb/hashes/hashset",[340],{"type":20,"value":341},"Hash Set",{"type":20,"value":286},{"type":14,"tag":279,"props":344,"children":346},{"href":345},"/ramdb/hashes/hashsetbulk",[347],{"type":20,"value":348},"Hash Set Bulk",{"type":20,"value":286},{"type":14,"tag":279,"props":351,"children":353},{"href":352},"/ramdb/hashes/hashsetid",[354],{"type":20,"value":355},"Hash Set ID",{"type":20,"value":286},{"type":14,"tag":279,"props":358,"children":359},{"href":4},[360],{"type":20,"value":361},"Hash Set ID Bulk",{"title":7,"searchDepth":363,"depth":363,"links":364},2,[365,366,367,368,369,375,376],{"id":25,"depth":363,"text":28},{"id":37,"depth":363,"text":40},{"id":56,"depth":363,"text":59},{"id":128,"depth":363,"text":131},{"id":139,"depth":363,"text":142,"children":370},[371,373,374],{"id":146,"depth":372,"text":149},3,{"id":161,"depth":372,"text":164},{"id":176,"depth":372,"text":179},{"id":191,"depth":363,"text":194},{"id":271,"depth":363,"text":274},"markdown","content:ramdb:hashes:hashSetIdBulk.md","content","ramdb/hashes/hashSetIdBulk.md","ramdb/hashes/hashSetIdBulk","md",1742777962014]