Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix: #194 #195

Merged
merged 1 commit into from

2 participants

@zulus
Collaborator

No description provided.

@zulus zulus Fix: #194
Signed-off-by: Dawid Pakuła <zulus@w3des.net>
cebd76e
@pulse00 pulse00 merged commit c59f69a into pulse00:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 19, 2014
  1. @zulus

    Fix: #194

    zulus authored
    Signed-off-by: Dawid Pakuła <zulus@w3des.net>
This page is out of date. Refresh to see the latest.
View
6 com.dubture.symfony.index/Resources/index/basic.sql
@@ -10,5 +10,9 @@ CREATE TABLE IF NOT EXISTS SERVICES(
PHPCLASS VARCHAR NOT NULL,
_PUBLIC VARCHAR,
TAGS VARCHAR,
- TIMESTAMP BIGINT NOT NULL
+ TIMESTAMP BIGINT NOT NULL
);
+
+CREATE INDEX S_PATH_IDX ON SERVICES(PATH);
+CREATE INDEX S_PHPCLASS_IDX ON SERVICES(PHPCLASS);
+CREATE INDEX S_NAME_IDX ON SERVICES(NAME);
View
2  com.dubture.symfony.index/Resources/index/parameters/basic.sql
@@ -10,3 +10,5 @@ CREATE TABLE IF NOT EXISTS PARAMETERS(
VALUE VARCHAR NOT NULL
);
+CREATE INDEX P_PATH_IDX ON PARAMETERS(PATH);
+CREATE INDEX P_KEY_IDX ON PARAMETERS(KEY);
View
7 com.dubture.symfony.index/Resources/index/routes/basic.sql
@@ -10,4 +10,9 @@ CREATE TABLE IF NOT EXISTS ROUTES(
CONTROLLER VARCHAR NOT NULL,
BUNDLE VARCHAR NOT NULL,
PATH VARCHAR NOT NULL
-);
+);
+CREATE INDEX R_ACTION_IDX ON ROUTES(ACTION);
+CREATE INDEX R_NAME_IDX ON ROUTES(NAME);
+CREATE INDEX R_BUNDLE_IDX ON ROUTES(BUNDLE);
+CREATE INDEX R_CONTROLLER_IDX ON ROUTES(CONTROLLER);
+CREATE INDEX R_PATH_IDX ON ROUTES(PATH);
View
4 com.dubture.symfony.index/Resources/index/translations/basic.sql
@@ -9,6 +9,8 @@ CREATE TABLE IF NOT EXISTS TRANSUNIT(
NAME VARCHAR NOT NULL,
VALUE VARCHAR NOT NULL,
LANGUAGE VARCHAR NOT NULL,
- TIMESTAMP BIGINT NOT NULL
+ TIMESTAMP BIGINT NOT NULL
);
+CREATE INDEX T_PATH_IDX ON TRANSUNIT(PATH);
+CREATE INDEX T_NAME_IDX ON TRANSUNIT(NAME);
View
8 com.dubture.symfony.index/src/com/dubture/symfony/index/Schema.java
@@ -1,8 +1,8 @@
/*******************************************************************************
* This file is part of the Symfony eclipse plugin.
- *
+ *
* (c) Robert Gruendler <r.gruendler@gmail.com>
- *
+ *
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
@@ -32,11 +32,11 @@
*/
public class Schema {
- public static final String VERSION = "0.8"; //$NON-NLS-1$
+ public static final String VERSION = "0.10"; //$NON-NLS-1$
/**
* Creates the database schema using given connection.
- *
+ *
* @param connection
* Database connection
* @throws SQLException
View
16 com.dubture.symfony.index/src/com/dubture/symfony/index/preferences/SymfonyIndexPreferences.java
@@ -1,8 +1,8 @@
/*******************************************************************************
* This file is part of the Symfony eclipse plugin.
- *
+ *
* (c) Robert Gruendler <r.gruendler@gmail.com>
- *
+ *
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
@@ -20,11 +20,11 @@
public static final String DB_LOCK_MODE = "db_lock_mode";
public static final String DB_CACHE_TYPE = "db_cache_type";
public static final String DB_CACHE_SIZE = "db_cache_size";
- public static final String SCHEMA_VERSION = "0.1";
-
-
+ public static final String SCHEMA_VERSION = "0.2";
+
+
@Override
- @SuppressWarnings("deprecation")
+ @SuppressWarnings("deprecation")
public void initializeDefaultPreferences() {
IEclipsePreferences p = ((IScopeContext) new DefaultScope())
@@ -33,8 +33,8 @@ public void initializeDefaultPreferences() {
p.putInt(DB_CACHE_SIZE, 32000); // 32Mb
p.put(DB_CACHE_TYPE, "LRU");
p.putInt(DB_LOCK_MODE, 0); // no transaction isolation
-
-
+
+
}
}
Something went wrong with that request. Please try again.