NordVPN
SponsoredStrict no-logs VPN with 6,400+ servers in 111 countries. Threat Protection blocks ads, trackers, and malware while you work online.
Get NordVPN →एक या कई UUIDs generate करने के लिए click करें। Fully random IDs के लिए v4 और time-sortable IDs के लिए v7 use करें जो creation time के अनुसार naturally order होते हैं — database keys के लिए useful।
UUID v4 purely random है — 122 random bits जिनसे ~5.3 × 10³⁶ possible values। दो practically कभी collide नहीं होंगे। v4 कहीं भी use करें जहाँ ordering की जरूरत नहीं — जैसे API request IDs या anonymous user identifiers।
UUID v7 (RFC 9562, 2024 में published) 48-bit Unix millisecond timestamp से शुरू होता है जिसके बाद 74 random bits आते हैं। वे creation order में lexicographically sort होते हैं, जो database performance के लिए बड़ा है — time से sort होने वाले primary keys का मतलब inserts हमेशा B-tree के end पर जाते हैं, कोई random page splits नहीं। नए database primary keys के लिए v7 use करें।
v4 और v7 दोनों crypto.getRandomValues उपयोग करते हैं — browser का secure random source, वही primitive जो HTTPS और password managers use करते हैं। v4 में 122 bits randomly fill होते हैं। v7 में RFC के अनुसार 48 bits timestamp + 74 bits random plus version/variant markers होते हैं।
Generation आपके browser में होती है। UUIDs store या transmit नहीं होते। 100 v4 UUIDs generate करने पर collision की chance astronomically small है — CPU में cosmic rays से bits flip होने की chance से भी कम।
Database primary keys के रूप में v4 UUIDs performance hurt करते हैं auto-incrementing integers की तुलना में क्योंकि random values inserts के दौरान B-tree page splits cause करती हैं। v7 इसे fix करता है — UUID benefits बिना index pain के चाहिए तो v7 use करें।
UUIDs users को expose न करें जहाँ guessability matter करती है। v4 UUIDs में 122 bits entropy हैं और unguessable हैं। v7 UUIDs creation time leak करते हैं, जो अधिकांश uses के लिए fine है लेकिन creation time sensitive हो तो bad है।
UUIDs 36 chars होते हैं hyphens सहित (32 hex + 4 hyphens)। वे 16 bytes binary या 36 bytes text लेते हैं। Very high-cardinality columns के लिए, VARCHAR(36) की बजाय binary BLOB / UUID native type में store करने पर consider करें।
हाँ। v4 और v7 दोनों crypto.getRandomValues उपयोग करते हैं, secure random API। v4 में 122 bits entropy है; v7 में 74।
क्योंकि v7 UUIDs creation time से sort होते हैं, inserts हमेशा B-tree index के end पर जाते हैं random positions की बजाय। यह page splits avoid करता है और write throughput dramatically improve करता है।
Theoretically हाँ। v4 से 50% collision risk के लिए ~10¹⁸ generate करने होंगे। v7 में time component same millisecond के अंदर इसे ~2⁷⁴ तक reduce करता है — practically impossible।
हाँ। GUID Microsoft का UUID का नाम है। Same format, same uniqueness guarantees।
8-4-4-4-12 hex digits with hyphens। 32 hex chars total + 4 hyphens = 36 characters। RFC convention से lowercase।
v1 MAC address include करता है, जो privacy leak है। v7 ने time-ordered IDs के लिए hardware identifiers expose किए बिना v1 को supersede किया है।
यहाँ directly नहीं। UUID के 16 bytes को URL-safe Base64 के रूप में encode करें 22-character ID पाने के लिए। Shorter URLs के लिए useful।
नहीं। Generation पूरी तरह आपके browser में होती है।
Strict no-logs VPN with 6,400+ servers in 111 countries. Threat Protection blocks ads, trackers, and malware while you work online.
Get NordVPN →Managed cloud hosting for WordPress and web apps on DigitalOcean, Vultr, and AWS. Fast setup, no server headaches.
Try Cloudways →Hire freelancers for design, writing, dev, and marketing — or sell your own services. Millions of gigs at every budget.
Browse Fiverr →