• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] database integer types

Started by dtiberio,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dtiberioTopic starter

the database uses the wrong datatypes for many of the columns. here is an example in the table 'vibe_lang':

mysql> desc vibe_langs;
+---------+---------------------+------+-----+---------+----------------+
| Field   | Type                | Null | Key | Default | Extra          |
+---------+---------------------+------+-----+---------+----------------+
| lang_id | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| term    | longtext            | NO   |     | NULL    |                |
+---------+---------------------+------+-----+---------+----------------+
2 rows in set (0.03 sec)


the field lang_id only has 255 entries right now, which fit sin a tinyint. making it a bigint will slow down the database. it should probably be a smallint if the table can grow. if it is a fixed size, and will never be more than 255 entries, then it should be a tinyint.

the other tables have similar issues.

I am working on a  perl script to fix all of the column definitions. it will auto-adjust all the column lengths to be no more than 90% capacity.
  •  

PHPVibe A.

Really appreciate your feedback very much!

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 39750

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 70741

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 50798

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 4399

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 22570

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 5569

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 5690