Title: Check username in database table
Last modified: May 4, 2018

---

# Check username in database table

 *  [ruperty](https://wordpress.org/support/users/ruperty/)
 * (@ruperty)
 * [8 years ago](https://wordpress.org/support/topic/memory-capacity/)
 * In a plugin I need to make many checks to see if a username is in a database 
   table. Would it be quicker to load the records into an array and use that to 
   check? The data item is 15 characters, but there could be thousands or millions
   of them.
 * How big is the practical memory capacity of this way of doing things?
 * Regards,
    Rupert

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/memory-capacity/#post-10246791)
 * Use [https://codex.wordpress.org/Function_Reference/username_exists](https://codex.wordpress.org/Function_Reference/username_exists).
   Those queries are (probably) cached.

Viewing 1 replies (of 1 total)

The topic ‘Check username in database table’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/memory-capacity/#post-10246791)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
