green-ponies (jgen)
|
26d383198a
|
More small changes for speed.
|
2012-01-11 15:57:00 -05:00 |
|
green-ponies (jgen)
|
ea15574226
|
Changes and tweaks for speed.
Because every microsecond counts! :P
These changes are based on information from:
http://phpbench.com/
http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php
|
2012-01-11 15:08:27 -05:00 |
|
Shish
|
56a780bfd3
|
in per-letter mode, don't separate a and A
|
2012-01-01 16:54:44 +00:00 |
|
Shish
|
9d9a960d1b
|
type->engine for mysql 5.5
|
2011-07-14 10:12:39 +01:00 |
|
Shish
|
1abb96159b
|
PDO returns 'false' for no rows, but various parts of the code expect it to return 'null'; for now, emulate the old behaviour
|
2011-03-24 14:27:11 +00:00 |
|
Diftraku
|
3d66c7ce41
|
"Fix'd" the execute query to pass args array without binding, assuming the first value is at index 0 and the query uses questionmarks.
|
2011-03-05 03:11:29 +02:00 |
|
Shish
|
4b5795cc5b
|
fucking php, this took an hour to debug because it just dies with no error message -_-
|
2011-01-26 12:19:18 +00:00 |
|
Shish
|
ee3c24117b
|
more pdo compat, database bits
|
2011-01-03 15:18:24 +00:00 |
|
Shish
|
2532091ae8
|
PDO DSN handling (PS. PHP is retarded)
|
2011-01-01 16:59:41 +00:00 |
|
Shish
|
7684def0f8
|
add get_pairs
|
2011-01-01 16:27:56 +00:00 |
|
Shish
|
8b2e3262fe
|
clean up database API for completeness and sensibleness
|
2011-01-01 15:27:24 +00:00 |
|
Shish
|
6b557983c4
|
more PDO compat
|
2010-12-31 20:25:03 +00:00 |
|
Shish
|
8e63827c0f
|
PDO exceptions for error handling
|
2010-12-31 19:56:28 +00:00 |
|
Shish
|
1d7b929871
|
convert parts of core/database to pdo
|
2010-12-31 19:29:15 +00:00 |
|
Christian Walde
|
cd6015203e
|
replaced deprecated split with explode
|
2010-09-09 20:09:37 +02:00 |
|
Shish
|
23216d7549
|
for compiling under hiphop
|
2010-05-15 14:53:37 +01:00 |
|
Shish
|
9cb7946d69
|
make memcachecache pay attention to the URI
|
2010-03-25 10:53:02 +00:00 |
|
Shish
|
74693f9d9f
|
make apc not warn
|
2010-02-02 18:14:31 +00:00 |
|
Shish
|
387e13f9f0
|
activate caches if cache_dsn is set
|
2010-02-02 17:34:45 +00:00 |
|
Shish
|
892214a0c7
|
APC cache mechanism, faster than memcache?
|
2010-02-02 17:12:40 +00:00 |
|
Shish
|
efac91598c
|
SCORE_STRNORM = lowercase-if-necessary-for-comparison
|
2010-02-02 02:13:45 +00:00 |
|
Shish
|
9ca5fcd51a
|
MemCache is already used...
|
2010-02-01 16:17:12 +00:00 |
|
Shish
|
ad83c7634c
|
'PRAGMA foreign_keys' is SQLite-specific
|
2010-02-01 16:13:24 +00:00 |
|
Shish
|
13fb551fb3
|
SQLite now supports foreign keys (3.6.19 onwards)
|
2010-01-17 09:42:35 +00:00 |
|
Shish
|
830635c5a9
|
preliminary image locking
|
2009-12-30 08:54:04 +00:00 |
|
Shish
|
1e8e5adbbf
|
load config.php sooner
|
2009-08-09 13:10:59 +01:00 |
|
Shish
|
572f84511a
|
lots of docs, and some internal changes
|
2009-07-21 07:38:53 +01:00 |
|
Shish
|
627ecdbf4c
|
lots of docs
|
2009-07-19 08:38:27 +01:00 |
|
Shish
|
be5ed6272c
|
merge both log functions into one; simply saying that they take different numbers of arguments isn't enough...
|
2009-07-17 01:56:40 +01:00 |
|
Shish
|
96e69c4f20
|
aaaaaaaargh dates and times in sql
|
2009-07-16 00:05:25 +01:00 |
|
Shish
|
4e551cf9c5
|
move shimmie-specific sqlite things out of adodb and into shimmie's database engine
|
2009-01-25 09:18:58 -08:00 |
|
Shish
|
2d46a5c269
|
more functions that sqlite needs
|
2009-01-25 09:18:48 -08:00 |
|
Shish
|
abf448cdc8
|
old bits
|
2009-01-22 10:23:15 -08:00 |
|
Shish
|
33fa2f9b28
|
xmlschema was fail
|
2009-01-22 10:21:31 -08:00 |
|
Shish
|
4e4f0be4e5
|
more sqlite niceness
|
2009-01-22 07:51:50 -08:00 |
|
Shish
|
f3a3d50f95
|
sqlite love
|
2009-01-22 07:08:37 -08:00 |
|
Shish
|
8619be809e
|
sqlite engine
|
2009-01-22 05:53:30 -08:00 |
|
Shish
|
fb7e14ad21
|
fixes
|
2009-01-22 04:14:38 -08:00 |
|
Shish
|
e37531f26a
|
mysql too
|
2009-01-22 04:12:15 -08:00 |
|
Shish
|
f347384a50
|
php developers can go choke on a bucket of cocks
|
2009-01-22 04:11:43 -08:00 |
|
Shish
|
44ac62e1ae
|
get rid of xmlschema
|
2009-01-22 04:05:55 -08:00 |
|
Shish
|
64fb261b87
|
simpler table creation function
|
2009-01-22 03:22:55 -08:00 |
|
Shish
|
fcca11f20c
|
make cache engines work <_<
|
2009-01-20 03:54:43 -08:00 |
|
Shish
|
776a42d519
|
cache objects
|
2009-01-20 02:47:20 -08:00 |
|
Shish
|
5e75ad3cd4
|
start of cache engines
|
2009-01-20 02:34:17 -08:00 |
|
Shish
|
d8ce9d71c8
|
blank fold .-.
|
2009-01-04 12:26:12 -08:00 |
|
Shish
|
11873e9601
|
remove EOL whitespace
|
2009-01-04 11:18:37 -08:00 |
|
Shish
|
93b7467fdd
|
a bunch of image functions moved to the image class
|
2009-01-04 08:15:00 -08:00 |
|
Shish
|
2ef6491ecf
|
we can use exceptions \o/
|
2009-01-04 06:34:27 -08:00 |
|
Shish
|
2f8cf7c08e
|
die, globals
|
2009-01-03 12:32:57 -08:00 |
|
shish
|
40431f4c26
|
wildcard search, and remove the lower() stuff (it scares mysql)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1066 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-10-09 05:56:48 +00:00 |
|
shish
|
028896650a
|
some image functions which weren't in the 'image' section...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1060 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-10-09 03:28:58 +00:00 |
|
shish
|
072b22ee8f
|
Image code moved to image class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1058 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-10-09 03:21:18 +00:00 |
|
shish
|
8eef694168
|
port the lovely search code from postgres; overall it's much better, though mysql chokes on it in extreme cases :S
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1057 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-10-09 02:54:17 +00:00 |
|
shish
|
c5f9918977
|
remove posted_timestamp
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1055 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-10-09 01:58:22 +00:00 |
|
shish
|
aee1af4e0e
|
move user stuff into the user class
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1004 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-08-23 12:49:47 +00:00 |
|
shish
|
1e4d7d1938
|
merge some useful parts of SCore
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1002 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-08-23 12:05:24 +00:00 |
|
shish
|
12b02f155c
|
db specific initialisation
git-svn-id: file:///home/shish/svn/shimmie2/trunk@976 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-08-11 20:27:24 +00:00 |
|
shish
|
19ea54ad21
|
numeric, php fails at int...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@938 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-07-26 06:39:15 +00:00 |
|
shish
|
2b51c7bc14
|
be more assertive
git-svn-id: file:///home/shish/svn/shimmie2/trunk@936 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-07-25 17:42:24 +00:00 |
|
shish
|
3db3c53a6d
|
Obvious bug is obvious, and a complete bastard to find -_-
git-svn-id: file:///home/shish/svn/shimmie2/trunk@870 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-05-20 03:06:44 +00:00 |
|
shish
|
a658019697
|
Slightly major rework of the search code internals, makes things more sane and fixes a couple of bugs
git-svn-id: file:///home/shish/svn/shimmie2/trunk@867 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-05-19 15:59:58 +00:00 |
|
shish
|
2c1c605f12
|
Coding at 4am isn't always a great idea <_< typo fixed
git-svn-id: file:///home/shish/svn/shimmie2/trunk@865 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-05-19 13:05:47 +00:00 |
|
shish
|
8cae5831a9
|
random image function, at last
git-svn-id: file:///home/shish/svn/shimmie2/trunk@863 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-05-19 03:17:31 +00:00 |
|
shish
|
e7b7fc0d24
|
db abstraction blargh
git-svn-id: file:///home/shish/svn/shimmie2/trunk@851 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-05-18 02:14:51 +00:00 |
|
shish
|
3c46aa5335
|
memcache api
git-svn-id: file:///home/shish/svn/shimmie2/trunk@833 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-04-30 11:26:12 +00:00 |
|
shish
|
4803c6f5d2
|
trunk also
git-svn-id: file:///home/shish/svn/shimmie2/trunk@796 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-04-09 01:10:56 +00:00 |
|
shish
|
c88a35b58c
|
session IP mask, for users with varying IPs; mostly from a patch in #303
git-svn-id: file:///home/shish/svn/shimmie2/trunk@779 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-04-08 16:02:43 +00:00 |
|
shish
|
c3ab69d234
|
sys_get_temp_dir requires util.inc.php
git-svn-id: file:///home/shish/svn/shimmie2/trunk@756 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-04-06 16:37:49 +00:00 |
|
shish
|
797f515b16
|
temp data goes in a temp folder
git-svn-id: file:///home/shish/svn/shimmie2/trunk@742 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-04-01 10:11:36 +00:00 |
|
shish
|
2948a4435e
|
extensible search v1
git-svn-id: file:///home/shish/svn/shimmie2/trunk@713 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-02-06 17:24:08 +00:00 |
|
shish
|
2608bafa41
|
adodb xml schema support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@702 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-01-27 15:30:44 +00:00 |
|
shish
|
3e25a08db2
|
safety wrapper for db->GetAll
git-svn-id: file:///home/shish/svn/shimmie2/trunk@690 7f39781d-f577-437e-ae19-be835c7a54ca
|
2008-01-05 00:22:19 +00:00 |
|
shish
|
5b543e46ca
|
comment
git-svn-id: file:///home/shish/svn/shimmie2/trunk@656 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-12-11 18:37:11 +00:00 |
|
shish
|
db582a2d46
|
more documentation for code in core
git-svn-id: file:///home/shish/svn/shimmie2/trunk@629 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-12-06 11:01:18 +00:00 |
|
shish
|
0245870868
|
allow dots at the start of tags, as long as they're followed by letters; (for .hack)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@596 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-28 17:49:45 +00:00 |
|
shish
|
b48cd81da5
|
ignore wildcard-only searches
git-svn-id: file:///home/shish/svn/shimmie2/trunk@589 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-28 17:07:29 +00:00 |
|
shish
|
5199b9dc60
|
stricter tag sanitising
git-svn-id: file:///home/shish/svn/shimmie2/trunk@586 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-28 01:30:26 +00:00 |
|
shish
|
c47e15c01b
|
filetype search from ATravelingGeek
git-svn-id: file:///home/shish/svn/shimmie2/trunk@564 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-24 18:09:41 +00:00 |
|
shish
|
24c2311cba
|
md5: search for danbooru compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@556 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-22 00:40:10 +00:00 |
|
shish
|
dc9181fc24
|
re-inline error_check, since it only works inline...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@535 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-10-21 17:13:57 +00:00 |
|
shish
|
0b555d0926
|
error check for cache query
git-svn-id: file:///home/shish/svn/shimmie2/trunk@452 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-08 06:16:13 +00:00 |
|
shish
|
ea65ce6605
|
cacheyness
git-svn-id: file:///home/shish/svn/shimmie2/trunk@451 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-08 05:47:23 +00:00 |
|
shish
|
b64ac2128e
|
enable adodb caching
git-svn-id: file:///home/shish/svn/shimmie2/trunk@448 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-08 04:53:55 +00:00 |
|
shish
|
ff6d0781d2
|
LIMIT ?,? -> LIMIT ? OFFSET ? -- more compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@447 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-06 23:59:27 +00:00 |
|
shish
|
810fd0148a
|
this should have been gone a while ago :S
git-svn-id: file:///home/shish/svn/shimmie2/trunk@442 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-06 21:27:55 +00:00 |
|
shish
|
25b1ebad8b
|
search user rather than poster; everything else refers to 'user'
git-svn-id: file:///home/shish/svn/shimmie2/trunk@420 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-02 19:57:40 +00:00 |
|
shish
|
f36c783868
|
source url editor
git-svn-id: file:///home/shish/svn/shimmie2/trunk@412 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-08-01 16:58:50 +00:00 |
|
shish
|
619d18c8f3
|
a somewhat nicer error message for can't connect to DB
git-svn-id: file:///home/shish/svn/shimmie2/trunk@390 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-28 14:15:03 +00:00 |
|
shish
|
bcc9b612c1
|
if a tag has no matches, error
git-svn-id: file:///home/shish/svn/shimmie2/trunk@354 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-23 00:52:24 +00:00 |
|
shish
|
d66030f35f
|
redundancy
git-svn-id: file:///home/shish/svn/shimmie2/trunk@276 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-15 17:29:05 +00:00 |
|
shish
|
9861e13f8e
|
removed set_extension_version; everyone was using config anyway ;3
git-svn-id: file:///home/shish/svn/shimmie2/trunk@275 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-15 17:17:59 +00:00 |
|
shish
|
c6b7c9bb83
|
remove ambiguous database->get_user(...)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@263 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-12 07:37:32 +00:00 |
|
shish
|
69ca13fa50
|
update tag counts on set_tags / delete_tags_from_image
git-svn-id: file:///home/shish/svn/shimmie2/trunk@239 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-07 02:52:33 +00:00 |
|
shish
|
f0168d6160
|
wildcard searches. This may be faster, as the big query uses IDs rather than tags? needs testing~
git-svn-id: file:///home/shish/svn/shimmie2/trunk@235 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-06 07:28:42 +00:00 |
|
shish
|
e0d279f347
|
utf8 support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@233 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-06 05:57:24 +00:00 |
|
shish
|
4364e5079f
|
specify images.id rather than id (could be tags.id)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@228 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-05 21:41:13 +00:00 |
|
shish
|
b6809c3b0a
|
tags(image_id,tag) split into image_tags(image_id,tag_id) and tags(id,tag,count)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@227 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-05 21:30:37 +00:00 |
|
shish
|
1ecb6b688c
|
limit next / prev to 1 row
git-svn-id: file:///home/shish/svn/shimmie2/trunk@221 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-05 18:05:54 +00:00 |
|
shish
|
c8bc08f7da
|
optimise the common case, but speak slowly and use simple words, so that mysql can understand
git-svn-id: file:///home/shish/svn/shimmie2/trunk@217 7f39781d-f577-437e-ae19-be835c7a54ca
|
2007-07-04 15:29:40 +00:00 |
|